/* ==========================================================================
   Kiné à Domicile — hoja base
   --------------------------------------------------------------------------
   Migración del proyecto Lovable (TanStack + Tailwind v4 + shadcn) a HTML
   estático. La MARCA es suya y no se toca: mismo tono (210), mismos radios,
   mismo aire claro. Lo que cambia es cómo se construye y cómo rinde.

   Reglas heredadas de nuestro estándar, y por qué:
   · Solo se animan `transform` y `opacity`. Cualquier otra propiedad la
     repinta el hilo principal en cada fotograma.
   · Lo que está sobre el pliegue se anima con `.rise` (CSS puro). `.reveal`
     deja el elemento en opacity:0 hasta que carga el JS: si eso cae encima
     del LCP, el Speed Index se dispara.
   · Toda animación tiene su salida en prefers-reduced-motion.
   · Propiedades lógicas (margin-inline) en vez de left/right.
   ========================================================================== */

:root {
  /* --- Marca, en OKLCH. Un tono, y la luminosidad como variable. ---------
     Su paleta ya venía así y es lo mejor que tenía el proyecto: la escala se
     DERIVA en vez de elegirse a mano. Se conserva tal cual.
     ⚠️ Los contrastes de abajo están MEDIDOS en navegador, no calculados.
     Ver _dev/contraste.html: no fiarse de un comentario para un color. */
  --brand-h: 210;
  --brand-c: 0.09;

  --primary:            oklch(0.58 var(--brand-c) var(--brand-h));  /* 4,84:1 sobre blanco */
  --primary-strong:     oklch(0.46 var(--brand-c) var(--brand-h));  /* 7,54:1  texto pequeño */
  --primary-foreground: oklch(0.99 0.005 var(--brand-h));
  --primary-soft:       oklch(0.95 0.025 var(--brand-h));
  --primary-glow:       oklch(0.68 0.10 200);

  --background:  oklch(1 0 0);
  --foreground:  oklch(0.22 0.02 230);
  --surface:     oklch(0.985 0.005 var(--brand-h));
  --surface-alt: oklch(0.965 0.012 var(--brand-h));
  --muted-fg:    oklch(0.50 0.02 230);   /* el suyo */
  --border:      oklch(0.22 0.02 230 / 12%);
  --success:     oklch(0.65 0.14 155);
  --whatsapp:    oklch(0.68 0.16 145);

  --radius: 0.875rem;
  --radius-sm: 0.5rem;
  --radius-pill: 999px;

  --wrap: 1120px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);

  /* Fraunces (display) + Inter (texto) en el original, servidas desde
     fonts.googleapis.com. Se han quitado: son un tercero, bloquean el
     render y en la UE transfieren la IP del visitante a Google sin
     consentimiento — para una clínica española eso es un problema de RGPD,
     no una preferencia. Pila del sistema mientras no estén auto-alojadas.
     Sustituirlas = dejar los .woff2 en assets/fonts/ y un @font-face aquí. */
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px oklch(0.22 0.02 230 / 6%);
  --shadow-md: 0 4px 16px oklch(0.22 0.02 230 / 8%);
  --shadow-lg: 0 12px 40px oklch(0.22 0.02 230 / 10%);
}

/* ---------- reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-strong); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15;
             letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--surface); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted-fg); max-width: 62ch; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary-strong); margin: 0 0 0.5rem;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(1 0 0 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__in { display: flex; align-items: center; gap: 1.2rem;
           max-width: var(--wrap); margin-inline: auto; padding: 0.7rem var(--gap); }
.nav__brand { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
              color: var(--foreground); text-decoration: none; margin-inline-end: auto; }
.nav__links { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav__links a { color: var(--foreground); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--primary-strong); text-decoration: underline; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--primary); color: var(--primary-foreground);
  padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap;
}
.nav__cta:hover { background: var(--primary-strong); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.72rem 1.4rem; border-radius: var(--radius-pill);
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--primary-strong); }
.btn--ghost { background: transparent; color: var(--primary-strong); border-color: var(--border); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.4rem 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--section-y);
        background: linear-gradient(180deg, var(--primary-soft), var(--background)); }
.hero__grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- rejillas y tarjetas ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.card {
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--muted-fg); margin-bottom: 0.9rem; font-size: 0.95rem; }
.card__link { font-weight: 600; text-decoration: none; }
.card__link::after { content: " \2192"; }
.card__link:hover { text-decoration: underline; }
/* Toda la tarjeta clicable SIN anidar enlaces (que es HTML inválido y rompe
   la navegación por teclado): el pseudo-elemento cubre la tarjeta. */
