/* ==========================================================================
   Electo — estilos de la landing (sirve en amigos.red y electo.mx)
   Paleta tomada de la marca Electo: azul marino #00146d y el azul de la palomita #1a6699,
   aclarados para que lean bien sobre fondo oscuro.
   ========================================================================== */
:root {
    --bg: #050a1a;
    --fg: #f3f6fb;
    --card: #0a1330;
    --muted: #101d40;
    --muted-fg: #94a1bf;
    --border: #1a2a55;

    --navy: 0 20 109;       /* #00146d  marino de marca */
    --brand: 26 102 153;    /* #1a6699  azul de la palomita */
    --blue: 37 132 214;     /* #2584d6 */
    --indigo: 79 102 232;   /* #4f66e8 */
    --cyan: 56 189 248;     /* #38bdf8 */
    --alert: 248 113 113;   /* #f87171  simulación / alertas */
    --amber: 251 191 36;    /* #fbbf24 */

    --grad-brand: linear-gradient(135deg, rgb(var(--cyan)), rgb(var(--blue)) 55%, rgb(var(--indigo)));
    --grad-btn: linear-gradient(135deg, rgb(var(--blue)), rgb(var(--indigo)));
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 4rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--fg);
    font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rel { position: relative; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }
:focus-visible { outline: 2px solid rgb(var(--cyan)); outline-offset: 3px; border-radius: 6px; }

/* ---------- Texto degradado ---------- */
.text-gradient { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; background-image: var(--grad-brand); }
.text-alert { color: rgb(var(--alert)); }

/* ---------- Botones ---------- */
.btn-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 999px; font-weight: 600; color: #fff; white-space: nowrap;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}
.btn-pill:hover { transform: scale(1.04); }
.btn-gradient { background: var(--grad-btn); }
.btn-gradient:hover { opacity: .92; }
.btn-glow { box-shadow: 0 0 30px rgb(var(--blue) / .35); }
.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-lg .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.btn-lg:hover .ico { transform: translateX(4px); }
.btn-outline { border: 1px solid rgb(var(--blue) / .45); background: rgb(var(--blue) / .08); color: var(--fg); }
.btn-block { width: 100%; }

