/* GPI — landing. Tokens del Brand Book GPI (raíz de GP-Inversiones).
   Reglas duras: verde #3C7A4B es el ÚNICO acento y es IDÉNTICO en los dos temas
   (decisión de marca: identidad antes que contraste AA). Prohibido hex fuera de
   este bloque de tokens. */

/* ── Tipografía de marca, auto-hosteada ────────────────────────────────────
   NO volver a pedirlas a api.fontshare.com: Fontshare no sirve JetBrains Mono
   (el pedido se ignora en silencio y la mono cae al monospace del sistema) y el
   <link> tampoco llegaba a aplicar los @font-face. Mismo criterio y mismos
   .woff2 que GP-Inversiones/app/globals.css — no divergir. */
@font-face { font-family:'Clash Grotesk'; src:url('fonts/ClashGrotesk-400.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap }
@font-face { font-family:'Clash Grotesk'; src:url('fonts/ClashGrotesk-500.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap }
@font-face { font-family:'Clash Grotesk'; src:url('fonts/ClashGrotesk-600.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap }
@font-face { font-family:'JetBrains Mono'; src:url('fonts/JetBrainsMono-Variable.woff2') format('woff2'); font-weight:100 800; font-style:normal; font-display:swap }

:root {
    /* Marca */
    --green:       #3C7A4B;
    --green-deep:  #2E5E39;
    --green-400:   #6CA07E;
    --green-100:   #E9F2EC;   /* tinta sobre relleno verde, en los dos temas */
    --green-soft:  rgba(60, 122, 75, 0.14);

    --sans: 'Clash Grotesk', 'General Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

    --wrap: 1080px;
}

/* Oscuro = modo natural de la marca (el isologo vive sobre negro). */
[data-theme="dark"] {
    --bg:          #0A0A0A;
    --bg-elev:     #131313;
    --fg:          #FAFAF7;
    --fg-muted:    #8A8A8A;
    --fg-faint:    #4A4A4A;
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --warning:     #F2C94C;
    --warn-soft:   rgba(242, 201, 76, 0.12);
    --danger:      #F2685F;
}

[data-theme="light"] {
    --bg:          #FAFAF7;
    --bg-elev:     #FFFFFF;
    --fg:          #060606;
    --fg-muted:    #3A3A3A;
    --fg-faint:    #9A9A95;
    --line:        rgba(0, 0, 0, 0.08);
    --line-strong: rgba(0, 0, 0, 0.18);
    --warning:     #9A7400;
    --warn-soft:   rgba(154, 116, 0, 0.10);
    --danger:      #E54B4B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: transparent; }
html::-webkit-scrollbar-thumb {
    background: var(--line-strong); border-radius: 999px;
    border: 2px solid var(--bg); background-clip: padding-box;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--green); }
b, strong { font-weight: 600; color: var(--fg); }
::selection { background: var(--green); color: var(--green-100); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ─── Isologo ───────────────────────────────────────────────────────────────
   El <symbol> vive una vez en el HTML; acá solo el tamaño. Hereda el color con
   currentColor: verde sobre tinta, tinta sobre crema.
   ⚠️ Brand Book: nunca abajo de 24px de alto en digital — de ahí los tamaños. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.logo { display: block; height: 26px; width: auto; aspect-ratio: 440 / 215; fill: currentColor; color: var(--green); }
.logo-xl { height: clamp(44px, 6vw, 64px); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ─── Nav ─── */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px clamp(20px, 5vw, 40px);
    background: color-mix(in oklab, var(--bg) 72%, transparent);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-bottom: 1px solid transparent;
    transition: padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled { padding-block: 13px; border-bottom-color: var(--line); }

.nav-mark {
    display: flex; align-items: center; gap: 11px;
    font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted);
}
.nav-mark .logo { height: 24px; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.45 } }
.nav-mark .sep { width: 1px; height: 14px; background: var(--line-strong); }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
    font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--green); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    font-family: inherit; cursor: pointer; white-space: nowrap;
    background: var(--green); color: var(--green-100); border: 1px solid var(--green);
    border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 600;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--green-deep); border-color: var(--green-deep); }

.theme-toggle {
    display: flex; align-items: center; gap: 9px; cursor: pointer;
    background: none; border: 1px solid var(--line-strong); border-radius: 999px;
    padding: 7px 14px; color: var(--fg-muted);
    font-family: var(--mono); font-size: 10px;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); }
.theme-toggle .pill { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Abajo de 760px la nav queda en marca + tema: cuatro links no entran y el
   footer repite la navegación. */
@media (max-width: 760px) {
    /* Los links se van (el footer repite la navegación) pero el CTA y el tema
       se quedan: son los dos controles de la página. Se compactan para entrar. */
    .nav-links { display: none; }
    .nav-mark span:not(.dot):not(.sep), .nav-mark .sep { display: none; }
    .theme-toggle { padding: 7px 10px; }
    .theme-toggle #themeLabel { display: none; }
    .nav-cta { padding: 9px 15px; }
}

/* ─── Hero ─── */
.hero {
    min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: clamp(18px, 2.6vh, 30px); position: relative;
    padding: clamp(84px, 12vh, 132px) clamp(20px, 5vw, 40px) clamp(56px, 9vh, 92px);
}
.eyebrow {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--green);
}
/* El tamaño se acota también por ALTO: en una laptop baja, un clamp por vw solo
   empujaba el hint de scroll fuera de la pantalla. */
.hero h1 {
    font-size: clamp(34px, min(7.2vw, 9.2vh), 84px);
    font-weight: 500; letter-spacing: -0.035em; line-height: 0.98;
    text-wrap: balance; max-width: 19ch;
}
.hero-lead {
    color: var(--fg-muted); font-size: clamp(15px, 1.6vw, 18.5px);
    line-height: 1.6; max-width: 60ch;
}

.cue {
    position: absolute; bottom: clamp(22px, 4vh, 40px); left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--fg-faint);
}
.cue i {
    width: 1px; height: 26px; transform-origin: top;
    background: linear-gradient(var(--green), transparent);
    animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { opacity: .3; transform: scaleY(.55) } 50% { opacity: 1; transform: scaleY(1) } }

/* ─── CTA ─── */
.cta-solo { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.btn {
    font-family: inherit; cursor: pointer;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 24px; border-radius: 14px;
    font-size: 15px; font-weight: 600; border: 1px solid transparent;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg {
    width: 17px; height: 17px; stroke: currentColor; fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn-1 { background: var(--green); color: var(--green-100); border-color: var(--green); }
.btn-1:hover { background: var(--green-deep); border-color: var(--green-deep); }

/* ─── Diálogo de demo (2 pasos) ─── */
.demo {
    border: 1px solid var(--line-strong); border-radius: 24px;
    background: var(--bg-elev); color: var(--fg);
    padding: clamp(26px, 4vw, 40px); width: min(94vw, 520px);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
}
.demo::backdrop { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); }
.demo[open] { animation: demo-in 0.28s var(--ease); }
@keyframes demo-in { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.demo-x { position: absolute; top: 16px; right: 16px; }
.demo-x button {
    display: flex; cursor: pointer; padding: 8px; border-radius: 10px;
    background: none; border: 0; color: var(--fg-faint);
    transition: color 0.2s var(--ease);
}
.demo-x button:hover { color: var(--fg); }
.demo-x svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

.demo-paso {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.demo h2 {
    font-size: clamp(21px, 2.6vw, 26px); font-weight: 500;
    letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; margin-bottom: 24px;
}
.demo-step[hidden] { display: none; }
.demo-opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
    font-family: inherit; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 15px; width: 100%;
    padding: 16px 18px; border-radius: 14px;
    background: none; border: 1px solid var(--line-strong); color: var(--fg);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.opt:hover { border-color: var(--green); background: var(--green-soft); }
.opt svg { width: 20px; height: 20px; flex: 0 0 auto; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.opt span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt b { font-size: 15.5px; font-weight: 600; }
.opt i {
    font-style: normal; font-family: var(--mono); font-size: 11px;
    color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo-back {
    margin-top: 18px; padding: 2px 0; cursor: pointer;
    background: none; border: 0; color: var(--fg-faint);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
}
.demo-back:hover { color: var(--green); }

/* ─── Secciones ─── */
body > section { padding: clamp(72px, 11vw, 132px) 0; border-bottom: 1px solid var(--line); }
.section-num {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--green);
}
.section-num span { color: var(--fg-faint); letter-spacing: 0.1em; }
.section-num span::before { content: "—"; margin-right: 12px; }
.section-title {
    font-size: clamp(28px, 4.4vw, 52px); font-weight: 500;
    letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; max-width: 20ch;
}
.section-lead {
    margin-top: 22px; color: var(--fg-muted);
    font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; max-width: 62ch;
}

/* ─── Product shot del inicio ───────────────────────────────────────────────
   Va apenas pasado el hero, que es donde el rubro pone la foto del producto.
   Está DIBUJADO: para cambiarlo por una captura real, reemplazar el contenido
   de `.shot` por un <img> y borrar de acá para abajo hasta "Bloques". */
.shot-band { padding: 0 0 clamp(64px, 9vw, 110px) !important; border-bottom: 1px solid var(--line); }
.shot {
    border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden;
    background: var(--bg-elev); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.7);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-bar {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.shot-url {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--fg-faint);
}

.shot-body { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.shot-nav {
    display: flex; flex-direction: column; gap: 3px; padding: 16px 12px;
    border-right: 1px solid var(--line); background: var(--bg);
}
/* El isologo, igual que en el sidebar real de la plataforma
   (`GpiLogo` con `h-7 w-auto text-brand`). Va a 24px y no más chico: es el
   mínimo que fija el Brand Book para digital. */
.sn-mark { display: flex; margin-bottom: 12px; padding: 0 8px; }
.sn-mark .logo { height: 24px; }
.sn {
    font-size: 12px; color: var(--fg-faint); padding: 7px 8px; border-radius: 7px;
}
.sn.on { color: var(--green); background: var(--green-soft); }

.shot-main { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 16px; }
.shot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sh-t { font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; letter-spacing: -0.02em; }
.sh-d { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi {
    display: flex; flex-direction: column; gap: 5px;
    border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--bg);
}
.k-l { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.k-v { font-size: clamp(16px, 1.7vw, 19px); font-weight: 500; letter-spacing: -0.02em; }
.k-c { font-family: var(--mono); font-size: 10px; color: var(--fg-muted); }

.shot-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 10px; }
.card {
    display: flex; flex-direction: column; gap: 10px;
    border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg);
}
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.c-t { font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.c-n {
    font-family: var(--mono); font-size: 10px; color: var(--green);
    border: 1px solid var(--green); border-radius: 999px; padding: 2px 8px;
}
.c-leg { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; color: var(--fg-faint); }
.c-leg i { width: 10px; height: 2px; border-radius: 999px; background: var(--green); }
.c-leg i.alt { background: var(--line-strong); margin-left: 6px; }
.c-foot {
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg-faint);
}
.mini { margin-top: auto; }
.mini svg { display: block; width: 100%; height: 96px; }
.mini .g { stroke: var(--line); stroke-width: 1; }
.mini .line.alt { stroke: var(--line-strong); stroke-width: 1.4; stroke-dasharray: 3 3; }

/* Dos tarjetas anchas debajo: agenda y ranking. */
.card.wide { grid-column: 1 / -1; }
.ag { display: flex; flex-direction: column; gap: 8px; }
.ar {
    display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
    font-size: 12px; color: var(--fg-muted);
}
.ar b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--fg); }
.tagx {
    font-style: normal; font-family: var(--mono); font-size: 9px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.tagx.w { border-color: var(--warning); color: var(--warning); }

.rank { display: flex; flex-direction: column; gap: 8px; }
.rr {
    display: grid; grid-template-columns: 18px minmax(0, 1fr) auto 52px; gap: 12px; align-items: center;
    font-size: 12px; color: var(--fg-muted);
}
.rr i {
    font-style: normal; width: 18px; height: 18px; border-radius: 6px;
    border: 1px solid var(--line-strong); color: var(--fg-faint);
    display: flex; align-items: center; justify-content: center; font-size: 9.5px;
}
.rr:first-child i { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.rr b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; color: var(--fg); text-align: right; }
.rr em { font-style: normal; font-size: 10.5px; text-align: right; }
.mini .line { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mini .area { fill: var(--green-soft); stroke: none; }
.cr {
    display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: center;
    font-size: 12px; color: var(--fg-muted);
}
.cr i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.cr i.g { background: var(--green); }
.cr i.w { background: var(--warning); }
.cr b { font-family: var(--mono); font-weight: 500; color: var(--fg); font-size: 11.5px; }

@media (max-width: 720px) {
    .shot-nav { display: none; }
    .shot-body { grid-template-columns: 1fr; }
    .shot-cols { grid-template-columns: 1fr; }
}

/* ─── Bloques alternados: texto de un lado, producto del otro ─── */
.b-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px); align-items: start;
}
.b-grid.rev .b-txt { order: 2; }
.b-txt { display: flex; flex-direction: column; align-items: flex-start; }
.b-txt .section-title { max-width: 16ch; }
/* `start` arriba y sticky acá: cuando la columna de texto es más alta que el
   visual (la del asistente mide el doble), el producto acompaña la lectura en
   vez de dejar media pantalla vacía. Con `align-items: center` el item no se
   estira y sticky no engancha nada. */
.b-vis { min-width: 0; position: sticky; top: 96px; }
@media (max-width: 900px) {
    .b-grid { grid-template-columns: 1fr; gap: 32px; }
    .b-grid.rev .b-txt { order: 0; }
    .b-vis { position: static; }
}

.lista { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.lista li {
    position: relative; padding-left: 20px; color: var(--fg-muted);
    font-size: 16px; line-height: 1.6;
}
.lista li::before {
    content: ""; position: absolute; left: 0; top: 12px;
    width: 8px; height: 1px; background: var(--green);
}
/* Dos columnas de beneficio: el cliente y el asesor, lado a lado. Es el punto
   de la sección — el bot descarga a los dos. */
.dual {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: clamp(24px, 3vw, 36px); margin-top: 30px; width: 100%;
}
.dual-col { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 18px; }
.dual-tag {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--green);
}
.dual-col p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }


    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 6vw, 72px);
}

/* ─── Teléfono dibujado (sección del asistente) ─── */
.phone {
    width: min(300px, 100%); margin: 0 auto;
    border: 8px solid var(--line-strong); border-radius: 34px;
    background: var(--bg-elev); overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.55);
}
.ph-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 13px; border-bottom: 1px solid var(--line); background: var(--bg);
}
.ph-av {
    width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
    background: var(--green-soft); border: 1px solid var(--green); color: var(--green);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--mono); font-size: 9px; font-weight: 600;
}
.ph-meta { display: flex; flex-direction: column; line-height: 1.3; }
.ph-meta b { font-size: 13px; font-weight: 600; }
.ph-meta i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--green); }