.card--link { position: relative; }
.card--link .card__link::before { content: ""; position: absolute; inset: 0; }

.card__media { border-radius: var(--radius-sm); margin-bottom: 0.9rem; }

/* ---------- listas de beneficios ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: 0.55rem; }
.ticks li { position: relative; padding-inline-start: 1.75rem; color: var(--muted-fg); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0.55em;
  width: 0.85rem; height: 0.45rem;
  border-inline-start: 2px solid var(--primary); border-block-end: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* ---------- prosa larga de servicio ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--muted-fg); }

/* ---------- FAQ ---------- */
.faq { max-width: 72ch; display: grid; gap: 0.7rem; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--background); padding: 0 1rem;
}
.faq summary {
  cursor: pointer; padding: 0.95rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.3rem; color: var(--primary-strong); line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { color: var(--muted-fg); margin: 0 0 1rem; }

/* ---------- miga de pan ---------- */
.crumbs { font-size: 0.86rem; color: var(--muted-fg); padding-block: 1rem 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 0.4rem; opacity: 0.5; }
.crumbs a { color: var(--muted-fg); }

/* ---------- bloque de contacto / NAP ---------- */
.nap { display: grid; gap: 0.4rem; font-style: normal; color: var(--muted-fg); }
.nap strong { color: var(--foreground); }
.cta-band { background: var(--primary-soft); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); }

/* ---------- pie ---------- */
.foot { background: var(--surface-alt); border-top: 1px solid var(--border);
        padding-block: var(--section-y) 2rem; font-size: 0.92rem; }
.foot__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.foot h4 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em;
           text-transform: uppercase; color: var(--muted-fg); margin: 0 0 0.7rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot a { color: var(--foreground); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border);
               color: var(--muted-fg); display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: space-between; }

/* ==========================================================================
   Animación
   ·  .rise   = sobre el pliegue, CSS puro, sin depender de JS
   ·  .reveal = bajo el pliegue, la dispara el IntersectionObserver
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.d1 { animation-delay: 0.08s; transition-delay: 0.08s; }
.d2 { animation-delay: 0.16s; transition-delay: 0.16s; }
.d3 { animation-delay: 0.24s; transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
    /* ⚠️ EL RETARDO TAMBIEN, y esto no es cosmetico.
       `.rise` usa `animation-fill-mode: both`: durante el `animation-delay` el
       elemento se queda en el fotograma inicial, que es `opacity: 0`. Acortar
       solo la DURACION deja el H1, el texto y los botones INVISIBLES durante
       su retardo aunque el usuario haya pedido menos movimiento.
       Se vio en una captura del hero: lo unico visible era el eyebrow, el
       unico elemento de la seccion SIN clase de retardo. */
    animation-delay: 0.001ms !important;
    transition-delay: 0.001ms !important;
  }
  /* La salida NO puede limitarse a acortar la animación: `.reveal` empieza en
     opacity:0, así que si el observador no llega el contenido se queda
     invisible. Se fuerza el estado final. */
  .reveal { opacity: 1 !important; transform: none !important; }
  .card:hover, .btn:hover { transform: none; }
}

/* ==========================================================================
   Formulario de contacto
   --------------------------------------------------------------------------
   Sustituye al iframe de LeadConnector. El campo de comuna es un <select> con
   las 57 comunas reales: le dice al visitante en el acto si está cubierto, y
   evita que lleguen «Bxl», «1000» y variantes con faltas.
   ========================================================================== */
