/* ============================================================================
   ESPESO · Pantalla inicial (landing pública)
   Diseño inmersivo: aurora animada, glassmorphism, grano, tarjeta de póliza en
   cristal, anillos de protección, banda de stats montada sobre el héroe.
   Marca: azul #152250 + dorado #C2A55B. Usa tokens/fuentes de app.css.
   ============================================================================ */

.eh {
    --eh-gold: #C2A55B;
    --eh-gold-lt: #EBD9A6;
    max-width: 1220px;
    margin: 0 auto;
    padding-bottom: 8px;
    font-family: var(--font-sans);
}

/* ─────────────────────────── HÉROE ─────────────────────────── */
.eh-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 30px;
    padding: clamp(40px, 5.2vw, 76px) clamp(26px, 4.6vw, 62px) clamp(76px, 7vw, 104px);
    color: #fff;
    background: radial-gradient(125% 145% at 12% -10%, #1c2b63 0%, #131f4d 40%, #091230 100%);
    box-shadow: 0 40px 90px -34px rgba(7, 14, 40, .72), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: ehUp .7s ease both;
}

/* Velo: garantiza contraste del titular sobre la aurora (oscurece arriba/izq.,
   deja brillar la zona del arte abajo-derecha). Encima de la aurora, debajo del texto. */
.eh-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(7, 13, 38, .44) 0%, rgba(7, 13, 38, .12) 46%, rgba(7, 13, 38, 0) 68%),
        linear-gradient(115deg, rgba(7, 13, 38, .40) 0%, rgba(7, 13, 38, .12) 46%, rgba(7, 13, 38, 0) 74%);
}

/* Aurora: manchas de luz que derivan lentamente */
.eh-aurora { position: absolute; inset: -28% -12%; z-index: 0; pointer-events: none; filter: blur(42px); }
.eh-aurora i {
    position: absolute; display: block; border-radius: 50%;
    opacity: .46; mix-blend-mode: screen;
    animation: ehDrift 20s ease-in-out infinite;
}
.eh-aurora i:nth-child(1) { width: 44vw; height: 44vw; left: -6%; top: -14%;
    background: radial-gradient(circle at 30% 30%, rgba(72, 104, 224, .85), transparent 60%); }
.eh-aurora i:nth-child(2) { width: 38vw; height: 38vw; right: -4%; top: -20%;
    background: radial-gradient(circle at 60% 40%, rgba(194, 165, 91, .62), transparent 60%); animation-delay: -7s; }
.eh-aurora i:nth-child(3) { width: 36vw; height: 36vw; right: 6%; bottom: -30%;
    background: radial-gradient(circle at 50% 50%, rgba(40, 56, 132, .95), transparent 62%); animation-delay: -13s; }

/* Grano sutil para textura */
.eh-grain {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eh-hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.12fr .88fr;
    gap: clamp(28px, 4vw, 56px); align-items: center;
}

