
/* ═══════════════════════════════════════════════════════════════
   CLUB DE BENEFICIOS BANCRECE · v4 — Sistema visual compartido
 
   Reparto del color (medido sobre itaubeneficios.cl y traducido a BanCrece):
   · ~90% neutros: Platino de fondo + tarjetas blancas.
   · Índigo  → superficie de marca (mitad de color de tarjetas, pie, velo de fotos).
   · Verde   → solo ACCIÓN: botones, filete bajo títulos, pestaña activa, "Conoce más".
   · Naranja → solo la CIFRA de descuento.
   Regla: sobre Índigo, Verde o Naranja el contenido va SIEMPRE en blanco/Platino.
   Sin sombras de color, sin vidrios ni brillos.
   ═══════════════════════════════════════════════════════════════ */
:root {
    --indigo: #233161; /* Índigo Crepuscular */
    --verde: #1FAD4E; /* Selva Mediana */
    --naranja: #FFA400; /* Naranja */
    --carbon: #374151; /* Azul Carbón · texto */
    --platino: #F3F4F6; /* Platino · fondo */
    --blanco: #FFFFFF;
    --apoyo: #6B7280;
    --borde: #E3E5EA;
    --tinte-verde: #E8F7EE;
    --tinte-indigo: #EAECF4;
    --verde-texto: #157A37; /* verde oscurecido SOLO para texto chico sobre blanco (AA) */
    --error: #C2342B;
    --font: 'Montserrat', system-ui, sans-serif;
    --max: 1240px;
    --r: 18px;
    --r-sm: 12px;
    --sombra: 0 1px 2px rgba(35,49,97,.04), 0 4px 14px rgba(35,49,97,.06);
    --sombra-md: 0 2px 4px rgba(35,49,97,.05), 0 14px 34px rgba(35,49,97,.10);
    --ease: .25s cubic-bezier(.2,.7,.2,1);
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--carbon);
    background: var(--platino);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--verde);
    outline-offset: 3px;
    border-radius: 8px;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.caja {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.ico {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Títulos: Light + ExtraBold (manual 2026) con filete verde de 4 px ── */
.titulo {
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    line-height: 1.15;
    color: var(--indigo);
    font-weight: 300;
    letter-spacing: -.015em;
}

    .titulo b {
        font-weight: 800;
    }

.ante {
    display: inline-block;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--verde-texto);
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 4px solid var(--verde);
}

.filete {
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: var(--verde);
    margin-top: 14px;
}

.sub-sec {
    color: var(--apoyo);
    margin-top: 10px;
    font-size: 1rem;
    max-width: 620px;
}

/* ── Botones: planos, sin sombra de color ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
    white-space: nowrap;
}

.btn-ver {
    background: var(--verde);
    color: #fff;
}

    .btn-ver:hover {
        background: #1a9644;
    }

.btn-pri {
    background: var(--indigo);
    color: #fff;
}

    .btn-pri:hover {
        background: #1a2550;
    }

.btn-borde {
    border-color: var(--indigo);
    color: var(--indigo);
    background: #fff;
}

    .btn-borde:hover {
        background: var(--indigo);
        color: #fff;
    }

.btn-bloque {
    width: 100%;
    min-height: 56px;
    font-size: 1.05rem;
}

/* "Conoce más ›" — enlace con chevron y subrayado corto en verde (patrón Itaú) */
.mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--indigo);
    position: relative;
    padding-bottom: 6px;
}

    .mas::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36px;
        height: 3px;
        border-radius: 3px;
        background: var(--verde);
        transition: width var(--ease);
    }

    .mas .ico {
        color: var(--verde);
        width: 18px;
        height: 18px;
        transition: transform var(--ease);
    }

    .mas:hover::after {
        width: 100%;
    }

    .mas:hover .ico {
        transform: translateX(3px);
    }

.enlace {
    color: var(--indigo);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--verde);
    text-decoration-thickness: 2px;
}

    .enlace:hover {
        color: var(--verde-texto);
    }

