/* ==========================================================================
   Aim Growth — estilos · dirección "cuaderno de trabajo"
   Papel frío, tinta casi negra y el oro del logo como único acento.
   Mobile-first. Breakpoints: 640px · 900px · 1100px

   Regla de forma (única para toda la web):
   - Todo lo que es "papel" (fichas, formulario, banner) lleva radio 2px.
   - Los botones son rectángulos con sombra dura desplazada que se hunden al pulsar.
   - Lo único redondo es lo que dibuja la mira del logo (círculos de fase).
   ========================================================================== */

/* >>> BASE COMPARTIDA
   Este bloque está copiado tal cual en el <style> de index.html (CSS crítico).
   Si cambias algo aquí, cámbialo también allí. */
:root {
  /* Identidad v1.4: neutros teñidos de azul marino (el tono entre cian y azul) para que el bitono se lea como una familia. Un solo tema, oscuro. */
  --azul: #275BF5;       /* segundo color de marca (antes violeta #8B27F5) */
  --cian: #27E0F5;
  --puente: #00A7F4;     /* mezcla óptica de los dos; solo dentro de tramas y shaders, nunca plano */

  /* Neutros */
  --papel: #04090E;
  --papel-2: #081017;
  --hoja: #121E28;
  --tinta: #E8EEF3;
  --lapiz: #A0B0BF;
  --linea: rgba(232, 238, 243, .12);
  --linea-2: rgba(232, 238, 243, .26);
  --error: #F09A89;

  /* Roles: el cian es la señal (escribe y resalta); el azul, el sistema (acciones y bloques) */
  --acento: var(--cian);
  --acento-sutil: rgba(39, 224, 245, .10);
  --acento-borde: rgba(65, 157, 255, .55);
  --resalte: var(--cian);
  --resalte-sutil: rgba(39, 224, 245, .12);
  --marcador: rgba(39, 224, 245, .38);
  --azul-accion: #5E8CF9;   /* azul de los botones: más luminoso para destacar sobre el fondo */
  --accion: var(--azul-accion);
  --sobre-accion: var(--papel);   /* texto oscuro sobre el azul de acción: 6,3:1 */
  --sobre-resalte: var(--papel);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Archivo", system-ui, sans-serif;   /* antes IBM Plex Mono: ahora todo el texto va en Archivo Expanded */

  --gutter: 1.25rem;
  --max: 1200px;
  --header-h: 68px;
  --r: 2px;
  --sombra-dura: 3px 3px 0 var(--cian);   /* registro desplazado de risografía: azul sobre cian */
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 900px) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); color-scheme: dark; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--f-body); font-stretch: 125%; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 400; background: var(--tinta); color: var(--papel); padding: .6rem 1rem; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color .25s, border-color .25s; }
.site-header.is-scrolled { background: var(--papel); border-bottom-color: var(--linea); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; letter-spacing: .08em; font-size: 1rem; }
.brand svg { width: 30px; height: auto; color: var(--cian); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.35rem; border-radius: var(--r); font: 600 expanded 1rem/1.2 var(--f-body); text-decoration: none; border: 1.5px solid var(--tinta); cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .2s, color .2s; }
.btn--primary { background: var(--accion); color: var(--sobre-accion); border-color: var(--accion); box-shadow: var(--sombra-dura); }
.btn--ghost { background: transparent; color: var(--acento); border-color: var(--acento); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; padding: .4rem .7rem .4rem .55rem; border: 1px solid var(--acento-borde); border-radius: var(--r); background: var(--acento-sutil); font-family: var(--f-mono); font-size: .74rem; font-weight: 500; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--acento); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; background: var(--azul); }