.form-wrap { max-width: 44rem; margin-inline: auto; }
.lead__row { margin-bottom: 1.1rem; }
.lead__row--2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 34rem) { .lead__row--2 { grid-template-columns: 1fr 1fr; } }
.lead label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.lead input, .lead select, .lead textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--foreground);
  background: var(--background); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.lead input:focus-visible, .lead select:focus-visible, .lead textarea:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.lead textarea { resize: vertical; min-height: 6rem; }
.lead__hint { font-size: 0.82rem; color: var(--muted-fg); margin: 0.35rem 0 0; }
.lead__consent { font-size: 0.9rem; color: var(--muted-fg); margin: 1.2rem 0; }
.lead__consent label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.lead__consent input { width: auto; margin-top: 0.2rem; flex: none; }

/* Campo trampa: invisible para personas, tentador para bots. NO usar
   display:none — algunos bots lo detectan; así queda fuera de pantalla. */
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- secciones que alternan fondo, como en su web ---------- */
.section--hero    { background: linear-gradient(180deg, var(--primary-soft), var(--background)); }
.section--soft    { background: color-mix(in oklch, var(--primary-soft) 50%, var(--background)); border-block: 1px solid var(--border); }
.section--surface { background: var(--surface); }

/* Texto e imagen en dos columnas, como su "grid md:grid-cols-2 items-center" */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; } }
.split__img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }

/* ==========================================================================
   Piezas de su cabecera y su hero
   --------------------------------------------------------------------------
   Todo esto estaba en su web y mi primera versión lo perdió: barra superior,
   logo con subtítulo, dos botones en la nav, badge en píldora sobre el H1,
   la última parte del titular en color, y los checks a dos columnas.
   ========================================================================== */

/* --- barra superior: eslogan a la izquierda, teléfono y horario a la derecha */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted-fg);
}
.topbar__in { display: flex; justify-content: space-between; gap: 1rem;
              padding-block: 0.45rem; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; font-weight: 600; }
.topbar__sep { opacity: 0.4; margin-inline: 0.35rem; }
@media (max-width: 44rem) { .topbar__in > span:first-child { display: none; } }

/* --- logo con marca y subtítulo, como el suyo --- */
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__brand strong { display: block; font-family: var(--font-display);
                     font-size: 1.02rem; line-height: 1.15; }
.nav__brand small { display: block; font-size: 0.64rem; letter-spacing: 0.11em;
                    text-transform: uppercase; color: var(--muted-fg); font-weight: 600; }
.nav__mark {
  width: 2.1rem; height: 2.1rem; flex: none; display: grid; place-items: center;
  border-radius: 0.6rem; background: var(--primary-soft);
  color: var(--primary-strong); font-size: 1.15rem;
}

/* --- los dos botones de la cabecera --- */
.nav__cta { display: flex; gap: 0.5rem; }
.btn--sm { padding: 0.5rem 0.95rem; font-size: 0.86rem; }
.btn--soft { background: var(--primary-soft); color: var(--primary-strong); }
.btn--soft:hover { background: color-mix(in oklch, var(--primary-soft) 70%, var(--primary) 30%); }
@media (max-width: 68rem) { .nav__cta .btn--ghost { display: none; } }
@media (max-width: 52rem) { .nav__cta { display: none; } }

/* --- badge en píldora, ENCIMA del H1 --- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.32rem 0.85rem; margin: 0 0 1rem;
  border-radius: var(--radius-pill);
  background: var(--background); border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--primary-strong);
  box-shadow: var(--shadow-sm);
}
.badge::before { content: "\25CF"; font-size: 0.55em; opacity: 0.7; }

/* --- la última parte del titular, en color --- */
h1 .accent { color: var(--primary-strong); }