/* ── Cifra de descuento: caja Naranja con texto blanco ── */
.dcto {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    background: var(--naranja);
    color: #fff;
    padding: 10px 16px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

    .dcto small {
        font-size: .62rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .dcto b {
        font-size: 1.45rem;
        font-weight: 800;
    }

/* ── Campos ── */
.fld {
    margin-bottom: 18px;
}

    .fld label {
        display: block;
        font-weight: 700;
        color: var(--indigo);
        font-size: .92rem;
        margin-bottom: 8px;
    }

.inp {
    position: relative;
}

    .inp .ico-izq {
        position: absolute;
        left: 18px;
        top: 18px;
        width: 20px;
        height: 20px;
        color: #9AA1AE;
        pointer-events: none;
    }

    .inp input {
        width: 100%;
        height: 56px;
        border: 1.5px solid #D5D9E2;
        border-radius: 12px;
        padding: 0 18px 0 50px;
        font-size: 1.05rem;
        font-weight: 600;
        letter-spacing: .02em;
        background: #fff;
        color: var(--indigo);
        transition: border-color var(--ease), box-shadow var(--ease);
    }

        .inp input::placeholder {
            color: #9AA1AE;
            font-weight: 400;
        }

        .inp input:hover {
            border-color: #B8BECB;
        }

        .inp input:focus {
            outline: none;
            border-color: var(--indigo);
            box-shadow: 0 0 0 4px rgba(35,49,97,.1);
        }

    .inp .ver-clave {
        position: absolute;
        right: 8px;
        top: 8px;
        height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: .85rem;
        font-weight: 700;
        color: var(--indigo);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .inp .ver-clave:hover {
            background: var(--platino);
        }

    .inp .ok {
        position: absolute;
        right: 16px;
        top: 17px;
        color: var(--verde);
        opacity: 0;
        transition: opacity var(--ease);
    }

.fld.valido .ok {
    opacity: 1;
}

.fld.error input {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(194,52,43,.08);
}

.fld .msg-error {
    display: none;
    color: var(--error);
    font-size: .85rem;
    font-weight: 600;
    margin-top: 8px;
    align-items: center;
    gap: 6px;
}

.fld.error .msg-error {
    display: flex;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    cursor: pointer;
    user-select: none;
}

    .check input {
        width: 22px;
        height: 22px;
        accent-color: var(--verde);
    }


/* ── Modal ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20,28,58,.55);
}

    .modal.abierto {
        display: flex;
        animation: aparece .2s ease;
    }

.modal-caja {
    position: relative;
    background: #fff;
    border-radius: 22px;
    width: 100%;
    max-width: 540px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-shadow: 0 24px 60px rgba(20,28,58,.3);
}

.modal-cerrar {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--indigo);
    background: #fff;
    z-index: 2;
    box-shadow: var(--sombra);
}

    .modal-cerrar:hover {
        background: var(--platino);
    }

@keyframes aparece {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Aviso ── */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 30px);
    opacity: 0;
    background: var(--indigo);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    box-shadow: var(--sombra-md);
    transition: var(--ease);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

    .toast.ver {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .toast .ico {
        color: #fff;
    }

/* ── Motivo de marca (abanico oficial de la trama) ── */
.trama {
    position: absolute;
    pointer-events: none;
    -webkit-mask: url("trama-abanico.png") no-repeat right top / contain;
    mask: url("trama-abanico.png") no-repeat right top / contain;
}

/* ── Aparición suave ── */
.rv {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .rv.on {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .rv {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation: none !important;
    }
}

/* ── Pie oficial ── */
.firma {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
}

    .firma .p3 {
        display: flex;
        gap: 4px;
    }

        .firma .p3 i {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--verde);
        }

            .firma .p3 i:nth-child(2) {
                background: currentColor;
            }

    .firma .anio {
        border: 1px solid currentColor;
        border-radius: 999px;
        padding: 0 9px;
        font-size: .78rem;
        line-height: 1.6;
    }