.ph-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 11px; }
.msg {
    max-width: 88%; padding: 8px 11px 6px; border-radius: 12px;
    font-size: 12.5px; line-height: 1.45; position: relative;
}
.msg .t {
    display: block; text-align: right; font-family: var(--mono);
    font-size: 8.5px; color: var(--fg-faint); margin-top: 3px;
}
.msg.out { align-self: flex-end; background: var(--green-soft); border: 1px solid var(--green); }
.msg.in { align-self: flex-start; background: var(--bg); border: 1px solid var(--line-strong); }
.msg .num { font-size: 12px; }

/* Burbuja de audio: es el punto de la sección — se pregunta hablando. */
.audio { display: flex; align-items: center; gap: 8px; }
.audio .play {
    width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
    background: var(--green); display: flex; align-items: center; justify-content: center;
}
.audio .play svg { width: 11px; height: 11px; fill: var(--green-100); stroke: none; }
.audio .wave { display: flex; align-items: center; gap: 2px; height: 16px; flex: 1 1 auto; }
.audio .wave i {
    width: 2px; border-radius: 999px; background: var(--green); opacity: 0.55;
    height: 40%; animation: wave 1.5s var(--ease) infinite;
}
.audio .wave i:nth-child(3n) { height: 90%; }
.audio .wave i:nth-child(3n+1) { height: 65%; }
.audio .wave i:nth-child(2) { animation-delay: .1s } .audio .wave i:nth-child(3) { animation-delay: .2s }
.audio .wave i:nth-child(4) { animation-delay: .3s } .audio .wave i:nth-child(5) { animation-delay: .4s }
.audio .wave i:nth-child(6) { animation-delay: .5s } .audio .wave i:nth-child(7) { animation-delay: .6s }
.audio .wave i:nth-child(8) { animation-delay: .7s } .audio .wave i:nth-child(9) { animation-delay: .8s }
.audio .wave i:nth-child(10) { animation-delay: .9s } .audio .wave i:nth-child(11) { animation-delay: 1s }
.audio .wave i:nth-child(12) { animation-delay: 1.1s } .audio .wave i:nth-child(13) { animation-delay: 1.2s }
.audio .wave i:nth-child(14) { animation-delay: 1.3s }
@keyframes wave { 0%, 100% { opacity: .35; transform: scaleY(.7) } 50% { opacity: 1; transform: scaleY(1.25) } }
.audio .dur { font-family: var(--mono); font-size: 9.5px; color: var(--fg-muted); flex: 0 0 auto; }