/* --- checks a DOS columnas, como en su hero --- */
.ticks { grid-template-columns: 1fr; }
@media (min-width: 40rem) { .section--hero .ticks { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }

/* --- banda de confianza: fila horizontal, no párrafos apilados --- */
.section--soft { padding-block: 1.6rem; }
.section--soft .prose > p {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0.5rem 1.75rem 0.5rem 0; color: var(--foreground); font-weight: 600;
}
.section--soft .prose > p::before {
  content: "\2713"; color: var(--primary); font-weight: 700;
}
.section--soft .prose { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: none; }

/* --- marco suave detrás de la imagen del hero, como el suyo --- */
.section--hero .split__img { position: relative; }
.section--hero .split { position: relative; }
.section--hero .split > div + img { border: 8px solid color-mix(in oklch, var(--primary-soft) 60%, transparent); }

/* ==========================================================================
   Correcciones tras comparar con su web (2ª pasada)
   ========================================================================== */

/* 1 · La nav se partía en dos líneas y los botones se solapaban a 1280px.
      Causa: 5 enlaces + 2 botones + logo con subtítulo no caben con los
      tamaños de antes. Se compacta y el botón fantasma se retira antes. */
.nav__in { flex-wrap: nowrap; gap: 0.9rem; }
.nav__links { flex-wrap: nowrap; gap: 0.85rem; white-space: nowrap; }
.nav__links a { font-size: 0.9rem; }
.nav__cta { flex: none; }
.btn--sm { padding: 0.48rem 0.8rem; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 80rem) { .nav__cta .btn--ghost { display: none; } }
@media (max-width: 62rem) { .nav__links { display: none; } }

/* 2 · La banda de confianza: azul muy claro, como la suya. El color-mix con
      --background daba violáceo porque --background es oklch(1 0 0) puro y
      la mezcla arrastraba el croma del primary-soft. Se fija el valor. */
.section--soft { background: oklch(0.972 0.018 210); border-block: 1px solid var(--border); }

/* ==========================================================================
   3ª pasada — valores LEÍDOS de sus componentes, no deducidos de capturas
   --------------------------------------------------------------------------
   ⚠️ Llevaba una hora infiriendo su maqueta a partir de capturas teniendo sus
   componentes React en el zip. `TrustBand.tsx`, `StatsBand.tsx` y
   `PageHero.tsx` definen su sistema de diseño literalmente. Leerlos antes
   habría ahorrado dos rondas de prueba y error.
   ========================================================================== */

/* TrustBand.tsx: grid de 3 columnas IGUALES y CENTRADAS, con icono de escudo.
   Mi versión usaba space-between y alineación a la izquierda: parecido de
   lejos, distinto de cerca. */
.section--soft { padding-block: 3rem; }
@media (min-width: 48rem) { .section--soft { padding-block: 3.5rem; } }
.section--soft .prose {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: none;
}
@media (min-width: 40rem) {
  .section--soft .prose { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.section--soft .prose > p {
  display: flex; align-items: center; justify-content: center; text-align: center;
  gap: 0.75rem; margin: 0; font-weight: 500; font-size: 0.95rem;
}
/* El escudo de lucide (ShieldCheck), en SVG inline para no cargar una librería */
.section--soft .prose > p::before {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem;
  background: var(--primary);
  -webkit-mask: var(--shield) center / contain no-repeat;
          mask: var(--shield) center / contain no-repeat;
}
:root {
  --shield: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="m9 12 2 2 4-4"/></svg>');
}

/* PageHero.tsx: el eyebrow es text-xs, uppercase, tracking 0.18em, en primary */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; margin-bottom: 0.75rem; }

/* ==========================================================================
   FAQ y StatsBand — valores leídos de FAQ.tsx y StatsBand.tsx
   ========================================================================== */

/* FAQ.tsx: caja redondeada con divisores, pregunta + icono +/−, primera abierta.
   Aquí va con <details>: sin JS, operable con teclado y funciona aunque el
   script no cargue. Su versión necesita React para abrir un acordeón. */
.faq { max-width: 48rem; margin-inline: auto; }
.faq > h2 { text-align: center; }
.faq__box {
  margin-top: 2rem; border: 1px solid var(--border);
  border-radius: 1rem; background: var(--background); overflow: hidden;
}
.faq__box details + details { border-top: 1px solid var(--border); }
.faq__box summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem; cursor: pointer; font-weight: 500; list-style: none;
}
.faq__box summary::-webkit-details-marker { display: none; }
.faq__box summary::after {
  content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1;
  flex: none; font-weight: 400;
}
.faq__box details[open] summary::after { content: "\2212"; }
.faq__box details > p {
  margin: 0; padding: 0 1.25rem 1.25rem;
  color: var(--muted-fg); font-size: 0.9rem; line-height: 1.7;
}

/* StatsBand.tsx: cifra grande en tipografía display, color primary,
   tabular-nums; etiqueta en mayúsculas con tracking. */
.stats { display: grid; grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
@media (min-width: 40rem) { .stats { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.stats__n {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 3.75rem);
  color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums;
}
.stats__l {
  margin-top: 0.75rem; font-size: 0.9rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: color-mix(in oklch, var(--foreground) 80%, transparent);
}

/* --- Chips de codigos postales y de ciudades relacionadas -------------------
   Reutiliza la pildora que su web ya usa en el listado de ciudades de /zones
   (borde primary/30, fondo primary-soft, redondeo completo). Misma forma, para
   que el bloque de ciudad no parezca pegado de otra web. */
.chips { list-style: none; margin: .9rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { display: inline-flex; align-items: center;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: var(--primary-soft); color: var(--primary);
  border-radius: 999px; padding: .35rem .85rem;
  font-size: .875rem; font-weight: 500; }
.chips--link li { padding: 0; }
.chips--link a { display: inline-block; padding: .35rem .85rem;
  color: inherit; text-decoration: none; border-radius: 999px; }
.chips--link li:hover { background: var(--primary); color: var(--primary-foreground); }
.chips--link li:hover a { color: var(--primary-foreground); }
.prose h3 { margin-top: 1.6rem; font-size: 1.05rem; }

/* --- Menu movil ------------------------------------------------------------
   ⚠️ Este bloque FALTABA POR COMPLETO. El <details class="nav__mob"> se
   generaba desde el principio y no tenia ni una regla: salia el triangulo por
   defecto del <summary> junto al icono (el "▶ ☰" de las capturas) y el boton
   se veia tambien en escritorio, donde no pinta nada. Se vio en la captura de
   /zones/ath a 1280 px, no en el DOM.
   El corte es 62rem porque es donde .nav__links se oculta (mas arriba). Entre
   52rem y 62rem los enlaces ya no estan pero el CTA si, asi que el menu tiene
   que aparecer justo ahi, no mas abajo. */
.nav__mob { display: none; }
@media (max-width: 62rem) {
  .nav__mob { display: block; position: relative; margin-left: auto; }
}
.nav__mob > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 0.7rem;
  border: 1px solid var(--border); background: var(--background);
  font-size: 1.25rem; line-height: 1; color: var(--foreground);
}
.nav__mob > summary::-webkit-details-marker { display: none; }
.nav__mob > summary::marker { content: ""; }
.nav__mob[open] > summary { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.nav__mob-list {
  position: absolute; right: 0; top: calc(100% + 0.55rem); z-index: 60;
  min-width: 13rem; margin: 0; padding: 0.45rem;
  list-style: none; background: var(--background);
  border: 1px solid var(--border); border-radius: 0.85rem;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.10);
}
.nav__mob-list a {
  display: block; padding: 0.6rem 0.75rem; border-radius: 0.55rem;
  color: var(--foreground); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav__mob-list a:hover, .nav__mob-list a[aria-current="page"] {
  background: var(--primary-soft); color: var(--primary);
}

/* ==========================================================================
   Geometria real de su maqueta (3ª pasada, 2026-08-05)
   --------------------------------------------------------------------------
   ⚠️ SACADO DE SU CSS COMPILADO, NO DE UNA CAPTURA.
   Su contenedor es .container-bc: width:100%; max-width:80rem;
   margin-inline:auto; padding-inline:2rem (1.25rem por debajo de md).
   Yo tenia --wrap:1120px y .prose:72ch: el resultado era una columna
   estrecha y CENTRADA donde ellos tienen una banda ancha alineada a la
   izquierda. Es la mayor diferencia visual que quedaba, y no se veia
   comparando textos: solo poniendo las dos capturas al lado.
   Los anchos de linea son suyos tambien: h1 max-w-3xl (48rem) y parrafo
   de hero max-w-2xl (42rem), ambos con text-balance.
   ========================================================================== */
:root {
  --wrap: 80rem;
  --gap: 1.25rem;
}
@media (min-width: 48rem) { :root { --gap: 2rem; } }

/* El hero: py-14 / md:py-20 = 3.5rem / 5rem. Nada de clamp inventado. */
.section--hero { padding-block: 3.5rem; }
@media (min-width: 48rem) { .section--hero { padding-block: 5rem; } }

/* text-4xl / md:text-5xl / lg:text-6xl */
.section--hero h1 {
  max-width: 48rem; text-wrap: balance;
  font-size: 2.25rem; line-height: 1.05;
}
@media (min-width: 48rem) { .section--hero h1 { font-size: 3rem; } }
@media (min-width: 64rem) { .section--hero h1 { font-size: 3.75rem; } }

.section--hero > .wrap > p { max-width: 42rem; text-wrap: balance; }
.section--hero > .wrap > p:not(.eyebrow):not(.badge) {
  margin-top: 1.25rem; font-size: 1.125rem;
}

/* Su eyebrow es text-xs + tracking .18em + text-primary + mb-3.
   El mio salia gris y mas grande. */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  color: var(--primary); margin: 0 0 0.75rem;
}

/* .prose no debe estrechar el hero: alli mandan los anchos de arriba. */
.section--hero .prose { max-width: none; }

/* ==========================================================================
   Tipografia: Fraunces (titulares) + Inter (texto), AUTOALOJADAS
   --------------------------------------------------------------------------
   ⚠️ Su web usa Fraunces + Inter desde fonts.googleapis.com. Yo caia a Georgia
   y por eso mis titulares salian ~15% mas anchos y el h1 rompia en 4 lineas
   donde el suyo rompe en 3. Se veia comparando las dos capturas al lado, y se
   confirmo leyendo su CSS compilado (--font-display:"Fraunces",Georgia,serif).
   Se AUTOALOJAN en vez de enlazar a Google:
     · misma tipografia, ningun tercero (la migracion iba 3 -> 0, y enlazar
       Google Fonts los devolveria a 1);
     · en la UE, servir Google Fonts desde el navegador del visitante manda su
       IP a Google, y eso ya ha dado sentencias por RGPD. El cliente es belga.
     · una peticion menos a otro dominio: sin preconnect, sin DNS extra.
   Ambas son SIL OFL 1.1, que permite autoalojarlas. Licencia en
   assets/fonts/OFL.txt.
   Solo los subconjuntos latin y latin-ext: el frances no necesita mas.
   Son variables (400-700 en un unico fichero), por eso son 4 ficheros y no 16.
   ========================================================================== */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* Fraunces lleva eje optico: dejarlo automatico es lo que hace su web. */
h1, h2, h3, h4 { font-optical-sizing: auto; }

/* ⚠️ Especificidad: .prose p (0,2,0) le ganaba a .eyebrow (0,1,0), asi que el
   eyebrow salia con el gris de parrafo en vez del color primario. Medido con
   getComputedStyle, no mirado en la captura: oklch(0.5 .02 230) donde tocaba
   el teal. Los suyos son text-primary. */
.prose p.eyebrow, .section--hero .eyebrow { color: var(--primary); max-width: none; }

/* ==========================================================================
   Secciones interiores y degradado del hero (4ª pasada)
   --------------------------------------------------------------------------
   ⚠️ .wrap.prose es UN SOLO elemento con las dos clases. .wrap daba
   max-width:80rem + margin-inline:auto, pero .prose lo bajaba a 72ch (~640px)
   Y SEGUIA CENTRADO: el resultado era una columna estrecha en medio de la
   pagina donde ellos tienen una banda ancha alineada a la izquierda. En el
   hero ya estaba corregido; en las demas secciones no, y por eso el h2 de
   ciudad arrancaba en x=308 en vez de x=32.
   El limite de linea NO desaparece: se mueve al parrafo, que es donde debe
   estar. Los titulares, rejillas y chips ocupan el ancho completo, como ellos.
   ========================================================================== */
.wrap.prose { max-width: var(--wrap); }
.prose > p { max-width: 46rem; }

/* Sus secciones son py-14 = 3.5rem. Yo tenia clamp(...,5.5rem): a 1280px
   metia 88px arriba y abajo y todo respiraba de mas. */
:root { --section-y: 3.5rem; }

/* Su degradado de hero es diagonal y MUY suave: 6% y 10% de color sobre
   blanco. El mio iba de primary-soft a blanco en vertical, mucho mas saturado
   arriba, y ademas alargaba visualmente el hero al desvanecerse. */
.section--hero {
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--primary) 6%, white),
    color-mix(in oklab, var(--primary-glow) 10%, white));
}

