/* =============================================================
   Páginas de tipo de préstamo (/loan-types/{slug}/)
   Hoja compartida por las seis páginas. Prefijo .lp-
   ============================================================= */

/* --- Hero: ilustración de fondo + copy y formulario --- */
.lp-hero {
    position: relative;
    background: #fff;
    padding: 40px 0 56px;
    overflow: hidden;
}
.lp-hero__art {
    position: absolute;
    left: -60px; top: -40px;
    width: 46%;
    max-width: 620px;
    opacity: .5;
    pointer-events: none;
}
.lp-hero__art .media { background: transparent; }
.lp-hero__art .media img { object-fit: contain; }
.lp-hero__art .media--empty { opacity: .5; }

.lp-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.04fr;
    gap: 48px;
    align-items: start;
}
.lp-hero__copy { padding-top: 20px; }
.lp-hero__eyebrow {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}
.lp-hero__title {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    margin-bottom: 16px;
    max-width: 460px;
}
.lp-hero__text {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 430px;
    margin-bottom: 24px;
}
.lp-hero__points { display: grid; gap: 10px; max-width: 430px; }
.lp-hero__points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}
.lp-hero__points .ico {
    width: 18px; height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    fill: currentColor;
    flex-shrink: 0;
}
.lp-hero__grid .form-panel { margin-top: 0; max-width: 100%; }

/* --- Secciones --- */
.lp-section { padding: 62px 0; }
.lp-section--alt { background: var(--bg-alt); }
.lp-section--dots { background: #F4F6FA; position: relative; }
.lp-section--dots::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(31,90,166,.12) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    pointer-events: none;
}
.lp-section--dots .container { position: relative; z-index: 1; }

.lp-rule {
    display: block;
    width: 42px; height: 3px;
    background: var(--blue);
    border-radius: 99px;
    margin-bottom: 14px;
}
.lp-title { font-size: clamp(19px, 2.1vw, 26px); margin-bottom: 12px; }
.lp-title--center { text-align: center; }
.lp-lead { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.lp-lead--center { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.lp-note { font-size: 12.5px; color: var(--muted-2); line-height: 1.7; margin-top: 16px; }
.lp-note--center { text-align: center; }
.lp-note strong { color: var(--ink); }

/* --- Bloque partido: título en caja + contenido --- */
.lp-split {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.lp-split__title-box {
    background: var(--blue-tint);
    border: 1.5px solid var(--blue-line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
}
.lp-split__title-box .lp-title { margin-bottom: 0; color: var(--blue); }
.lp-split__title-box--green { background: var(--green-soft); border-color: #BFE6CE; }
.lp-split__title-box--green .lp-title { color: #17794A; }

/* --- Listas de comprobación --- */
.lp-checks { display: grid; gap: 11px; }
.lp-checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 26px; }
.lp-checks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.6;
}
.lp-checks .ico {
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px; height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    fill: currentColor;
}
.lp-checks--strong li { display: block; }
.lp-checks--strong strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.lp-checks--strong span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* --- Chips de usos --- */
.lp-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.lp-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 13px 20px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.4;
    transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease), color .28s var(--ease);
}
.lp-chip:hover {
    transform: translateY(-3px);
    border-color: var(--blue-line);
    color: var(--blue);
    box-shadow: 0 10px 22px rgba(31,90,166,.1);
}

/* --- Tarjetas con barra lateral --- */
.lp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lp-card {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.lp-card__title { font-size: 15.5px; margin-bottom: 8px; }
.lp-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 0; }
.lp-card p + p { margin-top: 10px; }

/* --- Bloque con imagen + lista de puntos --- */
.lp-media {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 46px;
    align-items: center;
}
.lp-media--flip .lp-media__copy { order: 2; }
.lp-media--flip .lp-media__img { order: 1; }
.lp-media__img .media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.lp-media__img .media img { transition: transform .6s var(--ease); }
.lp-media:hover .lp-media__img .media img { transform: scale(1.04); }

.lp-points {
    display: grid;
    gap: 2px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 8px 10px;
}
.lp-points li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--ink-2);
    line-height: 1.5;
    transition: background .25s var(--ease);
}
.lp-points li:hover { background: #fff; }
.lp-points .ico {
    flex-shrink: 0;
    width: 20px; height: 20px;
    fill: var(--blue);
}

/* --- Franja oscura de consulta de crédito --- */
.lp-credit {
    background: linear-gradient(135deg, #0B1A33 0%, #102A50 100%);
    color: #fff;
    text-align: center;
}
.lp-credit .lp-title { color: #fff; }
.lp-credit__lead { font-size: 13.5px; color: rgba(255,255,255,.7); margin-bottom: 30px; }
.lp-credit__rows { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
.lp-credit__row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius);
    padding: 16px 22px;
}
.lp-credit__label { font-size: 14px; text-align: right; color: rgba(255,255,255,.92); }
.lp-credit__label strong { font-weight: 800; }
.lp-credit__arrow { width: 26px; height: 26px; fill: rgba(255,255,255,.5); }
.lp-credit__result { font-size: 13.5px; text-align: left; color: rgba(255,255,255,.75); }
.lp-credit__note { margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.72); }

/* --- Fila de tipos de préstamo --- */
.lp-types { background: #fff; padding: 34px 0; }
.lp-types__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lp-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 92px;
    padding: 14px 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
    line-height: 1.35;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.lp-type .ico { width: 24px; height: 24px; fill: var(--blue); transition: transform .35s var(--ease); }
.lp-type:hover {
    transform: translateY(-4px);
    border-color: var(--blue-line);
    color: var(--blue);
    box-shadow: 0 12px 26px rgba(31,90,166,.12);
}
.lp-type:hover .ico { transform: scale(1.12); }
.lp-type.is-current { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }

/* --- Aviso de cumplimiento --- */
.lp-compliance { background: var(--bg-panel); }
.lp-compliance__card {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 30px;
    box-shadow: var(--shadow-sm);
}
.lp-compliance__card p { font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.lp-compliance__card strong { color: var(--ink); }

/* --- Rejilla de estados --- */
.lp-states {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.lp-states a {
    display: block;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    text-align: center;
    transition: transform .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease);
}
.lp-states a:hover {
    transform: translateY(-2px);
    border-color: var(--blue-line);
    color: var(--blue);
    box-shadow: 0 8px 18px rgba(31,90,166,.1);
}

/* --- Responsive --- */
@media (max-width: 1080px) {
    .lp-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .lp-hero__copy { padding-top: 0; }
    .lp-hero__text, .lp-hero__points, .lp-hero__title { max-width: 560px; }
    .lp-hero__art { width: 60%; opacity: .3; }
    .lp-states { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lp-types__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .lp-section { padding: 46px 0; }
    .lp-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .lp-media { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .lp-media .lp-media__copy,
    .lp-media--flip .lp-media__copy { order: 2; }
    .lp-media .lp-media__img,
    .lp-media--flip .lp-media__img { order: 1; }
    .lp-cards { grid-template-columns: minmax(0, 1fr); }
    .lp-card--wide { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lp-checks--2 { grid-template-columns: minmax(0, 1fr); }
    .lp-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .lp-hero { padding: 28px 0 40px; }
    .lp-hero__art { display: none; }
    .lp-chips { grid-template-columns: minmax(0, 1fr); }
    .lp-states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-types__grid { grid-template-columns: repeat(2, 1fr); }
    .lp-credit__row { grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; }
    .lp-credit__label, .lp-credit__result { text-align: center; }
    .lp-credit__arrow { transform: rotate(90deg); margin: 0 auto; }
    .lp-compliance__card { padding: 22px 20px; }
}