.msg.file .doc {
    display: flex; align-items: center; gap: 9px; margin-bottom: 7px;
    padding: 8px; border-radius: 9px; background: var(--bg-elev);
}
.msg.file .ext {
    font-family: var(--mono); font-size: 8.5px; font-weight: 600; letter-spacing: .04em;
    color: var(--green); border: 1px solid var(--green); border-radius: 5px; padding: 4px 5px; flex: 0 0 auto;
}
.msg.file .dn { display: flex; flex-direction: column; min-width: 0; }
.msg.file .dn b { font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg.file .dn i { font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--fg-faint); }

/* Pilares: hairline + dos columnas. Sin cajas, sin chips. */
.kicker-wide { margin-top: clamp(28px, 4vw, 44px); max-width: 62ch; }
.kicker {
    border-left: 2px solid var(--green); padding: 2px 0 2px 16px; margin-top: 26px;
    font-size: 16px; font-weight: 500; line-height: 1.5; max-width: 54ch;
}

/* ─── Mockups (dibujados, sin imágenes) ─── */
.mock {
    background: var(--bg-elev); border: 1px solid var(--line);
    border-radius: 16px; overflow: hidden; margin: 8px 0 clamp(20px, 3vw, 32px);
}
.mock-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--fg-muted);
}
.mock-head .live { display: flex; align-items: center; gap: 7px; color: var(--fg-faint); }
.mock-head .live i {
    width: 6px; height: 6px; border-radius: 50%; background: var(--green);
    animation: pulse 2.8s var(--ease) infinite;
}