.hero { position: relative; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
.hero__copy { position: relative; z-index: 1; }
.hero h1 { font-family: var(--f-display); font-stretch: 125%; font-size: clamp(2rem, 8.6vw, 3.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -.022em; margin: 0; max-width: 19ch; font-variation-settings: "opsz" 96; }
.hero h1 em { position: relative; font-style: normal; font-weight: 700; white-space: nowrap; }
@media (max-width: 479px) {
  .hero h1 em { white-space: normal; text-decoration: underline wavy var(--resalte); text-decoration-thickness: 2px; text-underline-offset: .18em; }
  .hero__underline { display: none; }
}
.hero__sub { color: var(--lapiz); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 50ch; margin: 1.6rem 0 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero__demo { position: relative; z-index: 0; width: 100%; max-width: 26rem; margin: 0; }
@media (min-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.4rem, calc(4.3vw - 6px), 3rem); }   /* «Ninguno sin respuesta.» no se parte: así cabe en su columna sin montarse en el chat */
  .hero__demo { justify-self: end; }
}
/* <<< BASE COMPARTIDA */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; overflow-wrap: break-word; }   /* el email de contacto no cabe en 320px */
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h2 {
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 72;
  margin: 0;
}
h3 {
  font-family: var(--f-display); font-stretch: 125%;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.012em;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }

::selection { background: var(--resalte); color: var(--sobre-resalte); }

:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 3px;
  border-radius: var(--r);
}
.btn:focus-visible { outline-offset: 5px; }

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

.narrow { max-width: 880px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Nota al margen: sustituye a las etiquetas en mayúsculas en la mayoría de secciones */
.note {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  padding: .4rem .7rem .4rem .55rem;
  border: 1px solid var(--acento-borde);
  border-radius: var(--r);
  background: var(--acento-sutil);
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acento);
}
.note::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: var(--azul);
}

.link-gold {
  color: var(--tinta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--acento);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s, color .2s;
}
.link-gold:hover { color: var(--acento); }

/* ---------- Botones ---------- */
@media (hover: hover) {
  .btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cian); }
  .btn--ghost:hover { background: var(--acento-sutil); }
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cian); }
.btn--ghost:active { box-shadow: none; }
.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .93rem; }
.btn--block { width: 100%; }
/* En pantallas de 320–360px el texto largo de un botón no cabe en una línea */
@media (max-width: 379px) { .btn { white-space: normal; text-wrap: balance; max-width: 100%; text-align: center; } }

/* ---------- Trazos "a mano" ----------
   Cada trazo usa pathLength="1" en su símbolo: se dibuja pasando dashoffset de 1 a 0. */
.trazo {
  position: absolute;
  pointer-events: none;
  fill: none;
  stroke: var(--acento);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.js .trazo--anim { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease) .25s; }
.js .is-visible .trazo--anim,
.js .trazo--anim.is-visible { stroke-dashoffset: 0; }

/* ---------- Navegación ---------- */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: transparent;
  border: 1.5px solid var(--tinta);
  border-radius: var(--r);
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--tinta);
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before,
.nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; width: 14px; }
.nav__toggle-bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { width: 18px; transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav__menu {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: none;
  flex-direction: column;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 3rem;
  background: var(--papel);
  border-top: 1px solid var(--linea);
}
body.menu-open { overflow: hidden; }
.nav__menu.is-open { display: flex; }
.nav__links { display: flex; flex-direction: column; counter-reset: menu; }
.nav__links a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .7rem 0;
  font-family: var(--f-display); font-stretch: 125%;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 1px solid var(--linea);
}
.nav__links a::before {
  counter-increment: menu;
  content: counter(menu);
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 400;
  color: var(--acento);
}
.nav__menu .btn { align-self: flex-start; }

html:not(.js) .nav__toggle { display: none; }

@media (min-width: 1200px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    height: auto;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }
  .nav__links { flex-direction: row; gap: 1.6rem; }
  .nav__links a {
    position: relative;
    display: block;
    padding: .35rem 0;
    font-family: var(--f-body);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--lapiz);
    border: 0;
    transition: color .2s;
  }
  .nav__links a::before { content: none; }
  .nav__links a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--acento);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .nav__links a:hover { color: var(--tinta); }
  .nav__links a:hover::after { transform: scaleX(1); }
}