/* Su parrafo de hero solo lleva margen ARRIBA (mt-5). El mio arrastraba el
   margin-bottom global de <p> y alargaba el hero ~20px de mas. */
.section--hero > .wrap > p:last-child { margin-bottom: 0; }

/* --- Pie de 4 columnas (el suyo) ------------------------------------------- */
.foot__brand { grid-column: span 1; }
@media (min-width: 62rem) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot__tag { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary); font-weight: 600; }
.foot__note { padding-top: 1.4rem; margin-top: 1.4rem; border-top: 1px solid var(--border); }
.foot__note p { margin: 0; font-size: .8rem; color: var(--muted-fg); max-width: 60rem; }

/* Pildora informativa: un <button aria-disabled> de su web. No es pulsable. */
.badge--muted { background: var(--background); border: 1px solid var(--border);
  color: var(--muted-fg); font-weight: 600; }

/* --- Logo, foto de tarjeta y equipo ---------------------------------------- */
.nav__logo { width: 2.5rem; height: 2.5rem; object-fit: contain; border-radius: .6rem; }
.card { overflow: hidden; --card-pad: 1.35rem; }   /* mismo padding que .card */
.card__img { display: block; width: calc(100% + 2 * var(--card-pad, 1.4rem));
  margin: calc(-1 * var(--card-pad, 1.4rem)) calc(-1 * var(--card-pad, 1.4rem)) 1rem;
  aspect-ratio: 3 / 2; object-fit: cover; }