.feed { display: flex; flex-direction: column; }
.fr {
    display: grid; grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.fr:last-child { border-bottom: 0; }
.fico {
    width: 26px; height: 26px; border-radius: 8px; background: var(--bg);
    border: 1px solid var(--line-strong); color: var(--fg-muted);
    display: flex; align-items: center; justify-content: center;
}
.fico svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fico.g { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.fico.w { border-color: var(--warning); background: var(--warn-soft); color: var(--warning); }
.ftxt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ftxt b { font-size: 14px; font-weight: 500; }
.ftxt i { font-style: normal; font-size: 12px; line-height: 1.45; color: var(--fg-muted); }
.tag {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; white-space: nowrap; color: var(--fg-muted);
    border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 11px;
}
.tag.g { border-color: var(--green); color: var(--green); }
.tag.w { border-color: var(--warning); color: var(--warning); }
@media (max-width: 620px) {
    .fr { grid-template-columns: 26px minmax(0, 1fr); row-gap: 10px; }
    .fr > }

.tl { padding: 6px 16px 14px; }
.te { display: grid; grid-template-columns: 56px 20px minmax(0, 1fr); gap: 12px; padding: 13px 0; position: relative; }
.te::after { content: ""; position: absolute; left: 66px; top: 26px; bottom: -13px; width: 1px; background: var(--line); }
.te:last-child::after { display: none; }
.te .d {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg-faint); text-align: right;
    padding-top: 4px; line-height: 1.4;
}
.te .k {
    width: 20px; height: 20px; border-radius: 50%; z-index: 1; margin-top: 1px;
    border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg-muted);
    display: flex; align-items: center; justify-content: center;
}
.te .k svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.te.on .k { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.te .b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.te .b i {
    font-style: normal; font-family: var(--mono); font-size: 9.5px;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint);
}
.te .b b { font-size: 14px; font-weight: 500; line-height: 1.4; }
.te .b .num { font-size: 13px; }

