/* =========================================================
   TERI — estilos del sitio
   Tipografía: Geist (títulos), Poppins (textos), Geist Mono (etiquetas),
   Manrope (solo animación HELLO). Todas locales, licencia OFL.
   ========================================================= */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta del PDF visual */
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #00273d;          /* azul marino: texto y botones */
  --ink-2: #466272;        /* texto secundario (6.2:1 sobre fondo) */
  --teal: #0097b2;         /* acento: líneas, detalles y títulos grandes */
  --teal-ink: #007a90;     /* turquesa para texto chico (4.8:1) */
  --sky: #c2dcff;
  --sun: #ffeb99;
  --line: rgba(0, 39, 61, 0.14);
  --line-strong: rgba(0, 39, 61, 0.28);
  /* Estados */
  --amber: #b45309;
  --amber-ink: #92400e;
  --error: #b91c1c;
  --ok: #15803d;
  /* Solo para la animación HELLO */
  --forest: #164f42;
  --cream: #f5efc4;

  --font-title: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 144px);
  --radius: 6px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 5.75rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.25; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--teal-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--sky); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
}
.measure { max-width: 62ch; }

.label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

/* Marca para lo que falta confirmar: visible a propósito para que no se publique sin revisar */
.pendiente {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--amber-ink);
  background: #fff7ed;
  border: 1px dashed var(--amber);
  border-radius: 4px;
  padding: 0.15em 0.5em;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #0b3a55; color: #fff; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #fff3c4; color: var(--ink); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-weight: 500;
  color: inherit;
  text-decoration: underline;
}

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.96);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand:hover { color: inherit; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: inherit;
  text-decoration: none;
  font-size: 0.975rem;
}
.site-nav a:not(.btn):hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; }
.site-nav .btn { margin-left: 8px; min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: 500 0.95rem var(--font-body);
  cursor: pointer;
}

/* Encabezado sobre el video del inicio */
.site-header--overlay {
  position: fixed;
  left: 0; right: 0;
  background: rgba(0, 39, 61, 0.22);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: transparent;
  color: #fff;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.site-header--overlay .site-nav .btn--solid { background: #fff; color: var(--ink); }
.site-header--overlay.is-scrolled,
.site-header--overlay.is-open {
  background: rgba(250, 250, 250, 0.97);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.site-header--overlay.is-scrolled .site-nav .btn--solid,
.site-header--overlay.is-open .site-nav .btn--solid { background: var(--ink); color: #fff; }
.site-header--overlay:not(.is-scrolled):not(.is-open) :focus-visible { outline-color: var(--sky); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav a:not(.btn) { padding: 0; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .js .site-nav .btn { margin: 16px 0 0; width: 100%; }
  .site-header--overlay.is-open .site-nav .btn--solid { background: var(--ink); color: #fff; }
  .site-nav ul { flex-wrap: wrap; }
}

/* ---------- Hero con video ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}
/* Sin degradado sobre el video. Para que el texto blanco se lea, el video se
   oscurece parejo (filtro de brillo, no degradado) y el texto lleva sombra suave.
   Para dejar el video sin ningún ajuste, borra la línea de filter. */
.hero__media video { filter: brightness(0.74); }
.hero h1, .hero__sub { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 0 28px rgba(0, 0, 0, 0.28); }
.hero__content { padding-top: 140px; padding-bottom: clamp(56px, 10vh, 120px); width: 100%; }
.hero h1 { max-width: 18ch; }
.hero h1 .tenue { display: block; }
.hero h1 .tenue { color: rgba(255, 255, 255, 0.86); }
.hero__sub {
  margin-top: 28px;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}
.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(0, 39, 61, 0.35);
  color: #fff;
  font: 500 0.875rem var(--font-body);
  cursor: pointer;
}
.video-toggle:hover { border-color: #fff; }
.no-js .video-toggle, .video-toggle[hidden] { display: none; }

@media (max-width: 640px) {
  .hero__content { padding-bottom: 96px; }
  .video-toggle { bottom: 24px; }
}

/* ---------- Bloques de contenido ---------- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split h2 + p, .split h2 + .lead, .stack > * + * { margin-top: 24px; }

.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.figure--landscape img { aspect-ratio: 4 / 3; }
.figure--wide img { aspect-ratio: 21 / 9; }
.figure--portrait img { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .figure--wide img { aspect-ratio: 4 / 3; } }

/* Síntomas del problema */
.symptoms { list-style: none; margin: 0; padding: 0; }
.symptoms li {
  font-family: var(--font-title);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}
.symptoms li:last-child { border-bottom: 1px solid var(--line-strong); }
.statement {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--teal);
  color: var(--ink-2);
}

/* Secciones oscuras */
.on-dark { background: var(--ink); color: #fff; }
.on-dark .lead, .on-dark p { color: rgba(255, 255, 255, 0.82); }
.on-dark a { color: var(--sky); }
.on-dark a:hover { color: #fff; }
.on-dark .label { color: var(--sky); }
.section.on-dark + .section { border-top: 0; }

/* Flujo de etapas */
.flow {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 0 40px;
  counter-reset: none;
}
@media (min-width: 760px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li {
  padding: 28px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.flow__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--sky);
  margin-bottom: 14px;
}
.flow h3 { color: #fff; }
.flow p { margin-top: 10px; font-size: 0.975rem; }

/* Casos de uso */
.cases {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  gap: 0 48px;
}
@media (min-width: 760px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.cases li { padding: 28px 0 36px; border-top: 1px solid var(--line-strong); }
.cases__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--teal-ink); display: block; margin-bottom: 12px; }
.cases p { margin-top: 10px; color: var(--ink-2); }

/* Preguntas frecuentes */
.faq { margin-top: 48px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--teal-ink);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 24px; max-width: 68ch; color: var(--ink-2); }

/* Banda de llamada a la acción */
.cta-band { background: var(--sun); color: var(--ink); }
.cta-band .section { padding-block: clamp(64px, 8vw, 112px); }
.cta-band p { color: var(--ink); max-width: 52ch; margin-top: 18px; }
.section + .cta-band, .cta-band { border-top: 0; }

/* Tarjetas */
.cards { display: grid; gap: 24px; }
@media (min-width: 900px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 44px);
}
.card h2 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.card .label { display: block; margin-bottom: 16px; }
.card > * + * { margin-top: 18px; }
.card ul { padding-left: 1.1em; margin-bottom: 0; color: var(--ink-2); }
.card li + li { margin-top: 6px; }

/* Página interior */
.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.75rem); max-width: 18ch; }
.page-hero .lead { margin-top: 28px; }

/* Etapas del piloto */
.stages { margin-top: 56px; }
.stage {
  display: grid;
  gap: 16px 48px;
  padding-block: 48px;
  border-top: 1px solid var(--line-strong);
}
@media (min-width: 900px) {
  .stage { grid-template-columns: 220px 1fr; }
  .stage__body { grid-column: 2; }
}
.stage__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--teal-ink); padding-top: 6px; }
.stage__body > * + * { margin-top: 18px; }
.stage__body p, .stage__body li { color: var(--ink-2); }
.stage__body ul { padding-left: 1.1em; margin-bottom: 0; }
.stage__body li + li { margin-top: 6px; }
.stage__sub { margin-top: 40px !important; padding-top: 28px; border-top: 1px dashed var(--line-strong); }
.full-bleed { margin-top: 32px; }