.person { border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); overflow: hidden; }
.person img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.person__b { padding: 1.1rem 1.2rem; }
.person__n { margin: 0; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--foreground); font-weight: 600; }
.person__r { margin: .15rem 0 0; font-size: .85rem; color: var(--primary); font-weight: 600; }

/* Vinetas dentro de la tarjeta de servicio: mas pequenas y sin columnas. */
.ticks--card { grid-template-columns: 1fr !important; margin-top: 1rem; gap: .4rem; }
.ticks--card li { font-size: .875rem; }

/* ⚠️ El `img { max-width: 100% }` global recortaba la foto de tarjeta: el margen
   negativo si aplicaba, pero el ancho se quedaba en el del contenido. Medido:
   tarjeta 276px, imagen 230px. */
.card__img { max-width: none; }

/* Su rejilla es md:grid-cols-2 / lg:grid-cols-3. La mia con auto-fit sacaba 4
   columnas a 1280 y las tarjetas quedaban mas estrechas que las suyas. */
@media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Los 2px que faltaban: la tarjeta tiene 1px de borde a cada lado, y el
   desbordamiento hay que calcularlo tambien sobre el. Medido: 376 vs 378. */
.card__img { --card-edge: calc(var(--card-pad, 1.35rem) + 1px);
  width: calc(100% + 2 * var(--card-edge));
  margin-left: calc(-1 * var(--card-edge)); margin-right: calc(-1 * var(--card-edge));
  margin-top: calc(-1 * var(--card-edge)); }