/* ---------- Hero ---------- */
.hero__underline {
  stroke: var(--resalte);
  left: -2%;
  bottom: -.2em;
  width: 104%;
  height: .32em;
}
/* Demostración del asistente en el hero */
.hero__demo-label {
  margin: 0 0 .7rem;
  color: var(--acento);
  font-family: var(--f-mono);
  font-size: .85rem;
  font-weight: 500;
}
.hero__demo .chat { box-shadow: var(--sombra-dura); }
.chat__hilo { display: grid; gap: .55rem; align-content: start; }
/* El hilo tiene alto fijo y baja solo a medida que llegan mensajes (js/main.js: initChatDemo) */
.js .hero__demo .chat__hilo {
  height: clamp(19rem, 52vh, 25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--linea-2) transparent;
  padding-right: .3rem;
}
.js .hero__demo .chat__msg.is-pendiente { display: none; }
.chat__escribiendo {
  justify-self: start;
  display: flex;
  gap: .3rem;
  margin: 0;
  padding: .75rem .85rem;
  background: var(--papel);
  border: 1px solid var(--linea);
  border-radius: 8px;
}
.chat__escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: var(--lapiz); opacity: .5; }
@keyframes punto { 0%, 100% { opacity: .35; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }

/* Quién atiende el diagnóstico: autoridad con nombre y cara */
.hero__founder {
  display: flex;
  align-items: center;
  gap: .85rem;
  max-width: 46ch;
  margin: 1.9rem 0 0;
  color: var(--lapiz);
  font-size: .95rem;
  line-height: 1.45;
}
.hero__founder strong { color: var(--tinta); font-weight: 600; }
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px; height: 56px;
  border-radius: var(--r);
  background: var(--azul);
  color: #FFFFFF;
  box-shadow: var(--sombra-dura);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  object-fit: cover;
}

/* Entrada del hero: se ejecuta al cargar, sin esperar al scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy > * { animation: subir .8s var(--ease) both; }
  .js .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .js .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .js .hero__copy > h1 { animation-duration: .55s; }
  .js .hero__underline { animation: trazar 1s var(--ease) .6s both; stroke-dasharray: 1; }
  .js .hero__demo .chat__msg.is-nuevo,
  .js .hero__demo .chat__escribiendo { animation: subir .35s var(--ease) both; }
  .chat__escribiendo i { animation: punto 1s ease-in-out infinite; }
  .chat__escribiendo i:nth-child(2) { animation-delay: .15s; }
  .chat__escribiendo i:nth-child(3) { animation-delay: .3s; }
}
@keyframes subir { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes trazar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* ---------- Ficha de datos (bajo el hero) ---------- */
.ficha { background: var(--azul); color: #FFFFFF; }
.ficha .trust li { border-color: rgba(255, 255, 255, .22); }
.ficha .trust span { color: rgba(255, 255, 255, .9); }
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.trust li {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.15rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--linea);
}
.trust li:nth-child(odd) { border-right: 1px solid var(--linea); }
.trust li:nth-child(even) { padding-left: 1rem; }
.trust li:nth-last-child(-n+2) { border-bottom: 0; }
.trust strong {
  font-family: var(--f-mono);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.trust span { color: var(--lapiz); font-size: .9rem; line-height: 1.4; }

@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust li,
  .trust li:nth-child(even) { padding: 1.5rem 1.5rem 1.6rem; border-bottom: 0; border-right: 1px solid var(--linea); }
  .trust li:first-child { padding-left: 0; }
  .trust li:last-child { border-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 9rem); }
.section--alt { background: var(--papel-2); }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__lead { color: var(--lapiz); margin-top: 1.4rem; font-size: 1.1rem; max-width: 56ch; }