/* Etapa 0 automática: fuentes que convergen en una sola búsqueda */
.converge {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.converge__sources {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
}
.converge__sources li {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 18px;
  padding: 8px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.converge__lines { width: 100%; height: 110px; margin-top: 4px; overflow: visible; }
.converge__lines path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  vector-effect: non-scaling-stroke;
  animation: flow-dash 1.6s linear infinite;
}
@keyframes flow-dash { to { stroke-dashoffset: -18; } }
.converge__spark { display: flex; justify-content: center; margin-top: -4px; }
.converge__spark svg { width: 28px; height: 28px; }
.converge__bar {
  margin: 14px auto 0;
  max-width: 560px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.975rem;
}
.converge__bar .label { margin-left: auto; font-size: 0.75rem; }
.converge__caret {
  width: 2px;
  height: 1.2em;
  background: var(--teal);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 560px) {
  .converge__sources li { font-size: 0.75rem; padding: 6px 10px; }
  .converge__bar .label { display: none; }
}

/* Etapa 2: video con panel de captura (referencia de interfaz del PDF) */
.capture {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  display: grid;
}
.capture video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  grid-area: 1 / 1;
}
.capture__panel {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #fff;
  background: rgba(0, 39, 61, 0.86);
  padding: 20px 22px;
}
.capture__panel dl { margin: 14px 0 0; }
.capture__panel .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.capture__panel dt { color: rgba(255, 255, 255, 0.78); }
.capture__panel dd { margin: 0; color: var(--sky); }
.capture__head { display: flex; justify-content: space-between; color: rgba(255, 255, 255, 0.78); }
.capture__foot { margin-top: 12px; color: rgba(255, 255, 255, 0.78); }
.capture .video-toggle { bottom: 16px; right: 16px; }
@media (min-width: 900px) {
  .capture__panel {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: end;
    width: min(360px, 42%);
    margin: 20px;
    border-radius: var(--radius);
  }
}
.caption { margin-top: 12px; font-size: 0.9rem; color: var(--ink-2); }

/* Etapa 3 en sección oscura */
.science { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .science { grid-template-columns: 0.8fr 1.2fr; } }
.science img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.science ul { padding-left: 1.1em; color: rgba(255, 255, 255, 0.82); }
.science li + li { margin-top: 6px; }
.science .stage__num { color: var(--sky); }