/* --- Banner de consentimiento ---------------------------------------------
   Abajo a la derecha como el suyo, tarjeta con borde y sombra. En movil ocupa
   el ancho. No bloquea la pagina: no es un muro de cookies. */
.cc { position: fixed; z-index: 90; right: 1rem; bottom: 1rem; left: 1rem;
  max-width: 30rem; margin-left: auto; }
.cc[hidden] { display: none; }
.cc__box { background: var(--background); border: 1px solid var(--border);
  border-radius: 1rem; box-shadow: 0 18px 45px rgb(0 0 0 / 0.16); padding: 1.15rem 1.25rem; }
.cc__h { margin: 0 0 .4rem; font-size: 1rem; font-family: var(--font-display); }
.cc__p { margin: 0; font-size: .82rem; color: var(--muted-fg); line-height: 1.5; }
.cc__cats { display: grid; gap: .4rem; margin-top: .9rem; }
.cc__cats[hidden] { display: none; }
.cc__cat { display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; background: var(--surface); border-radius: .55rem;
  padding: .5rem .65rem; font-size: .82rem; }
.cc__cat input { accent-color: var(--primary); }
.cc__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; align-items: center; }
.cc__btns [hidden] { display: none; }
.cc__link { background: none; border: 0; cursor: pointer; padding: .5rem .7rem;
  color: var(--primary); font: inherit; font-size: .8rem; font-weight: 600; border-radius: 999px; }