/* ─── Diagrama: disperso → junto ─── */
.flujo {
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(12px, 1.6vw, 20px); align-items: center;
}
.fl-cap {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--fg-faint); margin-bottom: 10px;
}
.fl-cap.on { color: var(--green); }

.flujo-in { display: flex; flex-direction: column; gap: 6px; }
.fi {
    display: flex; flex-direction: column; gap: 2px;
    border: 1px dashed var(--line-strong); border-radius: 9px; padding: 8px 10px;
}
.fi b { font-size: 12px; font-weight: 500; color: var(--fg-muted); }
.fi i { font-style: normal; font-family: var(--mono); font-size: 9.5px; color: var(--fg-faint); }

.flujo-arrow svg { width: 40px; height: 12px; stroke: var(--green); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.flujo-out { display: block; }
.fo-card {
    border: 1px solid var(--green); border-radius: 14px;
    background: var(--green-soft); padding: 16px 15px;
    display: flex; flex-direction: column; gap: 13px;
}
.fo-mark {
    display: flex; align-items: center; gap: 9px;
    font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}
.fo-mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.fo-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.fo-card li {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
    color: var(--fg); border: 1px solid var(--green); border-radius: 7px; padding: 6px 9px;
}
.fo-foot {
    padding-top: 11px; border-top: 1px solid var(--green);
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--fg-muted);
}