/* ---------- El problema ---------- */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .split > .section__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.problems { counter-reset: problema; }
.problems li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--linea);
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.problems li:first-child { padding-top: .25rem; }
.problems__n {
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--acento);
  font-variant-numeric: tabular-nums;
}
.section__close {
  position: relative;
  margin-top: clamp(2.25rem, 5vw, 3rem);
  padding-left: 3.5rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.45;
  color: var(--lapiz);
  max-width: 44ch;
}
.section__close strong { color: var(--tinta); }
.section__close > .trazo {
  left: 0; top: .1em;
  width: 2.6rem; height: 1.6rem;
  stroke-width: 2.5;
}

/* ---------- Cómo funciona: la ruta ---------- */
.route-wrap { position: relative; }
.route { position: relative; display: grid; gap: 2.25rem; padding-left: 3.75rem; }
.route::before {
  /* línea vertical en móvil */
  content: "";
  position: absolute;
  left: 21px; top: 10px; bottom: 10px;
  border-left: 2px dashed var(--acento);
  opacity: .7;
}
.route li { position: relative; }
.route__n {
  position: absolute;
  left: -3.75rem; top: -6px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--papel-2);
  border: 1.5px solid var(--tinta);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 1rem;
}
.route li:first-child .route__n { background: var(--resalte); color: var(--sobre-resalte); }
.route h3 { margin-bottom: .35rem; }
.route p { color: var(--lapiz); font-size: .98rem; }
.route__line { display: none; }

@media (min-width: 1000px) {
  .route {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding-left: 0;
    padding-top: 4.75rem;
  }
  .route::before { content: none; }
  .route__line {
    display: block;
    position: absolute;
    left: 0; right: 0; top: 2px;
    height: 40px;
  }
  .route__line .trazo { position: static; width: 100%; height: 100%; stroke-width: 2.5; }
  .route__line .trazo--anim { transition-duration: 1.8s; }
  .route__n { left: 0; top: -4.75rem; }
  .route h3 { font-size: 1.1rem; }
  .route p { font-size: .94rem; }
}

.quote {
  margin: clamp(4rem, 9vw, 7rem) 0 0;
  padding: 0;
}
.quote p {
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -.028em;
  line-height: 1.02;
  font-variation-settings: "opsz" 96;
  max-width: 14ch;
}
.quote p::before { content: "“"; color: var(--acento); }
.quote p::after { content: "”"; color: var(--acento); }
.circled { position: relative; white-space: nowrap; }
.circled > .trazo {
  left: -14%; top: -16%;
  width: 128%; height: 134%;
  stroke-width: 3;
  stroke: var(--resalte);
}

/* ---------- Servicios: fichas de archivo ---------- */
.cards { display: grid; gap: 1rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.75rem 1.5rem;
  background-color: var(--hoja);
  border: 1px solid var(--linea-2);
  border-radius: var(--r);
  box-shadow: 0 1px 0 var(--linea), 0 14px 30px -22px rgba(18, 19, 24, .45);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-3px) rotate(-.25deg); box-shadow: 0 1px 0 var(--linea), 0 22px 36px -24px rgba(18, 19, 24, .55); }
}
.card__icon {
  width: 44px; height: 44px;
  margin-bottom: .3rem;
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.3rem; }
.card > p { color: var(--lapiz); }
.card ul { display: grid; gap: .5rem; margin-top: .4rem; }
.card li {
  position: relative;
  padding-left: 1.25rem;
  font-size: .96rem;
  color: var(--lapiz);
  line-height: 1.5;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: .7rem; height: 1.5px;
  background: var(--acento);
  transform: rotate(-8deg);
}
.card--plain { background-color: var(--papel-2); box-shadow: none; }
.card--ink { background-color: var(--cian); border-color: var(--cian); color: var(--papel); }
.card--ink > p,
.card--ink li { color: color-mix(in srgb, var(--papel) 80%, var(--cian)); }
.card--ink .card__icon { stroke: var(--papel); }
.card--ink li::before { background: var(--papel); }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .cards { grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
  .card:nth-child(1) { grid-column: span 7; }
  .card:nth-child(2) { grid-column: span 5; }
  .card:nth-child(3),
  .card:nth-child(4) { grid-column: span 4; }
  .card:nth-child(5) { grid-column: span 4; }
  .card:nth-child(1) h3 { font-size: 1.7rem; max-width: 20ch; }
}

