/* ContaOS · landing — kit de marca v1.0.
   Colores solo con los tokens del kit. El turquesa vivo queda para el agente (núcleo, «OS», acentos sobre fondo oscuro);
   el texto de color sobre fondo claro usa el turquesa profundo. Botón principal: tinta con texto blanco (sobre oscuro,
   turquesa con texto tinta, como el tema oscuro del producto). Sin scripts ni estilos en línea (lo exige la CSP). */

@font-face { font-family: "Saira"; src: url("/fonts/Saira-VF.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-VF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --tinta: #0B1B1F; --turquesa: #00C8CB; --turquesa-profundo: #00747A; --hielo: #DDF7F7; --papel: #F2F6F6; --blanco: #FFFFFF;
  --linea: #DCE4E5; --grafito: #4B5B60; --pizarra: #13292E; --neutro-100: #E7EEF0;
  --exito: #14724A; --exito-fondo: #E3F4EB; --advertencia: #965A00; --advertencia-fondo: #FFF3DC; --info: #2457B8; --info-fondo: #E8EEFB;
  --borde-oscuro: #24393E; --texto-oscuro: #E9F0F1; --texto2-oscuro: #9FB0B4; --agente-oscuro: #0E3437;
  --display: "Saira", ui-sans-serif, system-ui, sans-serif;
  --texto-fuente: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ancho: 1160px; --radio: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.6 var(--texto-fuente); color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
b, strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blanco); color: var(--tinta); padding: 12px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.saltar:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--turquesa-profundo); outline-offset: 3px; border-radius: 6px; }
.oscuro :focus-visible { outline-color: var(--turquesa); }

.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.seccion { padding-block: clamp(64px, 9vw, 120px); }
.seccion.claro { background: var(--papel); }
.seccion.blanco { background: var(--blanco); }
.seccion.oscuro, .oscuro { background: var(--tinta); color: var(--texto-oscuro); }
.sin-mayus { text-transform: none; letter-spacing: .04em; }