@media (max-width: 560px) {
    .flujo { grid-template-columns: 1fr; }
    .flujo-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ─── Gráfico de mercado ─── */
.chart { position: relative; padding: 16px 0 0; }
.chart svg { display: block; width: 100%; height: 130px; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: var(--green-soft); stroke: none; }
/* 7px adentro del borde: la serie termina justo en el filo y `.mock` recorta,
   así que a 100% el punto quedaba partido al medio. */
.chart .dot {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px var(--green-soft);
}
.chart-foot {
    display: flex; justify-content: space-between; padding: 10px 16px 14px;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
    text-transform: uppercase; color: var(--fg-faint);
}

.quote {
    display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 16px 16px 0;
}
.q-lbl {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--fg-faint); width: 100%;
}
.q-val { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.q-chg { font-size: 12px; font-weight: 500; }
.up { color: var(--green); }
.down { color: var(--danger); }

.panel { border-top: 1px solid var(--line); }
.pr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto 62px;
    gap: 12px; align-items: center; padding: 10px 16px;
    font-size: 13px; border-bottom: 1px solid var(--line);
}
.pr:last-child { border-bottom: 0; }
.pr span:nth-child(2), .pr span:nth-child(3) { text-align: right; }
.pr-head span {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--fg-faint);
}

/* ─── Segmentación (espejo de la pantalla real: viñetas + treemap + grilla) ─── */
.segcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.sc {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px 11px; background: var(--bg-elev);
}
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sc-top b {
    font-family: var(--mono); font-size: 10px; font-weight: 600;
    border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 7px; color: var(--fg-muted);
}
.sc.on .sc-top b { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.sc-top .num { font-size: 15px; font-weight: 500; }
.sc-aum { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; margin-top: 2px; }
.sc-pct { font-size: 9px; color: var(--fg-faint); line-height: 1.4; }
.sc-warn {
    display: flex; align-items: center; gap: 4px; margin-top: 2px;
    font-family: var(--mono); font-size: 9px; color: var(--fg-muted);
}
.sc-warn i { font-style: normal; color: var(--warning); }

/* Treemap: rampa de verdes por tamaño, no hues nuevos. */
.tree {
    display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(5, 15px);
    gap: 2px; padding: 12px 11px; border-top: 1px solid var(--line);
}
.tree i { display: block; border-radius: 3px; }
.tree i.a { background: var(--green); }
.tree i.b { background: var(--green-400); opacity: 0.65; }
.tree i.c { background: var(--line-strong); }

.grid { border-top: 1px solid var(--line); }
.gr {
    display: grid; grid-template-columns: minmax(0, 1fr) 28px 68px 44px;
    gap: 10px; align-items: center; padding: 9px 11px;
    border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-muted);
}
.gr:last-child { border-bottom: 0; }
.gr span:nth-child(3), .gr span:nth-child(4) { text-align: right; }
.gr-head span {
    font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--fg-faint);
}
.sg {
    font-family: var(--mono); font-size: 9px; font-weight: 600; text-align: center;
    border-radius: 5px; padding: 2px 0; border: 1px solid var(--line-strong); color: var(--fg-faint);
}
.sg.a { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.gr .num { color: var(--fg); }
.gr .num.warn { color: var(--warning); }

.segs-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px; border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--fg-muted);
}