/* ---------- Badges / tags ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .375rem 1rem; border-radius: 999px; border: 1px solid;
    font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.badge-blue { background: rgb(var(--blue) / .12); border-color: rgb(var(--blue) / .35); color: rgb(var(--cyan)); margin-bottom: 1.75rem; }
@keyframes pulse { 50% { opacity: .5; } }
.tag {
    display: inline-block; padding: .25rem .875rem; margin-bottom: 1.25rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgb(var(--cyan)); background: rgb(var(--blue) / .1); border: 1px solid rgb(var(--blue) / .3);
}
.tag-alert { color: rgb(var(--alert)); background: rgb(var(--alert) / .08); border-color: rgb(var(--alert) / .3); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    background: transparent; border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled, .site-header.menu-open {
    background: rgb(5 10 26 / .86);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}
.header-inner {
    max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand img { height: auto; max-height: 2rem; width: auto; }
.main-nav { display: none; gap: 1.5rem; }
.main-nav a, .mobile-nav a:not(.btn-pill) { font-size: .875rem; font-weight: 500; color: var(--muted-fg); transition: color .2s ease; }
.main-nav a:hover, .mobile-nav a:not(.btn-pill):hover { color: var(--fg); }
.header-cta { display: none; }
.menu-toggle { padding: .5rem; color: var(--fg); }
.menu-toggle .ico { width: 22px; height: 22px; }
.menu-toggle .when-open, .site-header.menu-open .when-closed { display: none; }
.site-header.menu-open .when-open { display: block; }
.mobile-nav { display: none; flex-direction: column; gap: 1rem; padding: .5rem 1.5rem 1.5rem; border-top: 1px solid var(--border); }
.site-header.menu-open .mobile-nav { display: flex; }
.mobile-nav .btn-pill { padding: .75rem 1.25rem; font-size: .875rem; margin-top: .5rem; }

@media (min-width: 1100px) {
    .brand img { max-height: 2.25rem; }
    .main-nav, .header-cta { display: flex; }
    .menu-toggle, .site-header .mobile-nav { display: none !important; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden; padding: calc(var(--header-h) + 2.5rem) 0 4rem; background: var(--bg);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-radials {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 30%, rgb(var(--blue) / .16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 25%, rgb(var(--indigo) / .16) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 60% 85%, rgb(var(--navy) / .55) 0%, transparent 60%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .6; }

.orb { position: absolute; border-radius: 50%; pointer-events: none; animation: float 10s ease-in-out infinite; }
.orb-blue   { width: 400px; height: 400px; left: -5%; top: 10%; background: radial-gradient(circle, rgb(var(--blue) / .14) 0%, transparent 70%); }
.orb-indigo { width: 320px; height: 320px; left: 72%; top: -5%; background: radial-gradient(circle, rgb(var(--indigo) / .14) 0%, transparent 70%); animation-delay: -3s; }
.orb-cyan   { width: 240px; height: 240px; left: 40%; top: 72%; background: radial-gradient(circle, rgb(var(--cyan) / .12) 0%, transparent 70%); animation-delay: -6s; animation-duration: 11s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(15px, -30px) scale(1.05); } }

.hero-grid {
    position: relative; z-index: 10; width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 1.25rem;
    display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center;
}
.hero-content { text-align: center; }
.hero-title {
    font-family: var(--font-heading); font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.08; letter-spacing: -.025em; margin-bottom: 1.25rem;
}
.hero-title span { display: block; }
.hero-kicker { font-size: 1.125rem; font-weight: 600; color: var(--fg); max-width: 38rem; margin: 0 auto 1rem; }
.hero-lead { font-size: 1rem; line-height: 1.7; color: var(--muted-fg); max-width: 38rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .875rem; }
.hero-note { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--muted-fg); }
.hero-note .ico { width: 14px; height: 14px; color: rgb(var(--cyan)); }
.pillars { margin-top: 2.5rem; display: grid; gap: .75rem; text-align: left; max-width: 38rem; margin-left: auto; margin-right: auto; }
.pillar { display: flex; gap: .75rem; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--muted-fg); }
.pillar strong { color: var(--fg); font-weight: 700; }
.pillar-ico {
    width: 2rem; height: 2rem; border-radius: .625rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgb(var(--blue) / .14); border: 1px solid rgb(var(--blue) / .3); color: rgb(var(--cyan));
}
.pillar-ico .ico { width: 16px; height: 16px; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 6rem; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }

@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) { .hero-kicker { font-size: 1.25rem; } .hero-lead { font-size: 1.0625rem; } }
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; }
    .hero-content { text-align: left; }
    .hero-title { font-size: clamp(2.75rem, 4.1vw, 3.75rem); }
    .hero-kicker, .hero-lead, .pillars { margin-left: 0; margin-right: 0; }
    .hero-actions { justify-content: flex-start; }
}

/* ---------- Celular del hero ---------- */
.hero-phone { display: flex; justify-content: center; }
.phone {
    position: relative; width: min(300px, 82vw); aspect-ratio: 300 / 610;
    border-radius: 2.75rem; padding: .7rem;
    background: linear-gradient(160deg, #1d2a4d, #0b1228 40%, #1a2547);
    box-shadow: 0 0 0 1px rgb(var(--blue) / .35), 0 30px 80px rgb(0 0 0 / .55), 0 0 90px rgb(var(--blue) / .25);
    animation: phone-float 7s ease-in-out infinite;
}
@keyframes phone-float { 50% { transform: translateY(-12px); } }
.phone-notch { position: absolute; top: 1.15rem; left: 50%; transform: translateX(-50%); width: 34%; height: 1.15rem; border-radius: 999px; background: #000; z-index: 3; }
.phone-screen {
    position: relative; height: 100%; border-radius: 2.15rem; overflow: hidden;
    background: linear-gradient(180deg, #071029, #050a1a);
    padding: 2.6rem .8rem .8rem; display: flex; flex-direction: column; gap: .6rem;
}
.app-bar { display: flex; align-items: center; gap: .6rem; }
.app-icon { border-radius: .5rem; }
.app-title { font-size: .85rem; font-weight: 700; line-height: 1.1; }
.app-sub { font-size: .65rem; color: var(--muted-fg); }
.live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.kpi { background: rgb(var(--blue) / .1); border: 1px solid rgb(var(--blue) / .22); border-radius: .6rem; padding: .35rem .45rem; }
.kpi-val { display: block; font-size: .85rem; font-weight: 700; color: rgb(var(--cyan)); }
.kpi-lbl { display: block; font-size: .58rem; color: var(--muted-fg); }
.kpi-alert { background: rgb(var(--alert) / .08); border-color: rgb(var(--alert) / .25); }
.kpi-alert .kpi-val { color: rgb(var(--alert)); }
.app-map { width: 100%; flex: 1; min-height: 0; border-radius: .9rem; background: #08122e; border: 1px solid rgb(var(--blue) / .2); }
.tile { stroke: #0a1838; stroke-width: 2; transition: fill .6s ease; }
.tile-v { fill: rgb(var(--blue) / .55); }
.tile-p { fill: rgb(var(--indigo) / .22); }
.tile-a { fill: rgb(var(--alert) / .38); }
.tile.c1 { animation: tile-verify 9s ease-in-out infinite; }
.tile.c2 { animation: tile-verify 9s ease-in-out infinite -3s; }
.tile.c3 { animation: tile-verify 9s ease-in-out infinite -6s; }
@keyframes tile-verify {
    0%, 30% { fill: rgb(var(--indigo) / .22); }
    45%, 85% { fill: rgb(var(--blue) / .6); }
    100% { fill: rgb(var(--indigo) / .22); }
}
.route { fill: none; stroke: rgb(var(--cyan)); stroke-width: 2; stroke-dasharray: 6 6; opacity: .8; animation: route 3s linear infinite; }
@keyframes route { to { stroke-dashoffset: -48; } }
.pin-dot { fill: #fff; stroke: rgb(var(--cyan)); stroke-width: 2.5; }
.pin-ring { fill: none; stroke: rgb(var(--cyan)); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 4.2s ease-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 40%, 100% { transform: scale(3.2); opacity: 0; } }
.app-toast {
    display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border-radius: .8rem;
    background: rgb(15 27 60 / .95); border: 1px solid rgb(52 211 153 / .35);
    animation: toast 6s ease-in-out infinite;
}
.toast-check { color: #34d399; display: flex; }
.toast-check .ico { width: 18px; height: 18px; }
.toast-title { display: block; font-size: .72rem; font-weight: 700; }
.toast-sub { display: block; font-size: .6rem; color: var(--muted-fg); }
@keyframes toast { 0%, 8% { opacity: 0; transform: translateY(8px); } 15%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(8px); } }
.app-legend { display: flex; justify-content: space-between; font-size: .58rem; color: var(--muted-fg); }
.app-legend span { display: inline-flex; align-items: center; gap: .3rem; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-v { background: rgb(var(--blue)); }
.lg-p { background: rgb(var(--indigo) / .5); }
.lg-a { background: rgb(var(--alert) / .8); }

/* ==========================================================================
   Secciones genéricas
   ========================================================================== */
.section { padding: 5rem 1.25rem; position: relative; overflow: hidden; background: var(--bg); }
.section-card { background: var(--card); }
.container-6xl { max-width: 72rem; margin: 0 auto; }
.container-3xl { max-width: 48rem; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-title { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; line-height: 1.15; letter-spacing: -.015em; color: var(--fg); margin-bottom: 1rem; }
.section-sub { font-size: 1.0625rem; line-height: 1.7; color: var(--muted-fg); }
.section-sub.narrow { max-width: 42rem; margin: 0 auto; }
.center-cta { margin-top: 3rem; display: flex; justify-content: center; }
.br-md { display: none; }
@media (min-width: 768px) { .section { padding: 6rem 1.5rem; } .section-title { font-size: 2.75rem; } .section-sub { font-size: 1.125rem; } .br-md { display: inline; } }

.section-glow-sides::before, .section-glow-edges::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.section-glow-sides::before {
    background: radial-gradient(ellipse 60% 40% at 10% 50%, rgb(var(--indigo) / .08) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 90% 50%, rgb(var(--blue) / .08) 0%, transparent 60%);
}
.section-glow-edges::before {
    background: radial-gradient(ellipse 50% 60% at 0% 50%, rgb(var(--blue) / .08) 0%, transparent 60%),
                radial-gradient(ellipse 40% 50% at 100% 50%, rgb(var(--indigo) / .07) 0%, transparent 60%);
}

/* ---------- Tarjetas ---------- */
.card {
    position: relative; overflow: hidden;
    background: rgb(10 19 48 / .8); border: 1px solid rgb(var(--blue) / .2); border-radius: 1.25rem;
}
.section-card .card { background: rgb(5 10 26 / .55); }
.top-line { position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--cyan) / .5), transparent); }

/* ==========================================================================
   2. El problema
   ========================================================================== */
.points { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.point { padding: 2rem 1.75rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.point-ico {
    width: 4.25rem; height: 4.25rem; border-radius: 1.25rem; margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: var(--grad-btn); box-shadow: 0 12px 36px rgb(var(--blue) / .35);
}
.point-ico .ico { width: 30px; height: 30px; stroke-width: 1.75; }
.point-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.point-text { font-size: 1rem; line-height: 1.6; color: var(--muted-fg); }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ==========================================================================
   3. Qué es Electo
   ========================================================================== */
.statement { text-align: center; background: radial-gradient(ellipse 70% 80% at 50% 50%, rgb(var(--navy) / .6), var(--bg) 70%); }
.statement-icon { width: 4rem; height: 4rem; margin: 0 auto 1.75rem; border-radius: 1rem; box-shadow: 0 0 40px rgb(var(--blue) / .35); }
.statement .section-title { font-size: clamp(2rem, 5vw, 3.25rem); }

/* ==========================================================================
   4. ¿Por qué Electo?
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.feature { padding: 1.75rem; }
.feature.tone-blue   { --tone: var(--blue); }
.feature.tone-indigo { --tone: var(--indigo); }
.feature.tone-cyan   { --tone: var(--cyan); }
.feature { border-color: rgb(var(--tone) / .22); transition: border-color .3s ease, transform .3s ease; }
.feature:hover { border-color: rgb(var(--tone) / .5); transform: translateY(-3px); }
.card-hover { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; background: radial-gradient(ellipse at 50% 0%, rgb(var(--tone) / .12), transparent 70%); }
.feature:hover .card-hover { opacity: 1; }
.feature-icon {
    width: 3rem; height: 3rem; border-radius: .875rem; margin-bottom: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: rgb(var(--ic) / .12); border: 1px solid rgb(var(--ic) / .3); color: rgb(var(--ic));
}
.feature-icon .ico { width: 22px; height: 22px; }
.icon-blue   { --ic: var(--blue); }
.icon-indigo { --ic: var(--indigo); }
.icon-cyan   { --ic: var(--cyan); }
.feature h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.feature p { font-size: .9375rem; line-height: 1.6; color: var(--muted-fg); }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ==========================================================================
   5. Cómo funciona
   ========================================================================== */
.steps { display: grid; grid-template-columns: 1fr; gap: 2.5rem; counter-reset: paso; position: relative; }
.step { text-align: center; position: relative; }
.step-icon {
    position: relative; width: 6.5rem; height: 6.5rem; margin: 0 auto 1.5rem; border-radius: 1.75rem;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: var(--grad-btn); box-shadow: 0 15px 45px rgb(var(--blue) / .35);
}
.step-icon .ico { width: 44px; height: 44px; stroke-width: 1.75; }
.step-num {
    position: absolute; top: -.6rem; right: -.6rem; width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: .875rem; font-weight: 700;
    background: var(--bg); border: 2px solid rgb(var(--cyan)); color: rgb(var(--cyan));
}
.step h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem; }
.step p { font-size: .9375rem; line-height: 1.65; color: var(--muted-fg); max-width: 22rem; margin: 0 auto; }
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .steps::before {
        content: ""; position: absolute; top: 3.25rem; left: 16.6%; right: 16.6%; height: 2px;
        background: linear-gradient(90deg, rgb(var(--cyan) / .1), rgb(var(--cyan) / .6), rgb(var(--cyan) / .1));
    }
}

/* ==========================================================================
   6. Siempre a tu alcance
   ========================================================================== */
.reach-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.reach-list { display: flex; flex-direction: column; gap: 1rem; }
.reach-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; }
.reach-ico {
    width: 3rem; height: 3rem; border-radius: .875rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgb(var(--blue) / .14); border: 1px solid rgb(var(--blue) / .3); color: rgb(var(--cyan));
}
.reach-ico .ico { width: 22px; height: 22px; }
.reach-title { display: block; font-weight: 700; margin-bottom: .25rem; }
.reach-text { display: block; font-size: .9375rem; color: var(--muted-fg); line-height: 1.55; }
@media (min-width: 960px) { .reach-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ==========================================================================
   7. Módulos
   ========================================================================== */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 4.5rem; }
.benefit {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
    padding: 1.75rem 1rem; border-radius: 1.25rem; background: rgb(5 10 26 / .55); border: 1px solid rgb(var(--blue) / .2);
}
.benefit-ico {
    width: 4rem; height: 4rem; border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; margin-bottom: .5rem;
    background: rgb(var(--blue) / .14); border: 1px solid rgb(var(--blue) / .3); color: rgb(var(--cyan));
}
.benefit-ico .ico { width: 30px; height: 30px; stroke-width: 1.75; }
.benefit-word { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.5rem, 4.5vw, 2.25rem); line-height: 1.1; }
.benefit-text { font-size: .875rem; line-height: 1.5; color: var(--muted-fg); max-width: 15rem; }
@media (min-width: 960px) { .benefits { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.modules-head { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.modules-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.module { padding: 1.5rem; }
.module-ico { display: inline-flex; width: 2.5rem; height: 2.5rem; border-radius: .75rem; align-items: center; justify-content: center; margin-bottom: 1rem; background: rgb(var(--indigo) / .14); border: 1px solid rgb(var(--indigo) / .35); color: #a5b4fc; }
.module-ico .ico { width: 20px; height: 20px; }
.module h4 { font-size: 1.0625rem; font-weight: 700; margin-bottom: .5rem; }
.module p { font-size: .9rem; line-height: 1.6; color: var(--muted-fg); }
@media (min-width: 640px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .modules-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ==========================================================================
   8. Demostración
   ========================================================================== */
.demo { text-align: center; padding-top: 7rem; padding-bottom: 7rem; }
.demo-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 50% 50%, rgb(var(--blue) / .2), transparent 70%),
                linear-gradient(135deg, rgb(var(--navy) / .6), var(--bg) 60%, rgb(var(--navy) / .5));
}
.demo .container-3xl { max-width: 60rem; }
.demo .section-sub { max-width: 44rem; margin-left: auto; margin-right: auto; }
.demo-title { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.demo-title span { display: block; }
.demo .section-sub { margin-bottom: 2.5rem; }

/* ==========================================================================
   9. Respaldo
   ========================================================================== */
.backers { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.backer { padding: 2.25rem 2rem; display: flex; flex-direction: column; }
.backer-logo { height: 9.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.75rem; padding: 0 1rem; border-radius: 1rem; background: rgb(var(--blue) / .06); border: 1px solid rgb(var(--blue) / .15); }
.backer-logo img { width: auto; max-width: 80%; max-height: 2.6rem; }
.backer-logo img[src*="trilogi"] { max-height: 7.75rem; }
.backer-wordmark { font-family: var(--font-heading); font-weight: 700; font-size: 1.875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); line-height: 2.25rem; }
.backer-role { font-weight: 700; font-size: 1.0625rem; margin-bottom: .75rem; }
.backer-text { color: var(--muted-fg); line-height: 1.65; font-size: .9375rem; }
.backer-link { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 600; color: rgb(var(--cyan)); align-self: flex-start; }
.backer-link .ico { width: 14px; height: 14px; }
.backers-close { margin: 2.5rem auto 0; max-width: 40rem; text-align: center; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 900px) { .backers { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item { background: rgb(5 10 26 / .55); border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; transition: border-color .3s ease; }
.faq-item.open { border-color: rgb(var(--blue) / .5); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.5rem; text-align: left; font-weight: 600; font-size: .9375rem; line-height: 1.4; }
.faq-chevron { color: rgb(var(--cyan)); display: flex; transition: transform .3s ease; }
.faq-chevron .ico { width: 18px; height: 18px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .3s ease, opacity .3s ease; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }
.faq-a p { padding: 0 1.5rem 1.25rem; font-size: .9375rem; line-height: 1.65; color: var(--muted-fg); }
@media (min-width: 768px) { .faq-q { font-size: 1rem; } }

/* ==========================================================================
   11. Cierre / contacto
   ========================================================================== */
.section-cta { position: relative; overflow: hidden; padding: 6rem 1.25rem; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgb(var(--blue) / .14) 0%, rgb(var(--navy) / .55) 50%, rgb(var(--indigo) / .14) 100%), var(--bg); }
.cta-orb { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; pointer-events: none; filter: blur(40px); }
.cta-orb-blue { left: 10%; width: 24rem; height: 24rem; background: radial-gradient(circle, rgb(var(--blue) / .16), transparent 70%); }
.cta-orb-cyan { right: 10%; width: 20rem; height: 20rem; background: radial-gradient(circle, rgb(var(--cyan) / .1), transparent 70%); }
.cta-grid { position: relative; max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.cta-title { font-family: var(--font-heading); font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.cta-lead { font-size: 1.125rem; line-height: 1.6; margin-bottom: 1rem; }
.cta-text { color: var(--muted-fg); line-height: 1.7; margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: .75rem; }
.contact-row { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.contact-row.align-start { align-items: flex-start; }
.contact-ico { width: 2rem; height: 2rem; border-radius: .5rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgb(var(--blue) / .14); border: 1px solid rgb(var(--blue) / .3); color: rgb(var(--cyan)); }
.contact-ico .ico { width: 14px; height: 14px; }
.contact-txt { color: var(--muted-fg); line-height: 1.6; transition: color .2s ease; }
a.contact-row:hover .contact-txt { color: var(--fg); }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

.cta-card { padding: 2rem 1.5rem; background: rgb(10 19 48 / .9); }
@media (min-width: 640px) { .cta-card { padding: 2.25rem; } }
.cta-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: .4rem; }
.field input {
    width: 100%; padding: .85rem 1.1rem; border-radius: .875rem; font: inherit; font-size: .9375rem;
    color: var(--fg); background: rgb(245 245 245 / .04); border: 1px solid rgb(var(--blue) / .3); outline: none;
    transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: rgb(148 161 191 / .7); }
.field input:focus { border-color: rgb(var(--cyan) / .8); background: rgb(245 245 245 / .06); }
.field input[aria-invalid="true"] { border-color: rgb(var(--alert) / .8); }
.cta-form .btn-block { margin-top: .5rem; }
.cta-note { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .75rem; color: var(--muted-fg); text-align: center; }
.cta-note .ico { width: 12px; height: 12px; }
.cta-sent { text-align: center; padding: 1.5rem .5rem; animation: pop-in .35s ease-out; }
.cta-sent[hidden], .cta-form[hidden] { display: none; }
.cta-sent-check { color: #34d399; display: flex; justify-content: center; margin-bottom: .75rem; }
.cta-sent-check .ico { width: 40px; height: 40px; }
.cta-sent-title { font-weight: 700; font-size: 1.125rem; }
.cta-sent-text { font-size: .9rem; color: var(--muted-fg); margin-top: .5rem; line-height: 1.6; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--card); border-top: 1px solid var(--border); }
.footer-line { position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(var(--cyan)), rgb(var(--blue)), rgb(var(--indigo)), transparent); }
.footer-glow { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 24rem; height: 12rem; opacity: .12; pointer-events: none; background: radial-gradient(ellipse, rgb(var(--blue)), transparent 70%); }
.footer-inner { position: relative; max-width: 80rem; margin: 0 auto; padding: 3.5rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: span 2; } }
.footer-brand .brand { display: inline-flex; margin-bottom: 1rem; }
.footer-brand .brand img { max-height: 2.25rem; }
.footer-brand p { font-size: .875rem; line-height: 1.65; color: var(--muted-fg); max-width: 22rem; }
.footer-title { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-fg); margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .7rem; }
.footer-list a { font-size: .875rem; color: var(--muted-fg); transition: color .2s ease; }
.footer-list a:hover { color: var(--fg); }
.footer-list .with-icon { display: inline-flex; align-items: center; gap: .5rem; }
.footer-list .ico { width: 14px; height: 14px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: .75rem; text-align: center; }
.footer-bottom p { font-size: .75rem; color: var(--muted-fg); }
.footer-bottom a { color: rgb(var(--cyan)); font-weight: 600; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

/* ==========================================================================
   Animaciones de aparición (las activa site.js agregando .js al <html>)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); transition-delay: var(--delay, 0s); }
.js .reveal.from-left { transform: translateX(-30px); }
.js .reveal.from-right { transform: translateX(30px); }
.js .reveal.visible { opacity: 1; transform: none; }

/* Por decisión del cliente las animaciones corren SIEMPRE, aunque el navegador tenga
   "reducir movimiento" activo: no hay bloque prefers-reduced-motion a propósito. */

/* Variantes de aparición */
.js .reveal.zoom { transform: translateY(24px) scale(.9); }
.js .reveal.zoom.visible { transform: none; }

/* Íconos que entran con rebote cuando su tarjeta aparece */
.js .reveal .feature-icon, .js .reveal .point-ico, .js .reveal .module-ico, .js .reveal .benefit-ico, .js .reveal .reach-ico, .js .step .step-icon {
    opacity: 0; transform: scale(.4) rotate(-12deg);
}
.js .reveal.visible .feature-icon, .js .reveal.visible .point-ico, .js .reveal.visible .module-ico, .js .reveal.visible .benefit-ico,
.js .reveal.visible .reach-ico, .js .step.visible .step-icon {
    animation: icon-pop .7s cubic-bezier(.34,1.56,.64,1) forwards;
    animation-delay: calc(var(--delay, 0s) + .25s);
}
@keyframes icon-pop { to { opacity: 1; transform: none; } }

/* Línea que une los 3 pasos: se dibuja al llegar */
.steps::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s cubic-bezier(.22,1,.36,1) .4s; }
.steps.visible::before { transform: scaleX(1); }

/* Palabras de beneficios con brillo que recorre el degradado */
.benefit-word { background-size: 220% auto; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }

/* Barra de progreso de lectura bajo el header */
.scroll-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--grad-brand); }

/* Botones principales con brillo que cruza */
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
    content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgb(255 255 255 / .28), transparent);
    transform: skewX(-20deg); animation: btn-shine 4.5s ease-in-out infinite;
}
@keyframes btn-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