/* ---------- Lo que no hacemos: lista tachada ---------- */
.discard { display: grid; }
.discard li {
  padding: .9rem 0;
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(1.2rem, 3.3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--lapiz);
}
.tachado { position: relative; display: inline; }
.tachado > .trazo {
  left: -2%; top: 50%;
  width: 104%; height: .4em;
  transform: translateY(-40%);
  stroke: var(--tinta);
  stroke-width: 3;
}
.js .discard .trazo--anim { transition-duration: .6s; transition-delay: .35s; }
.discard + .section__close { padding-left: 0; margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 50ch; }
.marcador {
  background-image: linear-gradient(transparent 58%, var(--marcador) 58%, var(--marcador) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js .reveal .marcador { background-size: 0% 100%; transition: background-size .9s var(--ease) .35s; }
.js .reveal.is-visible .marcador { background-size: 100% 100%; }

/* ---------- Modelos: hoja comparativa ---------- */
.plans { border-top: 1.5px solid var(--tinta); }
.plan {
  position: relative;
  display: grid;
  gap: .6rem;
  padding: 2rem 0 2.1rem;
  border-bottom: 1px solid var(--linea-2);
}
.plan h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.025em; }
.plan__for { color: var(--lapiz); max-width: 36ch; }
.plan__price {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: .6rem 0 .4rem;
  font-family: var(--f-mono);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.plan__price span {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--lapiz);
}
.plan ul { display: grid; gap: .45rem; }
.plan li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .98rem;
  color: var(--lapiz);
}
.plan li::before {
  content: "+";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--f-mono);
  color: var(--acento);
}
.plan--featured {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  background: var(--resalte-sutil);
  border-bottom-color: var(--resalte);
}
.plan--featured h3 { display: inline; }
.plan__tag {
  justify-self: start;
  padding: .3rem .6rem;
  border: 1.5px solid var(--acento);
  border-radius: var(--r);
  color: var(--acento);
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.plan__extra {
  margin: 0 0 .2rem;
  color: var(--lapiz);
  font-family: var(--f-mono);
  font-size: .82rem;
  line-height: 1.5;
}
.sin-compromiso {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  max-width: 62ch;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--acento-borde);
  border-radius: var(--r);
  background: var(--acento-sutil);
  font-size: .98rem;
}
.sin-compromiso strong { color: var(--acento); }
.sin-compromiso__mark { flex: none; width: 22px; height: 22px; margin-top: .1rem; fill: none; stroke: var(--acento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cta-final__garantia { color: var(--acento); font-weight: 600; }
.plans__note {
  margin-top: 1.75rem;
  color: var(--lapiz);
  font-family: var(--f-mono);
  font-size: .88rem;
}

@media (min-width: 900px) {
  .plan {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .8fr) minmax(0, 1.25fr);
    grid-template-areas:
      "name price list"
      "for  extra list";
    column-gap: 2.5rem;
    row-gap: .5rem;
    align-items: start;
    padding: 2.5rem 0 2.6rem;
  }
  .plan h3 { grid-area: name; }
  .plan__for { grid-area: for; }
  .plan__price { grid-area: price; margin: .35rem 0 0; }
  .plan__extra { grid-area: extra; }
  .plan ul { grid-area: list; padding-top: .45rem; }
  .plan--featured { margin-inline: -1.5rem; padding-inline: 1.5rem; }
  .plan__tag { position: absolute; top: -.85rem; right: 1.5rem; background: var(--papel); }
}

/* ---------- Conversación de prueba del asistente (en el hero) ---------- */
.chat-demo { margin: 0; max-width: 26rem; }
.chat { display: grid; gap: .55rem; padding: 1rem; background: var(--hoja); border: 1px solid var(--linea); border-radius: 10px; }
.chat__cab { display: grid; gap: .1rem; margin: -.25rem 0 .35rem; padding-bottom: .7rem; border-bottom: 1px solid var(--linea); font-size: .95rem; }
.chat__cab span { color: var(--lapiz); font-size: .8rem; }
.chat__msg { position: relative; max-width: 85%; margin: 0; padding: .55rem .75rem 1.25rem; border-radius: 8px; font-size: .9rem; line-height: 1.45; }
.chat__msg p { margin: 0 0 .45rem; }
.chat__msg p:last-of-type { margin-bottom: 0; }
.chat__msg time { position: absolute; right: .6rem; bottom: .3rem; color: var(--lapiz); font-size: .68rem; }
.chat__msg--yo { justify-self: end; background: var(--acento-sutil); border: 1px solid var(--acento-borde); }
.chat__msg--bot { justify-self: start; background: var(--papel); border: 1px solid var(--linea); }
.chat__botones { display: flex; gap: .4rem; margin-top: .55rem; }
.chat__botones span { flex: 1; padding: .35rem .5rem; border: 1px solid var(--acento); border-radius: 6px; color: var(--acento); text-align: center; font-size: .82rem; }
.chat-demo figcaption { margin-top: .75rem; color: var(--lapiz); font-size: .82rem; }

/* ---------- Para quién: hoja partida ---------- */
.fit { display: grid; gap: 3rem; }
.fit__col h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -.02em;
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1.5px solid var(--tinta);
}
.fit__col ul { display: grid; gap: 1rem; }
.fit__col li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: .75rem;
  align-items: start;
  color: var(--lapiz);
}
.fit__col--yes li { color: var(--tinta); }
.fit__mark {
  width: 1.6rem; height: 1.6rem;
  margin-top: -.05em;
  fill: none;
  stroke: var(--acento);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fit__col--no .fit__mark { stroke: var(--lapiz); stroke-width: 2; }
.js .fit__col .fit__mark { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s var(--ease); }
.js .fit__col.is-visible .fit__mark { stroke-dashoffset: 0; }
.fit__col li:nth-child(2) .fit__mark { transition-delay: .12s; }
.fit__col li:nth-child(3) .fit__mark { transition-delay: .24s; }
.fit__col li:nth-child(4) .fit__mark { transition-delay: .36s; }
.fit__col li:nth-child(5) .fit__mark { transition-delay: .48s; }

@media (min-width: 900px) {
  .fit { grid-template-columns: 1fr 1fr; gap: 0; }
  .fit__col--yes { padding-right: 3rem; }
  .fit__col--no { padding-left: 3rem; border-left: 1px solid var(--linea-2); }
}

/* ---------- Cómo empezamos ---------- */
.steps { display: grid; gap: 2.75rem; }
.steps li { position: relative; }
.steps__n {
  display: block;
  margin-bottom: .75rem;
  font-family: var(--f-mono);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--tinta);
}
.steps li:first-child .steps__n { color: var(--resalte); -webkit-text-stroke-color: var(--tinta); }
.steps h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.steps small { color: var(--lapiz); font-family: var(--f-mono); font-weight: 400; font-size: .85rem; }
.steps p { color: var(--lapiz); max-width: 34ch; }
.steps__arrow { display: none; }
.steps__cta { margin-top: clamp(3rem, 6vw, 4.5rem); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps__arrow {
    display: block;
    top: 1.2rem; right: -1rem;
    width: 5.5rem; height: 2.75rem;
    stroke-width: 2.5;
  }
}