/* — Columna de texto — */
.eh-brandmark { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.eh-brandmark img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 3px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.eh-brandmark span { font-weight: 700; letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.eh-eyebrow {
    display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
    background: rgba(194, 165, 91, .14); border: 1px solid rgba(194, 165, 91, .36); color: var(--eh-gold-lt);
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eh-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--eh-gold-lt); animation: ehPulse 2.4s infinite; }

.eh-title {
    color: #fff;   /* gana a la regla global h1{color:navy} de app.css */
    font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600;
    font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.02em; margin: 18px 0 0;
}
.eh-grad { background: linear-gradient(96deg, #F6E9C2, #C2A55B 55%, #EAD9A6); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eh-lead { margin: 20px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.62; color: rgba(255, 255, 255, .82); }

.eh-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.eh-cta-note { font-size: .84rem; color: rgba(255, 255, 255, .66); max-width: 30ch; line-height: 1.45; }

/* Botón dorado con destello */
.eh-btn {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; border: none; font: inherit; font-weight: 700; font-size: 1rem;
    padding: 14px 26px; border-radius: 13px; text-decoration: none;
}
.eh-btn .k-svg-icon { width: 18px; height: 18px; }
.eh-btn-gold {
    color: #1A1606; background: linear-gradient(180deg, #EBD9A6, #C2A55B);
    box-shadow: 0 16px 32px -10px rgba(194, 165, 91, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .18s ease, box-shadow .18s ease;
}
.eh-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -12px rgba(194, 165, 91, .72); }
.eh-btn-gold::after {
    content: ""; position: absolute; top: 0; left: -130%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg);
}
.eh-btn-gold:hover::after { animation: ehShine .9s ease; }

/* — Columna de arte (tarjeta de póliza + anillos + chips) — */
.eh-art { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.eh-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .55; pointer-events: none; }
.eh-rings svg { width: 116%; height: 116%; animation: ehSpin 64s linear infinite; }

.eh-policy {
    position: relative; z-index: 2; width: min(360px, 100%); padding: 20px 20px 18px; border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05));
    border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(16px) saturate(135%); -webkit-backdrop-filter: blur(16px) saturate(135%);
    box-shadow: 0 34px 64px -24px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .25);
    color: #fff;
}
.eh-policy-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.eh-policy-co { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .86rem; letter-spacing: .01em; }
.eh-policy-co .dot { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.eh-policy-co .dot .k-svg-icon { width: 17px; height: 17px; color: var(--eh-gold-lt); }
.eh-pill { font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(120, 225, 160, .18); color: #9af4bd; border: 1px solid rgba(120, 225, 160, .42); }
.eh-policy h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin: 2px 0 2px; color: #fff; }
.eh-policy .sub { color: rgba(255, 255, 255, .72); font-size: .8rem; }
.eh-policy-rows { margin-top: 16px; display: flex; flex-direction: column; gap: 11px; }
.eh-policy-rows .r { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; }
.eh-policy-rows .r span { color: rgba(255, 255, 255, .62); }
.eh-policy-rows .r b { font-weight: 700; font-variant-numeric: tabular-nums; }
.eh-policy-bar { margin-top: 17px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.eh-policy-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: linear-gradient(90deg, #C2A55B, #EBD9A6); }
.eh-policy .foot { margin-top: 13px; display: flex; align-items: center; gap: 7px; font-size: .72rem; color: rgba(255, 255, 255, .62); }
.eh-policy .foot .k-svg-icon { width: 13px; height: 13px; color: var(--eh-gold-lt); }

.eh-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
    background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap;
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .6); animation: ehFloat 6s ease-in-out infinite;
}
.eh-chip .k-svg-icon { width: 15px; height: 15px; color: var(--eh-gold-lt); }
.eh-chip.c1 { top: 4%; right: 0; }
.eh-chip.c2 { bottom: 2%; left: -2%; animation-delay: -3s; }

/* ─────────────────────── BANDA DE ESTADÍSTICAS ─────────────────────── */
.eh-stats {
    position: relative; z-index: 5; margin: -48px auto 0; width: calc(100% - 56px); max-width: 1060px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--espeso-line); border: 1px solid var(--espeso-line); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 60px -32px rgba(20, 34, 80, .55);
    animation: ehUp .7s ease .08s both;
}
.eh-stat { background: #fff; padding: 22px 16px; text-align: center; }
.eh-stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.95rem; color: var(--espeso-navy); letter-spacing: -.01em; }
.eh-stat span { display: block; margin-top: 4px; font-size: .74rem; color: var(--espeso-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ─────────────────────────── SECCIONES ─────────────────────────── */
.eh-section { margin-top: 56px; animation: ehUp .7s ease .14s both; }
.eh-kicker { text-align: center; margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #9A7E33; }
.eh-h2 { text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); color: var(--espeso-navy); margin: 8px 0 0; letter-spacing: -.01em; }
.eh-sub { text-align: center; color: var(--espeso-muted); margin: 12px auto 0; max-width: 56ch; line-height: 1.55; }

.eh-grid3 { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.eh-card {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--espeso-line);
    border-radius: 20px; padding: 28px 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    animation: ehUp .6s ease both;
}
.eh-grid3 .eh-card:nth-child(2) { animation-delay: .1s; }
.eh-grid3 .eh-card:nth-child(3) { animation-delay: .2s; }
.eh-card:hover { transform: translateY(-6px); box-shadow: 0 28px 52px -24px rgba(20, 34, 80, .42); border-color: #D6DEEC; }
.eh-card-glow { position: absolute; right: -40%; bottom: -55%; width: 60%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(194, 165, 91, .18), transparent 65%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.eh-card:hover .eh-card-glow { opacity: 1; }
.eh-ico {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(150deg, #1b2a63, #0e1838); color: var(--eh-gold-lt);
    box-shadow: 0 14px 26px -14px rgba(13, 24, 64, .7), inset 0 0 0 1px rgba(194, 165, 91, .3);
}
.eh-ico .k-svg-icon { width: 26px; height: 26px; }
.eh-card h3 { font-size: 1.18rem; font-weight: 700; color: var(--espeso-navy); margin: 0 0 8px; }
.eh-card p { color: var(--espeso-muted); font-size: .92rem; line-height: 1.55; margin: 0; }
.eh-card .more { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .84rem; color: var(--espeso-navy-light); }
.eh-card .more .k-svg-icon { width: 14px; height: 14px; transition: transform .2s ease; }
.eh-card:hover .more .k-svg-icon { transform: translateX(3px); }

/* ───────────────────── BANDA DE SEGURIDAD / CIERRE ───────────────────── */
.eh-secure {
    margin-top: 48px; position: relative; overflow: hidden; border-radius: 26px;
    padding: clamp(28px, 4vw, 46px);
    background:
        radial-gradient(600px 280px at 100% 0%, rgba(194, 165, 91, .18), transparent 60%),
        linear-gradient(120deg, #0b1840, #152250 58%, #243170);
    color: #fff; box-shadow: 0 30px 60px -32px rgba(11, 24, 64, .7);
    animation: ehUp .7s ease .2s both;
}
.eh-secure::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--eh-gold), transparent); }
.eh-secure-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.eh-secure h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.4vw, 2.05rem); margin: 0; color: #fff; letter-spacing: -.01em; }
.eh-secure p { margin: 12px 0 22px; color: rgba(255, 255, 255, .82); font-size: 1rem; line-height: 1.6; max-width: 44ch; }
.eh-secure-list { display: flex; flex-direction: column; gap: 12px; }
.eh-trust-item {
    display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-radius: 14px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
    font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .92);
}
.eh-trust-item .ti-ico { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center;
    background: rgba(194, 165, 91, .16); color: var(--eh-gold-lt); }
.eh-trust-item .ti-ico .k-svg-icon { width: 19px; height: 19px; }

/* ─────────────────────────── MOVIMIENTO ─────────────────────────── */
@keyframes ehDrift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(3%, 4%, 0) scale(1.08); } 66% { transform: translate3d(-3%, -3%, 0) scale(.95); } }
@keyframes ehPulse { 0% { box-shadow: 0 0 0 0 rgba(235, 217, 166, .6); } 70% { box-shadow: 0 0 0 9px rgba(235, 217, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(235, 217, 166, 0); } }
@keyframes ehShine { to { left: 140%; } }
@keyframes ehSpin { to { transform: rotate(360deg); } }
@keyframes ehFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ehUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ─────────────────────────── RESPONSIVO ─────────────────────────── */
@media (max-width: 920px) {
    .eh-hero-grid { grid-template-columns: 1fr; }
    .eh-art { min-height: 320px; margin-top: 8px; }
    .eh-grid3 { grid-template-columns: 1fr; }
    .eh-secure-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .eh-hero { border-radius: 22px; }
    .eh-chip { display: none; }            /* despejar en móvil */
    .eh-stats { grid-template-columns: repeat(2, 1fr); width: calc(100% - 24px); }
    .eh-policy { width: 100%; }
}

/* Respeto a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .eh-hero, .eh-stats, .eh-section, .eh-secure, .eh-card,
    .eh-aurora i, .eh-rings svg, .eh-chip, .eh-eyebrow .pulse { animation: none !important; }
    .eh-btn-gold:hover::after { animation: none !important; }
}