/* ─── Tipografía ─────────────────────────────────────────────────────────────────────────── */
.ojo { font: 600 .74rem/1 var(--display); font-stretch: 112.5%; letter-spacing: .16em; text-transform: uppercase; color: var(--grafito); margin-bottom: 1.1rem; }
.oscuro .ojo { color: var(--texto2-oscuro); }
.titulo { font: 600 clamp(1.9rem, 4.2vw, 3rem)/1.1 var(--display); font-stretch: 112.5%; letter-spacing: -.005em; text-wrap: balance; }
.titulo-grande { font-size: clamp(2.5rem, 6.6vw, 4.6rem); line-height: 1.03; }
.bajada { margin-top: 1.1rem; font-size: 1.08rem; max-width: 40rem; color: var(--grafito); text-wrap: pretty; }
.oscuro .bajada { color: var(--texto2-oscuro); }
.centrado { text-align: center; margin-inline: auto; }
.centrado .bajada { margin-inline: auto; }
.nota { font-size: .82rem; color: var(--grafito); margin-top: 1rem; }
.oscuro .nota { color: var(--texto2-oscuro); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

/* ─── Botones y piezas ───────────────────────────────────────────────────────────────────── */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: 0 1.4rem; border-radius: 10px; border: 1px solid transparent; background: var(--tinta); color: var(--blanco); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.boton:hover { background: var(--pizarra); }
.boton svg { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.boton-agente, .oscuro .boton { background: var(--turquesa); color: var(--tinta); }
.boton-agente:hover, .oscuro .boton:hover { background: #33D6D8; }
.boton-sec { background: transparent; color: var(--tinta); border-color: #9CA7A9; }
.boton-sec:hover { background: var(--neutro-100); }
.oscuro .boton-sec { background: transparent; color: var(--texto-oscuro); border-color: #3E565C; }
.oscuro .boton-sec:hover { background: var(--pizarra); }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.centrado .acciones, .acciones.centrado { justify-content: center; }

.nuc { display: inline-block; width: .9em; height: .9em; flex: none; }
.nuc path { fill: var(--turquesa); }
.insignia { display: inline-flex; align-items: center; gap: .5rem; background: var(--hielo); color: var(--turquesa-profundo); border-radius: 999px; padding: .28rem .85rem .28rem .65rem; font: 600 .8rem/1.4 var(--texto-fuente); }
.oscuro .insignia { background: var(--agente-oscuro); color: var(--turquesa); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .7rem; border-radius: 999px; font: 500 .78rem/1.5 var(--texto-fuente); border: 1px solid var(--linea); color: var(--grafito); background: var(--blanco); white-space: nowrap; }
.chip.exito { background: var(--exito-fondo); color: var(--exito); border-color: transparent; }
.chip.adv { background: var(--advertencia-fondo); color: var(--advertencia); border-color: transparent; }
.chip.neutro { background: var(--neutro-100); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.icono { width: 2.8rem; height: 2.8rem; border-radius: 11px; background: var(--neutro-100); color: var(--tinta); display: grid; place-items: center; flex: none; }
.icono svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icono.agente { background: var(--hielo); color: var(--turquesa-profundo); }
.oscuro .icono { background: #0F2328; color: var(--texto-oscuro); }
.oscuro .icono.agente { background: var(--agente-oscuro); color: var(--turquesa); }

.tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); padding: 1.5rem; }
.claro .tarjeta { background: var(--blanco); }
.blanco .tarjeta { background: var(--papel); }
.oscuro .tarjeta { background: var(--pizarra); border-color: var(--borde-oscuro); }
.tarjeta h3 { font: 600 1.1rem/1.3 var(--texto-fuente); margin: 1rem 0 .45rem; }
.tarjeta p { font-size: .95rem; color: var(--grafito); }
.oscuro .tarjeta p { color: var(--texto2-oscuro); }
.rejilla { display: grid; gap: 1.1rem; margin-top: 3rem; }
.rejilla.dos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.rejilla.tres { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.lista { display: flex; flex-direction: column; gap: .75rem; }
.lista li { position: relative; padding-left: 1.5rem; }
.lista li::before { content: ""; position: absolute; left: .15rem; top: .65em; width: .45rem; height: .45rem; background: currentColor; transform: rotate(45deg); border-radius: 1px; opacity: .8; }
.lista.agente li::before { background: var(--turquesa); opacity: 1; }

/* ─── Encabezado ─────────────────────────────────────────────────────────────────────────── */
.encabezado { position: sticky; top: 0; z-index: 50; background: var(--tinta); border-bottom: 1px solid var(--borde-oscuro); }
.encabezado .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.encabezado .logo img { width: 148px; height: auto; }
.menu { display: none; align-items: center; gap: clamp(.8rem, 1.6vw, 1.8rem); }
.menu a { color: var(--texto2-oscuro); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .5rem 0; white-space: nowrap; }
.encabezado .boton { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1099px) { .menu a { font-size: .9rem; } .encabezado .contenedor { gap: 1rem; } }
.menu a:hover { color: var(--blanco); }
.encabezado .boton { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.menu-movil { position: relative; display: block; }
.menu-movil summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--borde-oscuro); color: var(--blanco); cursor: pointer; }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.menu-movil nav { position: absolute; right: 0; top: 54px; width: min(78vw, 280px); background: var(--pizarra); border: 1px solid var(--borde-oscuro); border-radius: 12px; padding: .5rem; display: flex; flex-direction: column; }
.menu-movil nav a { color: var(--texto-oscuro); text-decoration: none; padding: .85rem 1rem; border-radius: 8px; font-weight: 500; }
.menu-movil nav a:hover { background: #0F2328; }
.der { display: flex; align-items: center; gap: .8rem; }
@media (min-width: 960px) { .menu { display: flex; } .menu-movil { display: none; } }

/* ─── Portada ────────────────────────────────────────────────────────────────────────────── */
.portada { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.portada::before { content: ""; position: absolute; inset: 0; background: url("/img/ondas.svg") no-repeat; background-size: 1500px auto; background-position: 85% 40%; opacity: .55; pointer-events: none; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--tinta) 0%, var(--tinta) 34%, rgba(11, 27, 31, 0) 62%); pointer-events: none; }
.portada .contenedor { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
.portada .titulo { max-width: 11em; }
.portada .bajada { font-size: 1.15rem; }
.portada .publico { margin-top: 1.6rem; font-size: .92rem; color: var(--texto2-oscuro); }
.portada .publico + .publico { margin-top: .4rem; }
.portada .publico a { color: var(--texto-oscuro); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 980px) { .portada .contenedor { grid-template-columns: 1.05fr .95fr; } }
@media (max-width: 979px) { .portada::before { opacity: .22; background-position: 130% 12%; } }

/* Ventana de ejemplo (siempre con la interfaz clara del producto) */
.ventana { background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75); text-align: left; }
.ventana .barra { display: flex; align-items: center; gap: .7rem; padding: .7rem 1rem; background: var(--papel); border-bottom: 1px solid var(--linea); font: 600 .82rem var(--texto-fuente); }
.ventana .barra img { height: 20px; width: auto; }
.ventana .barra .sp { flex: 1; }
.ventana .cuerpo { padding: .4rem 1rem 1rem; }
.fila-v { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--neutro-100); font-size: .86rem; }
.fila-v:last-child { border-bottom: 0; }
.fila-v b { display: block; font-size: .92rem; }
.fila-v .rfc { color: var(--grafito); font: 500 .76rem var(--mono); }
.fila-v .monto { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fila-v .cuenta { grid-column: 1 / 2; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--grafito); }
.fila-v .accion { grid-column: 2 / 3; justify-self: end; }
.btn-v { min-height: 44px; padding: 0 1rem; border-radius: 8px; border: 1px solid var(--linea); background: var(--blanco); color: var(--tinta); font-weight: 600; font-size: .85rem; cursor: pointer; }
.btn-v.principal { background: var(--tinta); color: var(--blanco); border-color: var(--tinta); }
.btn-v.principal:hover { background: var(--pizarra); }
.btn-v[disabled] { cursor: default; }
.sugerida[hidden], .aprobada[hidden] { display: none; }

/* ─── Franja ─────────────────────────────────────────────────────────────────────────────── */
.franja { background: var(--blanco); border-bottom: 1px solid var(--linea); padding-block: 1.6rem; }
.franja .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.4rem; }
.franja p { font: 600 .74rem var(--display); font-stretch: 112.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--grafito); }

/* ─── Problema ───────────────────────────────────────────────────────────────────────────── */
.dos-col { display: grid; gap: 3rem; align-items: center; margin-top: 3rem; }
@media (min-width: 900px) { .dos-col { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .dos-col.invertida > :first-child { order: 2; } }
.dolores { display: flex; flex-direction: column; gap: 1.4rem; }
.dolor { display: flex; gap: 1rem; align-items: flex-start; }
.dolor b { display: block; font-size: 1.05rem; }
.dolor span { color: var(--grafito); font-size: .95rem; }
.ritmo p { font: 600 .9rem var(--texto-fuente); margin: 1.2rem 0 .5rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.dias { display: flex; align-items: flex-end; gap: 3px; height: 92px; border-bottom: 1px solid var(--linea); }
.dias i { flex: 1; height: var(--h, 10%); background: #818D91; border-radius: 3px 3px 0 0; min-height: 2px; }
.dias.agente i { background: var(--pizarra); }
.eje { display: flex; justify-content: space-between; font: 500 .74rem var(--mono); color: var(--grafito); margin-top: .5rem; }

/* ─── La idea ────────────────────────────────────────────────────────────────────────────── */
.idea { position: relative; overflow: hidden; }
.idea .simbolo { display: none; }
@media (min-width: 980px) { .idea .simbolo { display: block; position: absolute; right: 40px; top: 120px; width: 380px; opacity: .95; } .idea .encabezado-seccion { max-width: 640px; } }
.pasos { display: grid; gap: 1.1rem; margin-top: 3.5rem; counter-reset: paso; }
@media (min-width: 900px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.paso { background: var(--pizarra); border: 1px solid var(--borde-oscuro); border-radius: var(--radio); padding: 1.5rem; }
.paso.agente { background: var(--agente-oscuro); border-color: transparent; }
.paso .k { font: 500 .78rem var(--mono); letter-spacing: .08em; color: var(--texto2-oscuro); }
.paso h3 { font: 600 1.15rem/1.3 var(--texto-fuente); margin: .6rem 0 .5rem; display: flex; align-items: center; gap: .5rem; color: var(--blanco); }
.paso p { color: var(--texto2-oscuro); font-size: .95rem; }
.paso.agente p { color: var(--texto-oscuro); }
.principio { margin-top: 2.5rem; font: 600 clamp(1.1rem, 2vw, 1.4rem)/1.35 var(--display); font-stretch: 112.5%; color: var(--blanco); }

/* ─── Productos ──────────────────────────────────────────────────────────────────────────── */
.producto { display: flex; flex-direction: column; padding: 2rem; }
.producto .etiqueta { font: 600 .74rem var(--display); font-stretch: 112.5%; letter-spacing: .14em; text-transform: uppercase; color: var(--grafito); margin-top: 1.2rem; }
.producto h3 { font: 600 1.45rem/1.25 var(--display); font-stretch: 112.5%; margin: .5rem 0 1.1rem; }
.producto .lista { margin-bottom: 1.8rem; font-size: .98rem; }
.producto .boton { align-self: flex-start; margin-top: auto; }

/* ─── Funciones ──────────────────────────────────────────────────────────────────────────── */
.funcion h3 { margin-top: 1.1rem; }
.apps { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.apps p { font-size: .92rem; color: var(--grafito); }

/* ─── Celular de ejemplo (portal del cliente) ───────────────────────────────────────────── */
.celular { width: min(100%, 300px); margin-inline: auto; background: var(--blanco); color: var(--tinta); border: 8px solid var(--tinta); border-radius: 34px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(11, 27, 31, .55); }
.celular .pantalla { padding: 1.1rem 1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; font-size: .8rem; }
.celular .marca-r { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.celular .marca-r i { width: 34px; height: 34px; border-radius: 9px; background: #7B2D26; color: var(--blanco); display: grid; place-items: center; font: 600 .95rem var(--display); font-style: normal; }
.celular .progreso { display: flex; gap: .3rem; }
.celular .progreso span { flex: 1; height: 4px; border-radius: 2px; background: var(--linea); }
.celular .progreso span.on { background: var(--tinta); }
.celular .campo { border: 1px solid #C9D5D7; border-radius: 8px; padding: .55rem .7rem; }
.celular .campo small { display: block; color: var(--grafito); font-size: .7rem; }
.celular .campo span { font-weight: 500; }
.celular .ir { background: var(--tinta); color: var(--blanco); text-align: center; border-radius: 9px; padding: .8rem; font-weight: 600; }
.rotulo-ejemplo { text-align: center; font-size: .78rem; color: var(--grafito); margin-top: 1rem; }
.pasos-claro { display: flex; flex-direction: column; gap: 1.5rem; }
.pasos-claro .dolor b { font-size: 1.05rem; }
.modos { margin-top: 3rem; }
.modos h3 { font: 600 1.2rem var(--display); font-stretch: 112.5%; }

/* ─── Flujo ──────────────────────────────────────────────────────────────────────────────── */
.flujo { display: grid; gap: .8rem; margin-top: 3rem; }
@media (min-width: 980px) { .flujo { grid-template-columns: repeat(5, 1fr); } }
.flujo .paso { padding: 1.2rem; }
.flujo .paso h3 { font-size: 1.02rem; }

/* ─── Control ────────────────────────────────────────────────────────────────────────────── */
.control { display: grid; gap: 1.5rem 2rem; margin-top: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.control > div { display: flex; gap: 1rem; align-items: flex-start; }
.control b { display: block; font-size: 1.02rem; color: var(--blanco); }
.control span { color: var(--texto2-oscuro); font-size: .93rem; }

/* ─── Preguntas ──────────────────────────────────────────────────────────────────────────── */
.preguntas { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: .7rem; }
.preguntas details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.preguntas summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid var(--grafito); border-bottom: 2px solid var(--grafito); transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -.2rem; }
.preguntas details[open] summary::after { transform: rotate(-135deg); margin-top: .2rem; }
.preguntas details p { padding: 0 1.3rem 1.2rem; color: var(--grafito); font-size: .98rem; }

/* ─── Cierre y pie ───────────────────────────────────────────────────────────────────────── */
.cierre { position: relative; overflow: hidden; text-align: center; }
.cierre::before { content: ""; position: absolute; inset: 0; background: url("/img/ondas.svg") no-repeat center; background-size: 1600px auto; opacity: .35; pointer-events: none; }
.cierre .contenedor { position: relative; }
.pie { background: var(--tinta); color: var(--texto2-oscuro); border-top: 1px solid var(--borde-oscuro); padding-block: 2.6rem; font-size: .92rem; }
.pie .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.pie img { width: 140px; height: auto; }
.pie nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.pie a { text-decoration: none; padding: .4rem 0; }
.pie a:hover { color: var(--blanco); }
.pie .contenedor + .contenedor { margin-top: 1.6rem; }
.pie-base { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem 2rem; padding-top: 1.4rem; border-top: 1px solid var(--borde-oscuro); font-size: .85rem; }
.pie-base p a { text-decoration: underline; text-underline-offset: 3px; }
.pie .colmena { display: inline-block; max-width: 100%; }
.pie .colmena img { width: 205px; max-width: 100%; height: auto; }

/* ─── Propuesta económica ────────────────────────────────────────────────────────────────── */
.precio .detalle { font-size: .93rem; }
.precio .subtitulo { margin-top: 1.4rem; font: 600 .88rem var(--texto-fuente); color: var(--tinta); }
.tramos { margin-top: .5rem; border-top: 1px solid var(--linea); }
.tramos li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--linea); font-size: .93rem; }
.tramos small { font-weight: 400; color: var(--grafito); }
.calc { display: none; margin-top: 1.4rem; padding: 1.1rem 1.2rem 1.2rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.js .calc { display: block; }
.calc label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 600 .9rem var(--texto-fuente); }
.calc output { font: 600 1.35rem var(--texto-fuente); }
.calc input[type="range"] { display: block; width: 100%; height: 28px; margin: .5rem 0 .9rem; accent-color: var(--tinta); cursor: pointer; }
.resultado { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.4rem, 1fr)); gap: .8rem 1rem; margin: 0; }
.resultado dt { font-size: .74rem; color: var(--grafito); }
.resultado dd { margin: .15rem 0 0; font: 600 1.15rem/1.2 var(--texto-fuente); }
.aparte { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--linea); display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; color: var(--grafito); }
.aparte b { color: var(--tinta); }
.folios { margin-top: 1.1rem; display: grid; gap: 1.4rem 2.5rem; align-items: center; padding: 1.6rem 2rem; background: var(--papel); border: 1px solid var(--linea); border-radius: var(--radio); }
@media (min-width: 900px) { .folios { grid-template-columns: .9fr 1.4fr; } }
.folios h3 { font: 600 1.15rem/1.3 var(--display); font-stretch: 112.5%; margin: 0 0 .4rem; }
.folios p { font-size: .95rem; color: var(--grafito); }
.paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .7rem; }
.paquete { display: flex; flex-direction: column; gap: .15rem; padding: .9rem 1rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: 12px; }
.paquete b { font-size: .86rem; }
.paquete span { font: 600 1.25rem/1.2 var(--texto-fuente); }
.paquete small { font-size: .76rem; color: var(--grafito); }
.anual { margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.anual .acciones { margin-top: 0; }
.nota.centrado { max-width: 46rem; }

/* ─── Piezas vivas (estado, no animación: el encabezado al bajar, la sección activa del menú) ── */
main { overflow-x: clip; }
.encabezado.pegado { box-shadow: 0 12px 28px -18px rgba(0, 0, 0, .8); }
.menu a { position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 2px; background: var(--texto-oscuro); transform: scaleX(0); transform-origin: left; }
.menu a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.menu a[aria-current] { color: var(--blanco); }
.fila-v.destello { background: var(--hielo); }

/* ─── Entrada de marca y portada (el título va por palabras; sin movimiento se ve entero y quieto) ── */
.intro { display: none; }
.pal, .pal > span { display: inline-block; }
@media print { .intro { display: none !important; } }

/* ─── Movimiento: solo transform y opacidad, y solo si la persona no pidió reducirlo ───────── */
@media (prefers-reduced-motion: no-preference) {
  /* --intro: lo que dura la entrada de marca antes de abrir la portada (0 si se salta: un toque, una tecla o un enlace con #) */
  :root { --intro: 1.55s; }
  html.intro-saltada { --intro: 0s; }
  html.intro-saltada .intro { display: none; }

  /* La entrada: el logo del kit (se dibuja, aparece el núcleo, entran «Conta» y «OS») con las ondas saliendo de él; después se abre.
     Son los tiempos del kit (2.2 s) comprimidos a ~1.5 s para no hacer esperar. */
  .intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden; background: var(--tinta); animation: intro-sale .6s ease var(--intro) forwards; }
  @keyframes intro-sale { to { opacity: 0; visibility: hidden; } }
  .intro-ondas { position: absolute; inset: 0; background: url("/img/ondas.svg") no-repeat center; background-size: 1600px auto; animation: intro-ondas 1.5s cubic-bezier(.2, .7, .2, 1) .75s both; }
  @keyframes intro-ondas { from { opacity: 0; scale: .32; } to { opacity: .6; scale: 1.06; } }
  .intro .co-logo { position: relative; display: block; width: min(78vw, 560px); height: auto; overflow: visible; }
  .intro .co-trazo { animation: co-dibujar .8s cubic-bezier(.55, 0, .25, 1) .07s forwards; }
  .intro .co-nucleo { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2) rotate(-45deg); animation: co-nucleo .42s cubic-bezier(.3, 1.7, .5, 1) .74s forwards; }
  .intro .co-conta { opacity: 0; transform: translateX(-28px); animation: co-palabra .5s cubic-bezier(.2, .7, .2, 1) .91s forwards; }
  .intro .co-os { opacity: 0; transform: translateX(-28px); animation: co-palabra .5s cubic-bezier(.2, .7, .2, 1) 1.04s forwards; }
  @keyframes co-dibujar { to { stroke-dashoffset: 0; } }
  @keyframes co-nucleo { to { opacity: 1; transform: scale(1) rotate(0deg); } }
  @keyframes co-palabra { to { opacity: 1; transform: translateX(0); } }

  /* La portada se abre en cascada cuando la entrada termina: encabezado, insignia, título por palabras, texto, botones y la ventana */
  .encabezado { animation: baja .8s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) - .1s) both; }
  @keyframes baja { from { transform: translateY(-100%); } }
  .portada .entra { animation: sube .9s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) + var(--e, 0) * .13s) both; }
  @keyframes sube { from { opacity: 0; transform: translateY(26px); } }
  .portada .contenedor > div:first-child > :nth-child(1) { --e: 0; }
  .portada .contenedor > div:first-child > :nth-child(3) { --e: 3; }
  .portada .contenedor > div:first-child > :nth-child(4) { --e: 4; }
  .portada .contenedor > div:first-child > :nth-child(5) { --e: 5; }
  .portada .contenedor > div:first-child > :nth-child(6) { --e: 6; }
  .portada .pal { overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
  .portada .pal > span { animation: palabra 1s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) + .15s + var(--p, 0) * .09s) both; }
  @keyframes palabra { from { transform: translateY(108%) rotate(5deg); } }
  .portada .pal:nth-of-type(2) > span { --p: 1; }
  .portada .pal:nth-of-type(3) > span { --p: 2; }
  .portada .pal:nth-of-type(4) > span { --p: 3; }
  .portada .pal:nth-of-type(5) > span { --p: 4; }
  .portada .ventana.entra { animation: ventana-entra 1.1s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) + .45s) both, flotar 9s ease-in-out calc(var(--intro) + 1.7s) infinite alternate; }
  @keyframes ventana-entra { from { opacity: 0; transform: translateX(46px) scale(.95); } }
  .portada .ventana .fila-v { animation: sube .7s cubic-bezier(.2, .7, .2, 1) calc(var(--intro) + .95s + var(--f, 0) * .16s) both; }
  .portada .ventana .fila-v:nth-child(2) { --f: 1; }
  .portada .ventana .fila-v:nth-child(3) { --f: 2; }
  .portada .ventana .fila-v.destello { animation: destello 1.4s ease-out forwards; }

  /* Las ondas respiran despacio y la portada se desplaza un poco más lento que el texto (--sy lo pone app.js) */
  .portada::before { animation: ondas-entran 1.7s cubic-bezier(.2, .7, .2, 1) var(--intro) both, respirar 16s ease-in-out calc(var(--intro) + 1.7s) infinite alternate; translate: 0 calc(var(--sy, 0) * -.1px); }
  .cierre::before { animation: respirar 18s ease-in-out infinite alternate; }
  @keyframes respirar { from { scale: 1; } to { scale: 1.08; } }
  @keyframes ondas-entran { from { opacity: 0; scale: .74; } }
  .idea .simbolo { animation: flotar 9s ease-in-out infinite alternate; }
  .portada .ventana:hover { animation-play-state: paused; }
  @keyframes flotar { from { translate: 0 -5px; } to { translate: 0 7px; } }

  /* La demostración del agente invita a aprobar, y al aprobar confirma con un destello */
  .btn-v.principal:not([disabled]) { animation: aviso 2.6s ease-out calc(var(--intro) + 2.6s) infinite; }
  .btn-v.principal:hover, .btn-v.principal:focus-visible { animation: none; }
  @keyframes aviso { 0% { box-shadow: 0 0 0 0 rgba(0, 200, 203, .55); } 65%, 100% { box-shadow: 0 0 0 12px rgba(0, 200, 203, 0); } }
  #demo-aprobada:not([hidden]) .chip { animation: aparecer .5s cubic-bezier(.2, 1.4, .4, 1); }
  @keyframes aparecer { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
  .fila-v.destello { animation: destello 1.4s ease-out forwards; }
  @keyframes destello { from { background: var(--hielo); } to { background: transparent; } }

  /* Entrada: las columnas llegan desde su lado (solo cuando van una junto a la otra) y las barras del mes crecen */
  @media (min-width: 900px) {
    .js .dos-col > .rev:first-child:not(.visto) { transform: translateX(-28px); }
    .js .dos-col > .rev:last-child:not(.visto) { transform: translateX(28px); }
  }
  .js .dias i { transform: scaleY(0); transform-origin: bottom; transition: transform .8s cubic-bezier(.2, .8, .2, 1) calc(.35s + var(--i, 0) * 24ms); }
  .js .rev.visto .dias i { transform: scaleY(1); }

  /* Del ticket a la póliza: el paso activo se eleva y se enciende (el del agente, con su turquesa) */
  .flujo .paso.activo { translate: 0 -5px; background: #183339; border-color: #4F6B71; }
  .flujo .paso.agente.activo { background: var(--agente-oscuro); border-color: var(--turquesa); }

  /* Al pasar el cursor */
  .tarjeta:hover { border-color: #B6C7CA; box-shadow: 0 16px 32px -20px rgba(11, 27, 31, .4); }
  .oscuro .tarjeta:hover, .paso:hover { border-color: #3E565C; box-shadow: none; }
  .paquete { transition: box-shadow .25s ease, border-color .25s ease; }
  .paquete:hover { border-color: #B6C7CA; box-shadow: 0 12px 24px -18px rgba(11, 27, 31, .45); }
  .tarjeta .icono, .paso .icono { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
  .tarjeta:hover .icono, .paso:hover .icono { transform: scale(1.1) rotate(-6deg); }
  .boton:hover { transform: translateY(-1px); }
  .boton:active { transform: none; }
  .encabezado { transition: box-shadow .3s ease; }
  .menu a::after { transition: transform .3s ease; }
  .preguntas details[open] p { animation: abrir .35s ease; }
  @keyframes abrir { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
}

/* ─── Botón flotante de WhatsApp (se oculta al llegar al pie: app.js) ──────────────────────── */
.flotante { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1.2rem 0 1rem; border-radius: 999px; background: var(--blanco); color: var(--tinta); border: 1px solid var(--linea); box-shadow: 0 14px 30px -12px rgba(11, 27, 31, .6); font-weight: 600; font-size: .95rem; text-decoration: none; transition: opacity .3s ease, transform .3s ease, visibility .3s; }
.flotante svg { width: 1.4rem; height: 1.4rem; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.flotante.oculto { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }
@media (max-width: 520px) { .flotante { width: 52px; padding: 0; justify-content: center; } .flotante span { display: none; } }
@media print { .flotante { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .flotante:not(.oculto) { animation: llamar 4s ease-out infinite; }
  .flotante:hover { animation: none; transform: translateY(-2px); }
  @keyframes llamar { 0%, 70% { box-shadow: 0 14px 30px -12px rgba(11, 27, 31, .6), 0 0 0 0 rgba(11, 27, 31, .35); } 100% { box-shadow: 0 14px 30px -12px rgba(11, 27, 31, .6), 0 0 0 14px rgba(11, 27, 31, 0); } }
}

/* ─── Entrada al desplazarse (solo con JavaScript; sin él todo se ve) ────────────────────── */
.js .rev { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), translate .4s ease, background-color .4s ease, box-shadow .25s ease, border-color .25s ease; }
.js .rev.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rev { opacity: 1; transform: none; transition: none; }
  .boton { transition: none; }
}
@media (max-width: 520px) {
  .encabezado .der .boton { display: none; }
  .fila-v { grid-template-columns: 1fr; }
  .fila-v .monto, .fila-v .accion { grid-column: 1; justify-self: start; text-align: left; }
}
@media print { .encabezado, .menu-movil { display: none; } .js .rev { opacity: 1; transform: none; } }