/* ---------- FAQ ---------- */
.faq-layout { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .faq-layout > .section__head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.faq { border-top: 1.5px solid var(--tinta); }
.faq details { border-bottom: 1px solid var(--linea-2); }
.faq summary {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -.012em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem; top: 50%;
  font-family: var(--f-mono);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--acento);
  transform: translateY(-50%);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
@media (hover: hover) { .faq summary:hover { color: var(--acento); } }
.faq__a {
  padding: 0 2.5rem 1.6rem 1.1rem;
  margin-left: .1rem;
  color: var(--lapiz);
}
.faq details[open] .faq__a { animation: faq-in .35s var(--ease); }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Diagnóstico + formulario ---------- */
.cta-final { position: relative; border-top: 1.5px solid var(--tinta); }
.cta-final__grid { display: grid; gap: 3rem; align-items: start; }
.cta-final h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.cta-final__copy p:not(.eyebrow) { color: var(--lapiz); margin-top: 1.4rem; max-width: 44ch; }
.cta-final__alt { font-size: 1rem; }

.form {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--hoja);
  border: 1px solid var(--linea-2);
  border-radius: var(--r);
  box-shadow: 0 30px 50px -34px rgba(18, 19, 24, .5), 0 2px 0 var(--linea);
}
.field { display: grid; gap: .35rem; }
.field label { font-size: .92rem; font-weight: 600; }
.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: .6rem 0;
  background: transparent;
  color: var(--tinta);
  border: 0;
  border-bottom: 1.5px solid var(--linea-2);
  border-radius: 0;
  font: 400 expanded 1.05rem/1.45 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 32px;
  padding-top: 0;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--linea) 31px 32px);
  background-attachment: local;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--lapiz) 85%, var(--hoja)); }