/* Qué medimos */
.metrics { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(3, 1fr); } }
.metrics li {
  padding: 28px 0;
  border-top: 2px solid var(--ink);
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Transferencia */
.transfer { list-style: none; margin: 40px 0 0; padding: 0; }
.transfer li {
  display: grid;
  gap: 4px 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
@media (min-width: 760px) { .transfer li { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.transfer .arrow { color: var(--teal-ink); font-family: var(--font-mono); font-size: 1rem; }
.transfer li:last-child { border-bottom: 1px solid var(--line-strong); }
.note { margin-top: 24px; color: var(--ink-2); }

/* Trayectoria */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; }
.timeline li { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.timeline li:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline strong { display: block; font-family: var(--font-title); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.timeline span { color: var(--ink-2); }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 20px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label, .field .field__label { font-weight: 500; font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: var(--ink-2); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: 400 1rem var(--font-body);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
textarea.input { min-height: 132px; resize: vertical; }
.input:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.95rem; font-weight: 500; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.options { display: grid; gap: 24px; }
@media (min-width: 900px) { .options { grid-template-columns: 1fr 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); padding-block: 64px 40px; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; font-size: 1.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer__heading { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); margin: 0 0 8px; font-weight: 500; }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; font-size: 0.875rem; }
.footer__legal p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Página simple (gracias, 404) */
.simple { min-height: 70vh; display: flex; align-items: center; }
.simple h1 { font-size: clamp(2.3rem, 5vw, 4.25rem); max-width: 16ch; }

/* Aviso de privacidad */
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin-top: 48px; }
.legal p, .legal li { color: var(--ink-2); max-width: 68ch; }
.legal h2 + p, .legal h2 + ul { margin-top: 14px; }
.stages--cont { margin-top: 0; }
.stage--cont { border-top: 0; padding-top: 8px; }
h1 + .lead, h2 + .lead { margin-top: 20px; }
.cta-band .btn--ghost { border-color: var(--ink); }
.capture .capture__foot { color: rgba(255, 255, 255, 0.78); margin-top: 12px; }
.section--snug { padding-top: 48px; }
@media (max-width: 899px) {
  .capture .video-toggle { top: 12px; right: 12px; bottom: auto; }
}
.split--top { align-items: start; }

.site-header--overlay:not(.is-scrolled):not(.is-open) .brand,
.site-header--overlay:not(.is-scrolled):not(.is-open) .site-nav a:not(.btn) { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.vband .video-toggle { top: 16px; bottom: auto; right: 16px; }
@media (min-width: 900px) { .capture__panel { width: min(440px, 48%); } }

/* ---------- Logo ---------- */
.brand img { display: block; height: 34px; width: auto; }
.brand__light { display: none !important; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand__dark { display: none !important; }
.site-header--overlay:not(.is-scrolled):not(.is-open) .brand__light { display: block !important; }
.site-footer .brand img { height: 40px; }

/* El botón de pausa del hero va arriba a la derecha (abajo quedan la burbuja y el aviso) */
.hero .video-toggle { top: 88px; bottom: auto; }

/* ---------- Burbuja de WhatsApp ---------- */
.wa-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  border: 1px solid rgba(0, 39, 61, 0.18);
  font: 600 1rem var(--font-body);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 39, 61, 0.18);
}
.wa-bubble:hover { background: #fff3c4; color: var(--ink); }
.wa-bubble svg { width: 26px; height: 26px; flex: none; }
@media (max-width: 600px) {
  .wa-bubble { padding: 0; width: 56px; justify-content: center; }
  .wa-bubble__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Aviso de cookies ---------- */
/* Va abajo a la derecha, junto a la burbuja, para no tapar los botones del hero */
.cookie-notice {
  position: fixed;
  right: 176px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 470px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: var(--ink);
  color: var(--sky);
  border: 1px solid rgba(194, 220, 255, 0.25);
  font-size: 0.875rem;
  line-height: 1.45;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice a { color: #ffffff; }
.cookie-notice__actions { flex: none; }
.cookie-notice button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--sun);
  color: var(--ink);
  font: 600 0.95rem var(--font-body);
  cursor: pointer;
}
@media (max-width: 600px) {
  .cookie-notice { left: 12px; right: 84px; max-width: none; padding: 10px 10px 10px 14px; font-size: 0.8rem; }
  .hero__content { padding-bottom: 124px; }
}

/* Avisos legales */
.legal ul, .legal ol { padding-left: 1.25em; }
.legal li + li { margin-top: 8px; }
.legal p + ul, .legal p + ol { margin-top: 12px; }
.legal-resumen { margin-top: 8px; padding: 24px 28px; border: 1px solid rgba(0, 39, 61, 0.12); border-radius: 16px; background: #fff; max-width: 72ch; }
.legal .legal-resumen h2 { margin-top: 0; }
.form-aviso { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }
.footer__note { margin-top: 12px; font-size: 0.8125rem; max-width: 34ch; }

/* Sección «un solo proceso» */
.h2--texto { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; }
.sin { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sin li { background: var(--sun, #ffeb99); color: #00273d; border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.split .sin + p { margin-top: 20px; }
.medimos { margin-top: 24px; font-weight: 600; color: #00273d; }
.medidas { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.medidas li { position: relative; padding-left: 30px; }
.medidas li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: #0097b2; box-shadow: inset 0 0 0 5px #c2dcff; }

/* Servicios: el demo pegado al título de la página (~1 cm) */
.page-hero--tight { padding-bottom: 38px; }
.page-hero--tight + .section { padding-top: 0; border-top: 0; }