.cc__link:hover { background: var(--primary-soft); }
.foot__cc { background: none; border: 0; cursor: pointer; padding: 0;
  color: inherit; font: inherit; text-decoration: underline; }
@media (max-width: 34rem) { .cc { right: .75rem; left: .75rem; bottom: .75rem; } }

/* --- Boton flotante de llamada -------------------------------------------- */
.fab { position: fixed; z-index: 80; right: 1rem; bottom: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 999px; padding: .8rem 1.15rem; text-decoration: none;
  font-weight: 600; font-size: .92rem; box-shadow: 0 10px 26px rgb(0 0 0 / .18); }
.fab:hover { background: var(--primary-strong); }
.fab__i { font-size: 1.1rem; line-height: 1; }
@media (max-width: 34rem) { .fab { right: .75rem; bottom: .75rem; padding: .8rem 1rem; }
  .fab__t { display: none; } }
/* Con el banner abierto, el flotante se aparta para no taparlo. */
.cc:not([hidden]) ~ .fab, .fab { transition: bottom .2s ease; }

/* --- Popup de conversion --------------------------------------------------- */
.pop { position: fixed; z-index: 85; left: 1rem; right: 1rem; bottom: 5.5rem;
  max-width: 24rem; margin-left: auto; }
.pop[hidden] { display: none; }
.pop__box { position: relative; background: var(--background);
  border: 1px solid var(--border); border-radius: 1rem;
  box-shadow: 0 18px 45px rgb(0 0 0 / .16); padding: 1.15rem 1.25rem; }
.pop__x { position: absolute; top: .4rem; right: .5rem; background: none; border: 0;
  cursor: pointer; font-size: 1.35rem; line-height: 1; color: var(--muted-fg); padding: .25rem .4rem; }
.pop__t { margin: 0 1.5rem .3rem 0; font-family: var(--font-display);
  font-size: 1rem; color: var(--foreground); font-weight: 600; }
.pop__p { margin: 0; font-size: .82rem; color: var(--muted-fg); }
.pop__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

/* --- .lp-steps · patron `numbered-steps` -----------------------------------
   Molde: _cowork/nucleo/referencias/web/ref-grovia-steps.html
   De ahi se roba el RITMO -numero grande, titulo, frase corta, mucho aire- y
   NO el acordeon: aquel anima `width`, que esta prohibido (reflow por frame).
   Todo visible de golpe: en una pagina de proceso es justo lo que se quiere,
   y ademas se lee en movil, donde no hay hover. */
.lp-steps { list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: grid; gap: 1.5rem; counter-reset: none; }
@media (min-width: 52rem) { .lp-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; } }
.lp-step { display: flex; gap: 1rem; align-items: flex-start; }
.lp-step__n {
  flex: none; font-family: var(--font-display); font-size: 2rem; line-height: 1;
  font-weight: 600; color: var(--primary);
  font-variant-numeric: tabular-nums; min-width: 2ch;
}
.lp-step__t { margin: .1rem 0 .25rem; font-weight: 600; color: var(--foreground); }
.lp-step__x { margin: 0; font-size: .92rem; color: var(--muted-fg); line-height: 1.55; }