.field input:hover,
.field textarea:hover { border-bottom-color: var(--tinta); }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-radius: 0;
  border-bottom-color: var(--acento);
  box-shadow: 0 1.5px 0 var(--acento);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error { color: var(--error); font-size: .88rem; font-weight: 500; }
.field__error:empty { display: none; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: .7rem;
}
.field--check input {
  width: 20px; height: 20px;
  margin: .15rem 0 0;
  accent-color: var(--accion);
}
.field--check label { font-weight: 400; font-size: .92rem; color: var(--lapiz); }
.field--check label a { color: var(--tinta); text-decoration-color: var(--acento); text-underline-offset: 3px; }
.field--check .field__error { grid-column: 1 / -1; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__status { font-size: .95rem; }
.form__status:empty { display: none; }
.form__status.is-error {
  padding: .85rem 1rem;
  border: 1.5px solid var(--error);
  background: color-mix(in srgb, var(--error) 9%, transparent);
  color: var(--tinta);
}
.form__status.is-error a { color: var(--tinta); font-weight: 600; }
.form [type="submit"][disabled] { opacity: .7; cursor: progress; }

@media (min-width: 900px) {
  .cta-final__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5rem; }
  .cta-final__copy { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3.5rem 0 calc(2rem + 76px);
  border-top: 1.5px solid var(--tinta);
  background: var(--papel);
  overflow: hidden;
}
.footer__grid { display: grid; gap: 2.25rem; }
.brand--big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; }
.brand--big svg { width: clamp(33px, 5.25vw, 57px); }
.brand--big span {
  font-size: clamp(2.6rem, 11vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .85;
  color: var(--tinta);
}
.footer__tag { color: var(--acento); margin-top: 1rem; font-family: var(--f-mono); font-size: .9rem; }
.footer__links { display: grid; gap: .1rem; }
.footer__links a, .footer__links .linklike { display: inline-block; padding-block: .45rem; }   /* área de toque más alta en el celular */
.footer__links a,
.linklike {
  color: var(--lapiz);
  font-size: .95rem;
  text-decoration: none;
}
.footer__links a:hover,
.linklike:hover { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 4px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid var(--tinta);
  border-radius: var(--r);
  color: var(--tinta);
  transition: background-color .2s, color .2s;
}
.footer__social a:hover { background: var(--tinta); color: var(--papel); }
.footer__social svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linea);
  color: var(--lapiz);
  font-family: var(--f-mono);
  font-size: .8rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: end; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1fr auto auto; column-gap: 4rem; }
  .site-footer { padding-bottom: 2rem; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1.5px solid var(--accion);
  border-radius: var(--r);
  background: var(--accion);
  color: var(--sobre-accion);
  box-shadow: var(--sombra-dura);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
@media (hover: hover) {
  .wa-float:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cian); }
}
.wa-float:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--cian); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Banner de cookies: nota ---------- */
.cookie {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 1rem;
  max-width: 540px;
  padding: 1.25rem;
  background: var(--hoja);
  border: 1.5px solid var(--tinta);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 rgba(18, 19, 24, .18);
  font-size: .93rem;
  color: var(--lapiz);
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--tinta); text-decoration-color: var(--acento); text-underline-offset: 3px; }
.cookie__btns { display: flex; gap: .75rem; justify-content: flex-end; }
.cookie__btns .btn { flex: 1; }

