/* Landing de Vanguard-IA. Sin scripts, sin fuentes externas, sin cookies ni analítica.
   Colores de la plataforma (gema verde sobre ónix); oscuro por defecto, claro si el sistema lo pide.
   Método de diseño: una afirmación fuerte por pantalla, la idea clave resaltada, un solo objeto con identidad (la gema). */
:root {
  --bg: #070b09; --surface: #0c1411; --surface-2: #121d18;
  --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .2);
  --text: #e6ece8; --muted: #9bb0a5;
  --brand: #38b686; --brand-light: #45cf98; --brand-ink: #04130c; --glow: rgb(69 207 152 / .16); --warn: #fbbf24;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f7f5; --surface: #ffffff; --surface-2: #e9f1ed;
    --line: rgb(10 30 20 / .12); --line-strong: rgb(10 30 20 / .24);
    --text: #0e1a15; --muted: #4c5d54;
    --brand: #17785a; --brand-light: #1f8c67; --brand-ink: #ffffff; --glow: rgb(31 140 103 / .12); --warn: #8a5a00;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; min-height: 100dvh; color: var(--text); line-height: 1.6; font-size: 1.0625rem;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(60rem 28rem at 50% -10rem, var(--glow), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
a { color: inherit; }
/* Puntero: un avión de papel (SVG en línea, sin scripts). Solo en dispositivos con ratón; enlaces y botones conservan la mano. */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M2 2 30 13 17 17Z' fill='%23ffffff' stroke='%23070b09' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M17 17 30 13 13 30Z' fill='%2345cf98' stroke='%23070b09' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto; }
  a, .btn, summary { cursor: pointer; }
}
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: .75rem; top: -4rem; z-index: 10; padding: .6rem 1rem; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: .75rem; }
.wrap { width: 100%; max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }

/* Cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; font-size: 1.1rem; }
.top nav { display: flex; align-items: center; gap: 1.5rem; }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link:hover { background-size: 100% 1px; } }
.top .link { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .top nav .link { display: none; } }

/* Botones: un solo par; responden al puntero y se hunden al pulsar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: 0 1.35rem; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--text); background: transparent; border: 1px solid var(--line-strong);
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); border-color: transparent; color: var(--brand-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--brand); }
  .btn-primary:hover { background: var(--brand-light); border-color: transparent; }
}
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }

/* Idea clave resaltada: el bloque verde se dibuja una vez; el texto va en el color de tinta de la marca */
mark {
  color: var(--brand-ink); padding: .02em .22em; margin-inline: -.04em; border-radius: .18em;
  background: linear-gradient(var(--brand), var(--brand)) 0 0 / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Cada sección es una pantalla; el hero va solo en la primera */
main > section { padding-block: 5rem; }
.screen { min-height: 100svh; display: flex; align-items: center; }
.hero { min-height: calc(100svh - 5.2rem); display: flex; align-items: center; padding-block: 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 3.5rem; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 6rem; } }   /* deja sitio a la gema, que asoma sobre la tarjeta */
.hero h1 { margin: 0; max-width: 17ch; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.hero .fact, .hero .lead { max-width: 40rem; font-size: clamp(1.1rem, 2vw, 1.3rem); }
.hero .fact { margin: 1.75rem 0 0; }
.hero .lead { margin: 1rem 0 0; color: var(--muted); }

h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.statement { max-width: 20ch; }
.statement + p { margin: 1.75rem 0 0; max-width: 36rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.center { text-align: center; }
.center .statement, .center .statement + p { margin-inline: auto; }
.center .actions { justify-content: center; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

/* La gema: el objeto con identidad; su barrido de luz ocurre una vez al cargar */
.gem-stage { position: relative; }
.gem { position: absolute; z-index: 0; top: -5.4rem; right: 1.25rem; width: 8.5rem; overflow: hidden; filter: drop-shadow(0 18px 30px rgb(0 0 0 / .35)); }
.gem svg { display: block; width: 100%; height: auto; }
.gem::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 34%; background: rgb(255 255 255 / .38); filter: blur(3px); transform: translateX(-140%) skewX(-18deg); animation: sweep 2.2s cubic-bezier(.4, 0, .2, 1) .9s 1 both; }
@keyframes sweep { to { transform: translateX(380%) skewX(-18deg); } }
@media (max-width: 960px) { .gem { top: -4.4rem; right: 1rem; width: 7rem; } }

/* Conversación de ejemplo: la interfaz del producto como HTML, no una imagen */
.demo { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px -24px rgb(0 0 0 / .45); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; font-weight: 600; }
.demo-tag { font-weight: 500; font-size: .8rem; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: .1rem .6rem; }
.demo-body { display: grid; gap: .8rem; padding: 1.25rem 1.1rem 1.4rem; }
.msg { margin: 0; max-width: 92%; padding: .75rem 1rem; border-radius: 14px; font-size: 1rem; line-height: 1.45; }
.msg p { margin: 0; }
.msg-user { justify-self: end; background: var(--surface-2); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg-bot { justify-self: start; border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border-bottom-left-radius: 4px; }
.msg-bot .source { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.msg-bot .source span { color: var(--brand-light); font-weight: 600; margin-right: .35rem; }
.msg-miss { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }

/* Pasos */
.steps { list-style: none; margin: 3.5rem 0 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: paso; }
.steps li { counter-increment: paso; padding-top: 1.1rem; border-top: 1px solid var(--line-strong); }
.steps li::before { content: counter(paso); display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--brand-light); margin-bottom: .9rem; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.25; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 1.75rem; margin-top: 2.5rem; } }

/* Lo que cuidamos: lista de términos, sin tarjetas */
.terms { margin: 3rem 0 0; display: grid; gap: 0; }
.terms > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.terms > div:last-child { border-bottom: 1px solid var(--line); }
.terms dt { font-weight: 650; font-size: 1.15rem; }
.terms dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .terms > div { grid-template-columns: 1fr; gap: .4rem; } .terms { margin-top: 2rem; } }

/* Con y sin asistente: dos columnas de líneas de tiempo, sin tarjetas */
.aside-note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); }
.statement + .aside-note { margin-top: 1rem; font-size: .9rem; }
.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; margin-top: 3rem; }
.side h3 { margin: 0 0 1.1rem; font-size: 1.2rem; }
.side-before h3 { color: var(--muted); }
.side-after h3 { color: var(--brand-light); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.side-before .timeline time, .side-before .timeline span { color: var(--muted); }
.side-after .timeline time { color: var(--brand-light); }
@media (max-width: 820px) { .versus { grid-template-columns: 1fr; gap: 2.25rem; margin-top: 2rem; } }

/* Preguntas frecuentes: filas desplegables nativas (teclado y lectores de pantalla sin JS) */
.faq { margin-top: 3rem; max-width: 46rem; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; font-weight: 650; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.5rem; line-height: 1; color: var(--brand-light); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; max-width: 40rem; color: var(--muted); }

/* Contacto */
.contact-note { margin: 1.25rem 0 0; color: var(--muted); }

/* Pie */
footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
footer p { margin: 0; }
footer nav { display: flex; gap: 1.25rem; }

/* Páginas legales: medida de línea cómoda */
.legal { max-width: 46rem; padding-block: 3rem 5rem; }
.legal h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.legal .updated { margin: 0 0 2.5rem; color: var(--muted); font-size: .95rem; }
.legal h2 { margin: 2.25rem 0 .75rem; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }

/* El hero entra una sola vez al cargar; el resaltado del titular se dibuja después. Con movimiento reducido solo se desvanece. */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { background-size: 0 100%; } to { background-size: 100% 100%; } }
.hero-copy > *, .demo { animation: up .7s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .07s; } .hero-copy > :nth-child(3) { animation-delay: .14s; } .hero-copy > :nth-child(4) { animation-delay: .21s; } .demo { animation-delay: .3s; }
.hero h1 mark { animation: draw .6s var(--ease-out) .55s both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .demo { animation: fade .3s linear both; animation-delay: 0s; }
  .hero h1 mark { animation: none; }
  .gem::after { animation: none; display: none; }
  .btn:active { transform: none; }
  .faq summary::after { transition: none; }
}