/* ─── Tres lados ─── */
.lados {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(28px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px);
}
.lado { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 22px; }
.lado-tag {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--green);
}
.lado p { font-size: 15px; line-height: 1.6; color: var(--fg-muted); }
.lado-out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }

    padding: clamp(22px, 3vw, 30px) 0; border-top: 1px solid var(--line);
    color: var(--fg-muted); font-size: 16px; line-height: 1.65; max-width: 74ch;
}

/* ─── Nosotros ─── */
.nos { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.nos p { color: var(--fg-muted); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; max-width: 66ch; }
.nos .kicker-wide { margin-top: clamp(28px, 4vw, 44px); max-width: 62ch; }
.kicker { grid-column: auto; color: var(--fg); }

.equipo {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(28px, 4vw, 48px); margin-top: 12px;
}
.miembro { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 20px; }
.m-nom { font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.m-rol {
    margin-top: 6px; font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--green);
}
.m-txt { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--fg-muted); }

/* ─── Contacto ─── */
footer { padding: clamp(72px, 11vw, 132px) 0 0; }
.cierre {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 40px); align-items: end;
    padding-bottom: clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line);
}
.cierre .logo-xl { grid-column: 1 / -1; margin-bottom: clamp(14px, 2vw, 22px); }
.cierre .section-title { max-width: 14ch; }
@media (max-width: 640px) { .cierre { grid-template-columns: 1fr; align-items: start; } }

.f-grid {
    display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 48px); padding: clamp(44px, 6vw, 64px) 0;
}
@media (max-width: 860px) { .f-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

.f-marca { display: flex; flex-direction: column; gap: 14px; }
.f-mark { display: flex; }
.f-mark .logo { height: 30px; }
.f-marca p { font-size: 14px; line-height: 1.6; color: var(--fg-muted); max-width: 34ch; }

.f-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.f-col h3 {
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--fg-faint); font-weight: 400; margin-bottom: 3px;
}
.f-col a, .f-col span {
    font-size: 14px; color: var(--fg-muted); line-height: 1.5;
    transition: color 0.2s var(--ease);
}
.f-col a:hover { color: var(--green); }
.f-demo {
    font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
    background: none; border: 0; padding: 0; color: var(--green); text-align: left;
    transition: opacity 0.2s var(--ease);
}
.f-demo:hover { opacity: 0.7; }

.f-base {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 0 30px; border-top: 1px solid var(--line);
    font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint);
}

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