@media (min-width: 640px) {
  .cookie { left: 1.5rem; bottom: 1.5rem; right: auto; }
  .cookie__btns .btn { flex: none; }
}

/* ---------- Páginas interiores (legales, gracias, 404): documento ---------- */
.page {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 11vw, 9rem);
}
.page .narrow { max-width: 760px; }
.page h1 {
  font-family: var(--f-display); font-stretch: 125%;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 0 0 1.5rem;
}
.page h2 {
  font-size: 1.4rem;
  letter-spacing: -.015em;
  margin: 3rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linea-2);
}
.page p, .page li { color: var(--lapiz); margin-bottom: 1rem; }
.page strong { color: var(--tinta); }
.page ul { list-style: none; padding-left: 0; }
.page ul li { position: relative; padding-left: 1.4rem; }
.page ul li::before { content: "+"; position: absolute; left: 0; font-family: var(--f-mono); color: var(--acento); }
.page a { color: var(--tinta); text-decoration-color: var(--acento); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.page a.btn { text-decoration: none; }
.page .btn--primary { color: var(--sobre-accion); }
.page .btn--ghost { color: var(--acento); }
.page__meta { font-family: var(--f-mono); font-size: .85rem; }
.page--center .hero__ctas { margin-top: 2.25rem; }
.page--center p { max-width: 52ch; }
.page--center h1 { max-width: 16ch; }
.header-simple { border-bottom: 1px solid var(--linea); }
.header-simple .nav__back { color: var(--lapiz); font-size: .95rem; text-decoration: none; }
.header-simple .nav__back:hover { color: var(--tinta); text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: 4px; }
/* En Expanded, marca y «Volver a la web» solo caben en una línea cada uno si se reducen en móvil */
@media (max-width: 479px) {
  .header-simple .brand,
  .header-simple .nav__back { font-size: .82rem; white-space: nowrap; }
}

/* ---------- Shaders (js/shaders.js) ----------
   El lienzo va detrás del contenido de su elemento. Sin WebGL no se crea y queda el fondo CSS. */
.has-shader { isolation: isolate; }
.btn.has-shader,
.ficha.has-shader { position: relative; }
.shader { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }


/* ---------- Animaciones de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .trazo--anim,
  .js .fit__col .fit__mark { stroke-dashoffset: 0; }
  .js .reveal .marcador { background-size: 100% 100%; }
}

/* Pie de páginas interiores: el botón de cookies se ve como sus enlaces vecinos */
.footer__bottom .linklike { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom a { text-decoration-color: var(--acento); text-underline-offset: 3px; }

/* Antes eran atributos style="…", que la Content-Security-Policy no permite: mismo aspecto */
.sprites { position: absolute; }

/* Anti-bots (Turnstile): fuera del flujo, sin ocupar hueco en la rejilla del formulario,
   hasta que Cloudflare pide una comprobación (turnstile.js añade .is-activo) */
.form__turnstile:not(.is-activo) { position: absolute; }

/* Aviso solo para quien navega sin JavaScript */
.form__noscript { margin: 0; font-size: .95rem; color: var(--lapiz); }
.form__noscript a { color: var(--tinta); font-weight: 600; }
