/* NISPLY · site.css
   Sistema «Laboratorio»: tipografía Inter Variable con títulos en peso 500 e interletra
   ajustada, paleta neutra en oklch (oscuro por defecto, claro con el botón), radios de 6 px,
   bordes al 40-50 % y halos difuminados de fondo. El azul NISPLY es el único acento.
   Los tokens siguen los nombres de shadcn/ui (background, foreground, muted, border, primary…)
   y las mezclas --fg-60, --bd-50… equivalen a text-foreground/60, border-border/50 de Tailwind.
   Móvil primero, cortes en 640 · 768 · 1024 · 1280.
   Índice:
     1. Fuente          2. Tokens          3. Base            4. Utilidades
     5. Botones         6. Cabecera        7. Halos           8. Portada
     9. Secciones       10. Tarjetas       11. Sobre NISPLY   12. Preguntas
    13. Llamada final   14. Contacto       15. Pie            16. Aviso de cookies
    17. Páginas legales y 404              18. Animaciones    19. Impresión */

/* 1. Fuente (autoalojada, SIL OFL 1.1) ———————————————————————————————— */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

/* 2. Tokens ————————————————————————————————————————————————————————— */
:root {
  color-scheme: dark;
  --background: #0B1220;                  /* tinta NISPLY: negro azulado */
  --foreground: oklch(98.5% .005 250);
  --muted: #1C2739;
  --border: #253248;
  --primary: oklch(98.5% .005 250);
  --primary-foreground: #0B1220;
  --accent: #00AEFB;                       /* azul NISPLY: halos y líneas */
  --accent-2: oklch(48.8% .243 264.376);
  --success: oklch(76.5% .177 163.223);
  --danger: oklch(70.4% .191 22.216);
  --pending-bg: rgba(251, 191, 36, .14);
  --pending-fg: #F5C451;
  --halo-1: .07;
  --halo-2: .07;

  /* Mezclas: se recalculan solas al cambiar de tema */
  --fg-80: color-mix(in oklab, var(--foreground) 80%, transparent);
  --fg-70: color-mix(in oklab, var(--foreground) 70%, transparent);
  --fg-60: color-mix(in oklab, var(--foreground) 60%, transparent);
  --fg-50: color-mix(in oklab, var(--foreground) 50%, transparent);
  --fg-40: color-mix(in oklab, var(--foreground) 40%, transparent);
  --fg-30: color-mix(in oklab, var(--foreground) 30%, transparent);
  --fg-20: color-mix(in oklab, var(--foreground) 20%, transparent);
  --fg-10: color-mix(in oklab, var(--foreground) 10%, transparent);
  --bd-50: color-mix(in oklab, var(--border) 50%, transparent);
  --bd-40: color-mix(in oklab, var(--border) 40%, transparent);
  --bd-30: color-mix(in oklab, var(--border) 30%, transparent);
  --bg-95: color-mix(in oklab, var(--background) 95%, transparent);
  --bg-80: color-mix(in oklab, var(--background) 80%, transparent);
  --bg-50: color-mix(in oklab, var(--background) 50%, transparent);
  --bg-35: color-mix(in oklab, var(--background) 35%, transparent);
  --muted-60: color-mix(in oklab, var(--muted) 60%, transparent);
  --muted-50: color-mix(in oklab, var(--muted) 50%, transparent);
  --pr-95: color-mix(in oklab, var(--primary) 95%, transparent);
  --pr-90: color-mix(in oklab, var(--primary) 90%, transparent);
  --pr-50: color-mix(in oklab, var(--primary) 50%, transparent);
  --pr-30: color-mix(in oklab, var(--primary) 30%, transparent);
  --pr-20: color-mix(in oklab, var(--primary) 20%, transparent);
  --pr-10: color-mix(in oklab, var(--primary) 10%, transparent);
  --pf-80: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
  --pf-70: color-mix(in oklab, var(--primary-foreground) 70%, transparent);
  --pf-60: color-mix(in oklab, var(--primary-foreground) 60%, transparent);
  --pf-10: color-mix(in oklab, var(--primary-foreground) 10%, transparent);
  --card-bg: var(--bg-50);
  --icon-bg: var(--pr-20);

  --font-sans: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --radius: 6px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --container: 1400px;
  --pad-x: 24px;
  --header-h: 80px;
  --section-y: clamp(5rem, 3.75rem + 5vw, 8rem);
}
@media (min-width: 1024px) { :root { --pad-x: 48px; } }

:root[data-theme="light"] {
  color-scheme: light;
  --background: #FFFFFF;
  --foreground: oklch(14.5% 0 0);
  --muted: #ECECF0;
  --border: rgba(0, 0, 0, .1);
  --primary: #030213;
  --primary-foreground: #FFFFFF;
  --accent: #0096D8;
  --success: #1E7A34;
  --danger: #D4183D;
  --pending-bg: #FFF3D6;
  --pending-fg: #8A5A00;
  --halo-1: .04;
  --halo-2: .08;
  --card-bg: color-mix(in oklab, var(--background) 70%, transparent);
  --icon-bg: var(--pr-10);
}

/* 3. Base ——————————————————————————————————————————————————————————— */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--background);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Sin fondo propio: así los halos (z-index -1) quedan entre el lienzo y el contenido */
body {
  margin: 0;
  min-width: 320px;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.025em; color: inherit; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd, figure, blockquote { margin: 0; }
strong, b { font-weight: 600; }
em { font-style: normal; font-weight: 600; } /* no hay cursiva cargada: nunca cursiva falsa */
small { font-size: .875rem; }
code, kbd, samp { font-family: var(--font-mono); font-size: .9em; }
abbr[title] { text-decoration: none; }

a {
  color: inherit;
  text-decoration-color: var(--fg-40);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .15s var(--ease), background-color .15s var(--ease), border-color .15s var(--ease), text-decoration-color .15s var(--ease);
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 2px; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--foreground); }

/* 4. Utilidades ——————————————————————————————————————————————————— */
.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;
}
.nowrap { white-space: nowrap; }
.mail { overflow-wrap: anywhere; }
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
}
.br-lg { display: none; }
@media (min-width: 1024px) { .br-lg { display: inline; } }

/* Antetítulo en mayúsculas espaciadas */
.eyebrow, .kicker, .label {
  display: block; margin: 0;
  font-size: .875rem; line-height: 1.25rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--fg-50);
}
.kicker a, .legal__inner .kicker a:not(.btn):not(.link-more) { color: inherit; text-decoration: none; }
.kicker a:hover, .legal__inner .kicker a:not(.btn):not(.link-more):hover { color: var(--foreground); }

.lead { font-size: 1.125rem; line-height: 1.625; color: var(--fg-60); max-width: 42rem; }
@media (min-width: 640px) { .lead { font-size: 1.25rem; } }
.muted { color: var(--fg-50); }

/* Texto con degradado: de foreground a foreground/40 (títulos) y en diagonal (cifras) */
.fade-text {
  background: linear-gradient(to right, var(--foreground), var(--fg-40));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-num {
  background: linear-gradient(to bottom right, var(--foreground), var(--fg-50));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* 5. Botones ——————————————————————————————————————————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; max-width: 100%; padding: 1rem 1.5rem;
  border: 0; border-radius: var(--radius);
  font: inherit; font-size: 1rem; line-height: 1.5rem; font-weight: 400;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
@media (min-width: 640px) { .btn { padding: 1.25rem 2.5rem; } }
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform .2s var(--ease); }
.btn--primary { background: var(--primary); color: var(--primary-foreground); }
.btn--ghost { background: transparent; color: var(--foreground); box-shadow: inset 0 0 0 2px var(--border); }
.btn.btn--sm { min-height: 40px; padding: .625rem 1.5rem; font-size: .875rem; line-height: 1.25rem; }
.btn.btn--lg { padding: 1rem 2rem; }
@media (min-width: 640px) { .btn.btn--lg { padding: 1.25rem 3rem; font-size: 1.125rem; } .btn--lg svg { width: 1.25rem; height: 1.25rem; } }
.btn.btn--block { width: 100%; padding: 1rem 2rem; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--pr-90);
    box-shadow: 0 20px 25px -5px var(--pr-20), 0 8px 10px -6px var(--pr-20);
    transform: translateY(-2px);
  }
  .btn--primary:hover svg { transform: translateX(4px); }
  .btn--lg:hover { transform: translateY(-4px); }
  .btn--lg:hover svg { transform: translateX(8px); }
  .btn--sm:hover, .btn--block:hover { transform: none; box-shadow: 0 10px 15px -3px var(--pr-20), 0 4px 6px -4px var(--pr-20); }
  .btn--ghost:hover { background: var(--muted-50); }
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
@media (min-width: 640px) { .actions { gap: 1.25rem; } }
.link-more { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--fg-70); text-decoration: none; }
.link-more:hover { color: var(--foreground); }

.skip {
  position: absolute; left: var(--pad-x); top: 8px; z-index: 100;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* 6. Cabecera —————————————————————————————————————————————————————— */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-95); border-bottom: 1px solid var(--bd-50); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

/* Logotipo «Nisply»: blanco en tema oscuro, negro en tema claro */
.brand { display: inline-flex; align-items: center; flex: none; color: var(--foreground); text-decoration: none; }
.brand__logo { display: block; width: auto; height: 32px; }
.brand__logo--negro { display: none; }
:root[data-theme="light"] .brand__logo--blanco { display: none; }
:root[data-theme="light"] .brand__logo--negro { display: block; }
@media (min-width: 640px) { .site-header .brand__logo { height: 35px; } }

.nav__links { display: none; list-style: none; }
.nav__links a { font-size: .875rem; line-height: 1.25rem; color: var(--fg-60); text-decoration: none; white-space: nowrap; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--foreground); }
@media (min-width: 1152px) { .nav__links { display: flex; gap: 2.5rem; } }

.header__end { display: flex; align-items: center; gap: .25rem; }
@media (min-width: 640px) { .header__end { gap: .75rem; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 0; border-radius: var(--radius);
  color: var(--foreground); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--muted); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav__cta { display: none; white-space: nowrap; }
@media (min-width: 768px) { .nav__cta { display: inline-flex; margin-left: .25rem; } }
@media (max-width: 359px) { .nav__social { display: none; } }

/* Menú (<1024): <details>, funciona sin JS */
.menu { display: block; }
@media (min-width: 1152px) { .menu { display: none; } }
.menu > summary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius);
  color: var(--foreground); cursor: pointer; list-style: none; user-select: none;
}
.menu > summary:hover { background: var(--muted); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu__icon { position: relative; width: 18px; height: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; border-top: 1.5px solid currentColor; }
.menu[open] .menu__icon { border-color: transparent; }
.menu[open] .menu__icon::before,
.menu[open] .menu__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 4.5px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.menu[open] .menu__icon::after { transform: rotate(-45deg); }
.menu__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--background); border-bottom: 1px solid var(--bd-50);
  padding: .5rem 0 2rem;
}
.menu__links { list-style: none; }
.menu__links li { border-bottom: 1px solid var(--bd-50); }
.menu__links a { display: flex; align-items: center; min-height: 56px; font-size: 1.125rem; color: var(--fg-80); text-decoration: none; }
.menu__links a:hover { color: var(--foreground); }
.menu__cta { width: 100%; margin-top: 1.5rem; }
@media (min-width: 768px) {
  .menu__cta { display: none; }
  .menu__panel .wrap { display: flex; justify-content: flex-end; }
  .menu__links { width: min(100%, 22rem); }
}

/* 7. Halos: dos círculos muy difuminados detrás de todo el contenido ———— */
.halo { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.halo span, .hero__orb, .cta__orb { position: absolute; border-radius: 50%; pointer-events: none; }
.halo span:nth-child(1) {
  top: 50%; left: 50%; width: 1100px; height: 1100px; margin: -550px 0 0 -550px;
  background: radial-gradient(closest-side, var(--primary) 35%, transparent);
  opacity: var(--halo-1);
}
.halo span:nth-child(2) {
  top: 50%; left: 50%; width: 980px; height: 980px; margin: -490px 0 0 -490px;
  background: radial-gradient(closest-side, var(--accent) 35%, transparent);
  opacity: var(--halo-2);
}

/* 8. Portada ——————————————————————————————————————————————————————— */
.hero { position: relative; overflow: clip; }
.hero__orb--a {
  top: 15%; right: -200px; width: 1000px; height: 1000px;
  background: radial-gradient(closest-side, var(--primary) 40%, transparent);
  opacity: .10;
}
.hero__orb--b {
  bottom: -200px; left: -200px; width: 900px; height: 900px;
  background: radial-gradient(closest-side, var(--accent) 35%, transparent);
  opacity: .18;
}
:root[data-theme="light"] .hero__orb--a { opacity: .05; }
@media (max-width: 767px) { .hero__orb { display: none; } }
.hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: 6rem;
}
@media (min-width: 640px) { .hero__inner { padding-block: 8rem; } }
.hero__content { width: 100%; max-width: 72rem; }


.hero h1 { margin-bottom: 2rem; font-size: 2.25rem; line-height: 1.05; }
.hero .lead { margin-bottom: 2.5rem; }
@media (min-width: 640px) {
  .hero h1 { margin-bottom: 2.5rem; font-size: 3.75rem; }
  .hero .lead { margin-bottom: 3.5rem; font-size: 1.5rem; }
}
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }
@media (min-width: 1280px) { .hero h1 { font-size: 6rem; } }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  max-width: 64rem; margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--bd-50); list-style: none;
}
.stat__n { display: inline-block; margin-bottom: .5rem; font-size: 1.875rem; line-height: 2.25rem; font-weight: 500; transition: transform .15s var(--ease); }
.stat__l { margin: 0; font-size: .75rem; line-height: 1rem; color: var(--fg-50); }
.stat:hover .stat__n { transform: scale(1.05); }
@media (min-width: 640px) {
  .stats { gap: 3rem; margin-top: 7rem; padding-top: 3rem; }
  .stat__n { margin-bottom: .75rem; font-size: 3rem; line-height: 1; }
  .stat__l { font-size: .875rem; line-height: 1.25rem; }
}

/* 9. Secciones ————————————————————————————————————————————————————— */
.section { position: relative; padding-block: var(--section-y); }
:root[data-theme="light"] .section--muted { background: color-mix(in oklab, var(--muted) 10%, transparent); }

.section__head { max-width: 56rem; margin-bottom: 3rem; }
.section__head h2, .split__aside h2, .about h2, .contact h2, .section__head h1, .split__aside h1, .about h1, .contact h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 1.1; }
.section__head > p:not(.eyebrow), .split__aside > p:not(.eyebrow):not(.sources) {
  margin-top: 1.5rem; font-size: 1.125rem; line-height: 1.625; color: var(--fg-60); max-width: 48rem;
}
@media (min-width: 640px) {
  .section__head { margin-bottom: 5rem; }
  .section__head h2, .split__aside h2, .about h2, .contact h2, .section__head h1, .split__aside h1, .about h1, .contact h1 { font-size: 3rem; }
  .section__head > p:not(.eyebrow) { margin-top: 2rem; font-size: 1.25rem; }
  .section__head > p + p:not(.eyebrow) { margin-top: 1rem; }
  .split__aside > p:not(.eyebrow):not(.sources) { margin-top: 2rem; }
  .split__aside > p + p:not(.sources) { margin-top: 1rem; }
}
@media (min-width: 1024px) {
  .section__head h2, .split__aside h2, .about h2, .contact h2, .section__head h1, .split__aside h1, .about h1, .contact h1 { font-size: 3.75rem; }
}

/* Dos columnas: título fijo a la izquierda, contenido a la derecha */
.split { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }
  .split__aside { position: sticky; top: 8rem; }
}
.sources { margin-top: 2rem; font-size: .875rem; color: var(--fg-50); }
.sources a { color: var(--fg-70); }

/* 10. Tarjetas ————————————————————————————————————————————————————— */
.card-grid, .steps-grid, .cat-grid, .rows { list-style: none; display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card, .row-card, .cat {
  position: relative; overflow: hidden;
  padding: 1.5rem;
  background: var(--card-bg); border: 1px solid var(--bd-40); border-radius: var(--radius);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
@media (min-width: 640px) { .card, .row-card { padding: 2.5rem; } .cat { padding: 2rem; } }
.card h3, .cat h3 { font-size: 1.5rem; line-height: 2rem; letter-spacing: -.01em; }
.card p, .row-card p, .cat p { margin: 0; color: var(--fg-60); line-height: 1.625; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .cat:hover { background: var(--bg-35); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); }
  .row-card:hover { border-color: var(--border); box-shadow: 0 25px 50px -12px var(--pr-10); }
}

/* Línea inferior que crece al pasar el ratón */
.card__line { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: linear-gradient(to right, var(--primary), var(--accent)); transition: width .5s var(--ease); }
.card:hover .card__line, .cat:hover .card__line { width: 100%; }

/* Capacidades: icono + texto */
.cap { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 640px) { .cap { flex-direction: row; } }
.cap h3 { margin-bottom: 1rem; }
.cap__ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: var(--radius);
  background: var(--icon-bg); color: var(--foreground);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.cap__ico svg { width: 24px; height: 24px; }
.cap__mas { margin-top: 1.25rem; font-size: .9375rem; font-weight: 500; }
.cap__mas a { color: var(--accent); text-decoration: none; }
.cap__mas a:hover { text-decoration: underline; }
.page-kicker { margin: 0; padding-bottom: 1.75rem; font-size: .875rem; color: var(--fg-60); }
.page-kicker a { color: inherit; }

.card:hover .cap__ico { background: var(--primary); color: var(--primary-foreground); }

/* Filas con mancha de color en la esquina (a quién afecta) */
.row-card { background: var(--background); border-color: var(--bd-50); transition-duration: .5s; }
.row-card::before, .cat::before {
  content: ""; position: absolute; top: 0; right: 0; width: 8rem; height: 8rem;
  border-radius: 50%; background: linear-gradient(to bottom right, var(--accent-2), var(--accent));
  filter: blur(40px); opacity: .08; transition: opacity .5s var(--ease); pointer-events: none;
}
.row-card:hover::before, .cat:hover::before { opacity: .16; }
.row-card h3 { margin-bottom: 1rem; font-size: 1.25rem; line-height: 1.75rem; }
.row-card p { font-size: 1.125rem; }
@media (min-width: 640px) { .row-card h3 { font-size: 1.875rem; line-height: 2.25rem; } }

/* Categorías */
.cat { display: flex; flex-direction: column; }
.cat__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.cat__label { font-size: .75rem; line-height: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-50); }
.cat__tag { padding: .25rem .75rem; background: var(--muted-60); border: 1px solid var(--bd-30); border-radius: 999px; font-size: .75rem; line-height: 1rem; color: var(--fg-70); white-space: nowrap; }
.cat__name { margin: 0 0 2rem; font-size: 3rem; line-height: 1; font-weight: 500; letter-spacing: -.025em; }
.cat h3 { margin-bottom: .75rem; font-size: 1.25rem; line-height: 1.75rem; }
@media (min-width: 1024px) { .cat__name { font-size: 3.75rem; } }

/* Método 01–04 */
.step { display: flex; align-items: flex-start; gap: 1rem; }
.step__n { flex: none; font-size: 2.25rem; line-height: 2.5rem; font-weight: 500; letter-spacing: -.025em; font-variant-numeric: tabular-nums; color: var(--fg-10); transition: color .5s var(--ease); }
.step__body { padding-top: .5rem; }
.step h3 { margin-bottom: 1rem; }
.step__line { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(to right, transparent, var(--accent), transparent); opacity: 0; transition: opacity .5s var(--ease); }
@media (min-width: 640px) { .step { gap: 2rem; } .step__n { font-size: 3.75rem; line-height: 1; } }
@media (hover: hover) and (pointer: fine) {
  .step:hover { border-color: var(--pr-30); }
  .step:hover .step__n { color: var(--pr-30); }
  .step:hover .step__line { opacity: 1; }
}

/* 11. Sobre NISPLY (mismo fondo que el resto de secciones) ———————————— */
.about {
  position: relative; overflow: hidden;
  padding-block: var(--section-y);
  color: var(--foreground);
}
:root[data-theme="light"] .about { background: color-mix(in oklab, var(--muted) 10%, transparent); }
.about::before, .about::after {
  content: ""; position: absolute; width: 24rem; height: 24rem; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: var(--halo-1); pointer-events: none;
}
.about::before { top: -6rem; left: 25%; }
.about::after { bottom: -6rem; right: 25%; }
.about .wrap { position: relative; }
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .about__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; } }
.about h2, .about h1 { margin-bottom: 2rem; }
.about__prose p { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.625; color: var(--fg-70); }
.about__prose p:last-child { margin-bottom: 0; }
.about strong { color: var(--foreground); font-weight: 600; }
.about__stats { list-style: none; display: grid; gap: 1.25rem; }
.about__stat { padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--bd-50); border-radius: var(--radius); }
.about__stat b { display: block; margin-bottom: .5rem; font-size: 1.5rem; line-height: 1.2; font-weight: 500; letter-spacing: -.025em; }
.about__stat span { color: var(--fg-60); }
@media (min-width: 640px) {
  .about h2, .about h1 { margin-bottom: 2.5rem; }
  .about__stats { gap: 2rem; }
  .about__stat { padding: 2rem; }
  .about__stat b { margin-bottom: .75rem; font-size: 1.875rem; }
}

/* 12. Preguntas —————————————————————————————————————————————————— */
.faq { display: grid; gap: 1rem; }
.faq details { background: var(--card-bg); border: 1px solid var(--bd-40); border-radius: var(--radius); transition: border-color .3s var(--ease); }
.faq details[open] { border-color: var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.5rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq__q { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.01em; }
.faq__ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--muted-60); color: var(--fg-70);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.faq__ico svg { width: 16px; height: 16px; }
.faq details[open] .faq__ico { transform: rotate(45deg); background: var(--primary); color: var(--primary-foreground); }
.faq__a { padding: 0 1.5rem 1.5rem; max-width: 46rem; color: var(--fg-60); line-height: 1.625; }
.faq__a p { margin: 0 0 .75em; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--foreground); }
@media (min-width: 640px) {
  .faq summary { padding: 1.75rem 2rem; }
  .faq__q { font-size: 1.25rem; }
  .faq__a { padding: 0 2rem 2rem; font-size: 1.0625rem; }
}
@media (hover: hover) and (pointer: fine) { .faq summary:hover .faq__ico { background: var(--muted); } .faq details[open] summary:hover .faq__ico { background: var(--pr-90); } }

/* 13. Llamada final ——————————————————————————————————————————————— */
.cta {
  position: relative; overflow: hidden;
  padding: 2rem; text-align: center;
  background: var(--bg-80); border: 1px solid var(--bd-50); border-radius: var(--radius);
}
.cta__orb--a { top: -8rem; left: 15%; width: 30rem; height: 30rem; background: radial-gradient(closest-side, var(--primary), transparent); opacity: .06; }
.cta__orb--b { bottom: -8rem; right: 15%; width: 30rem; height: 30rem; background: radial-gradient(closest-side, var(--accent), transparent); opacity: .10; }
.cta__in { position: relative; }
.cta h2 { max-width: 56rem; margin: 0 auto 1.5rem; font-size: 1.875rem; line-height: 1.2; }
.cta p { max-width: 42rem; margin: 0 auto 2rem; font-size: 1.125rem; line-height: 1.625; color: var(--fg-60); }
@media (min-width: 640px) {
  .cta { padding: 4rem; }
  .cta h2 { margin-bottom: 2rem; font-size: 3rem; }
  .cta p { margin-bottom: 3rem; font-size: 1.25rem; }
}
@media (min-width: 1024px) { .cta { padding: 6rem; } .cta h2 { font-size: 4.5rem; line-height: 1.15; } }

/* 14. Contacto y formulario ——————————————————————————————————————— */
.contact__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; } }
.contact__intro { max-width: 36rem; margin-top: 2rem; }
.contact__intro h3 { font-size: 1.5rem; line-height: 1.25; }
.contact__intro > p { max-width: 32rem; margin-top: 1.25rem; color: var(--fg-70); line-height: 1.625; }
.channels { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--bd-50); }
.channel { display: inline-flex; align-items: center; gap: .625rem; min-height: 44px; color: var(--fg-70); text-decoration: none; }
.channel svg { width: 18px; height: 18px; flex: none; color: var(--fg-50); transition: color .15s var(--ease); }
.channel:hover { color: var(--foreground); }
.channel:hover svg { color: var(--accent); }
@media (min-width: 640px) {
  .contact__intro { margin-top: 3rem; }
  .contact__intro h3 { font-size: 1.875rem; }
  .contact__intro > p { font-size: 1.125rem; }
}
@media (min-width: 1024px) { .contact__intro h3 { font-size: 2.25rem; } }
/* Móvil y tableta: el formulario justo después del texto de entrada; correo y LinkedIn debajo */
@media (max-width: 1023px) {
  .contact__grid { gap: 0; }
  .contact__grid > div:first-child, .contact__intro { display: contents; }
  .contact__intro h3 { margin-top: 2rem; }
  .contact__grid .form-card { order: 1; margin-top: 2rem; }
  .contact__grid .channels { order: 2; margin-top: 2rem; padding-top: 0; border-top: 0; }
}

.form-card { padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--bd-40); border-radius: var(--radius); }
@media (min-width: 640px) { .form-card { padding: 2.5rem; } }
@media (min-width: 1024px) { .form-card { position: sticky; top: 8rem; } }
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { min-width: 0; }
.field > label { display: block; margin-bottom: .5rem; font-size: .875rem; line-height: 1.25rem; font-weight: 500; }
.field > label .muted { font-weight: 400; }
.field input, .field textarea, .field select {
  display: block; width: 100%; padding: .75rem 1rem;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--bd-50); border-radius: var(--radius);
  font: inherit; font-size: 1rem; line-height: 1.5;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field ::placeholder { color: var(--fg-30); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--pr-50); box-shadow: 0 0 0 1px var(--pr-20); }
.check { display: flex; align-items: flex-start; gap: .75rem; font-size: .875rem; line-height: 1.5; color: var(--fg-60); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.check a { color: var(--fg-80); }
.form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: .75rem; }
.form__status { margin: 0; min-height: 1.25rem; font-size: .875rem; color: var(--fg-60); text-align: center; }
.form__status:empty { min-height: 0; }
.form__status.is-ok { color: var(--success); }
.form__status.is-err { color: var(--danger); font-weight: 500; }
.form__done { padding: 2rem 0; text-align: center; outline: none; }
.form__tick { width: 5rem; height: 5rem; margin: 0 auto 1.25rem; display: block; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form__tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: tick-trazo .6s ease-out forwards; }
.form__tick path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: tick-trazo .35s .55s ease-out forwards; }
@keyframes tick-trazo { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .form__tick circle, .form__tick path { animation: none; stroke-dashoffset: 0; } }
.form__done-title { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 600; }
.form__done-txt { margin: 0; color: var(--fg-60); }

/* 14 bis. Contacto: reunión inicial + datos en una sola tarjeta (agenda.js) ———————— */
.reserva__cab { display: grid; gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .reserva__cab { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: end; gap: 4rem; margin-bottom: 3rem; } }
.reserva__intro { max-width: 40rem; margin: 1.25rem 0 0; font-size: 1.125rem; line-height: 1.625; color: var(--fg-70); }
.agenda__datos { list-style: none; display: grid; gap: .875rem; margin: 0; padding: 0; }
.agenda__datos li { display: flex; align-items: center; gap: .75rem; color: var(--fg-80); }
.agenda__datos svg { flex: none; width: 20px; height: 20px; color: var(--accent); }

.form-card.reserva { position: static; padding: 1.5rem; }
@media (min-width: 640px) { .form-card.reserva { padding: 2.5rem; } }
.reserva__grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .reserva__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
  .reserva__grid > .reserva__paso:first-child { padding-right: 3rem; border-right: 1px solid var(--bd-50); }
  .reserva__grid > .reserva__paso + .reserva__paso { padding-left: 3rem; }
}
@media (max-width: 1023px) { .reserva__grid > .reserva__paso + .reserva__paso { padding-top: 2.5rem; border-top: 1px solid var(--bd-50); } }
.reserva__paso.form { gap: 1.25rem; align-content: start; }
.reserva__paso.is-apagado { opacity: .35; pointer-events: none; }
#agenda-horas { display: flex; flex-direction: column; }
#agenda-horas .agenda__horas { flex: 1; }
#agenda-horas .agenda__nota { margin-top: auto; }
.reserva__canales { margin-top: 2rem; padding-top: 0; border-top: 0; justify-content: center; }

.agenda__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.agenda__paso-tit { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.agenda__paso-tit span {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  font-size: .8125rem; color: var(--fg-70); border: 1px solid var(--bd-50);
}
.agenda__nav { display: flex; align-items: center; gap: .375rem; }
.agenda__semana { margin-right: .375rem; font-size: .875rem; color: var(--fg-60); white-space: nowrap; }
.agenda__flecha {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0;
  color: var(--foreground); background: none; border: 1px solid var(--bd-50); border-radius: var(--radius); cursor: pointer;
}
.agenda__flecha svg { width: 18px; height: 18px; }
.agenda__flecha:hover:not(:disabled) { border-color: var(--accent); }
.agenda__flecha:disabled { opacity: .3; cursor: default; }

.agenda__dias { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.agenda__dia {
  display: grid; gap: .25rem; padding: 1.125rem 0; font: inherit; text-align: center; cursor: pointer;
  color: var(--foreground); background: none; border: 1px solid var(--bd-50); border-radius: var(--radius);
  transition: border-color .15s var(--ease);
}
.agenda__dia span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-50); }
.agenda__dia b { font-size: 1.5rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.agenda__dia:hover:not(:disabled) { border-color: var(--accent); }
.agenda__dia[aria-pressed="true"] { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); }
.agenda__dia[aria-pressed="true"] span { color: inherit; opacity: .7; }
.agenda__dia:disabled { cursor: default; opacity: .35; }

.agenda__horas { margin-top: 2rem; min-height: 9rem; }
.agenda__franja { margin: 0 0 .75rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-50); }
.agenda__lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .625rem; margin-bottom: 1.75rem; }
.agenda__h {
  padding: .875rem 0; font: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; text-align: center;
  color: var(--foreground); background: none; border: 1px solid var(--bd-50); border-radius: var(--radius);
  cursor: pointer; transition: border-color .15s var(--ease);
}
.agenda__h:hover:not(:disabled) { border-color: var(--accent); }
.agenda__h[aria-pressed="true"] { color: var(--primary-foreground); background: var(--primary); border-color: var(--primary); }
.agenda__h:disabled { color: var(--fg-30); text-decoration: line-through; border-color: var(--bd-30); cursor: default; }
.agenda__dia:focus-visible, .agenda__h:focus-visible, .agenda__flecha:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agenda__aviso { margin: 0; padding: 2rem 0; text-align: center; color: var(--fg-60); }
.agenda__nota { margin: 0; font-size: .8125rem; color: var(--fg-50); }
.agenda__elegida { margin: .75rem 0 0; padding: .875rem 1rem; font-size: .9375rem; color: var(--fg-60); background: var(--bg-50); border: 1px dashed var(--bd-50); border-radius: var(--radius); }
.agenda__elegida.is-elegida { color: var(--fg-80); border-style: solid; border-color: var(--accent); }
.agenda__elegida b { font-weight: 600; color: var(--foreground); }
.reserva .field textarea { min-height: 5.5rem; }
.reserva .form__done { padding: 3rem 0; }
@media (max-width: 420px) {
  .agenda__lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda__h { padding: .75rem 0; font-size: .9375rem; }
  .agenda__dias { gap: .3rem; }
  .agenda__dia b { font-size: 1.125rem; }
  .agenda__paso-tit { font-size: 1.0625rem; }
}

/* 15. Pie ————————————————————————————————————————————————————————— */
.site-footer { position: relative; border-top: 1px solid var(--bd-40); }
.site-footer > .wrap { padding-top: 5rem; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.footer__main { display: grid; gap: 2.5rem; margin-bottom: 4rem; }
@media (min-width: 768px) {
  .footer__main { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem; }
  .footer__brand { grid-column: span 2; }
}
.footer__brand .brand { margin-bottom: 1.5rem; }
.footer__brand .brand__logo { height: 46px; }
.footer__tag { max-width: 28rem; margin: 0; font-size: 1.125rem; line-height: 1.625; color: var(--fg-60); }
.footer__note { max-width: 28rem; margin: 1rem 0 0; font-size: .875rem; line-height: 1.5; color: var(--fg-50); }
.footer__title { margin: 0 0 1.5rem; font-weight: 500; }
.footer__col ul { list-style: none; display: grid; gap: 1rem; }
.footer__col li:has(> a[hidden]) { display: none; }
.footer__col a { display: inline-flex; align-items: center; gap: .5rem; color: var(--fg-60); text-decoration: none; }
.footer__col a svg { width: 16px; height: 16px; flex: none; }
.footer__col a:hover { color: var(--foreground); }
.footer__bottom {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--bd-50);
  font-size: .875rem; color: var(--fg-50); text-align: center;
}
.footer__bottom p { margin: 0; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; }
.footer__legal a { color: var(--fg-50); text-decoration: none; }
.footer__legal a:hover { color: var(--foreground); }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; text-align: left; } }

/* 16. Aviso de cookies ————————————————————————————————————————————— */
.cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; padding: 0 1rem max(1rem, env(safe-area-inset-bottom)); pointer-events: none; }
.cookies__in {
  pointer-events: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  max-width: 46rem; margin: 0 auto; padding: 1rem 1.25rem;
  background: var(--background); color: var(--foreground);
  border: 1px solid var(--bd-50); border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .5);
}
.cookies__txt { flex: 1 1 24rem; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--fg-70); }
.cookies__txt b { color: var(--foreground); font-weight: 500; }
.cookies__txt a { color: var(--foreground); }
.cookies__btns { display: flex; gap: .75rem; flex: none; }
.cookies__btns .btn { padding-inline: 1.25rem; }
.cookies label.btn { cursor: pointer; }
.cookies[hidden], .cookies__state:checked + .cookies { display: none; }
.cookies__state { position: absolute; opacity: 0; pointer-events: none; }

/* 17. Páginas legales y 404 ——————————————————————————————————————— */
.legal { padding-block: clamp(4rem, 3rem + 4vw, 7rem) var(--section-y); }
.legal__inner { max-width: 48rem; }
.legal h1 { margin-top: 1.5rem; font-size: 2.25rem; line-height: 1.1; }
.legal h1 + .muted, .legal h1 + .lead { margin-top: 1.5rem; }
.legal .muted { font-size: .875rem; }
.legal h2 { margin: 4rem 0 1rem; font-size: 1.5rem; line-height: 1.25; }
.legal h3 { margin: 2rem 0 .75rem; font-size: 1.25rem; line-height: 1.4; }
.legal p, .legal li { color: var(--fg-70); line-height: 1.7; }
.legal b, .legal strong { color: var(--foreground); }
.legal__inner a:not(.btn):not(.link-more) { color: var(--foreground); text-decoration: underline; text-decoration-color: var(--fg-40); }
.legal .actions { margin-top: 2.5rem; }
@media (min-width: 640px) {
  .legal h1 { font-size: 3rem; }
  .legal h2 { font-size: 1.875rem; }
}
@media (min-width: 1024px) { .legal h1 { font-size: 3.75rem; } }
.legal__nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 2.5rem; }
.legal__inner .legal__nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem;
  border: 1px solid var(--bd-50); border-radius: 999px;
  font-size: .875rem; color: var(--fg-60); text-decoration: none;
}
.legal__inner .legal__nav a:not(.btn):hover { color: var(--foreground); border-color: var(--border); }
.legal__inner .legal__nav a:not(.btn)[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); font-weight: 500; }
.legal__data { list-style: none; margin: 1.5rem 0; border-top: 1px solid var(--bd-50); }
.legal__data li { padding: .75rem 0; border-bottom: 1px solid var(--bd-50); }
.legal__list { margin: 0 0 1em 1.25rem; padding: 0; }
.legal__list li + li { margin-top: .5rem; }
.legal code { padding: 1px 5px; background: var(--muted-50); border-radius: 4px; font-size: .8125rem; color: var(--foreground); }
.pending { padding: 1px 6px; background: var(--pending-bg); color: var(--pending-fg); border-radius: 4px; font-weight: 500; }

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.5rem 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: .875rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bd-50); }
.tbl thead th { font-size: .75rem; line-height: 1rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-50); border-bottom-color: var(--border); }
.tbl tbody th { font-weight: 500; color: var(--foreground); }
.tbl td { color: var(--fg-70); }
.legal__tbl { min-width: 560px; margin: 0; }

/* 18. Animaciones de entrada (solo con JS y sin «reducir movimiento») ——— */
@media (prefers-reduced-motion: no-preference) {
  /* corto y discreto: el contenido no debe verse vacío ni a medio aparecer mientras se lee */
  .js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js :is(.card-grid, .cat-grid, .steps-grid, .rows, .lineas) > .reveal:nth-child(2) { transition-delay: .05s; }
  .js :is(.card-grid, .cat-grid, .steps-grid, .rows, .lineas) > .reveal:nth-child(3) { transition-delay: .1s; }
  .js :is(.card-grid, .cat-grid, .steps-grid, .rows, .lineas) > .reveal:nth-child(4) { transition-delay: .15s; }
  .cookies__in { animation: rise .4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 19. Impresión: blanco y negro, sin cabecera, halos ni formulario ——————— */
@media print {
  @page { margin: 16mm 15mm; }
  :root { --background: #FFFFFF; --foreground: #000000; --muted: #F2F2F2; --border: #BBBBBB; --primary: #000000; --primary-foreground: #FFFFFF; }
  html, body { background: #FFFFFF !important; color: #000000; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .brand__logo--blanco { display: none !important; }
  .brand__logo--negro { display: block !important; }
  .skip, .site-header, .halo, .hero__orb, .cta, .form-card, .cookies, .cookies__state, .actions, .btn { display: none !important; }
  .hero__inner { min-height: 0; padding-block: 0 14pt; }
  .section, .about, .legal { padding-block: 14pt; }
  .about { background: none; color: #000000; }
  .about *, .fade-text, .grad-num { color: #000000 !important; background: none !important; }
  .split__aside, .form-card { position: static; }
  .card, .row-card, .cat, .faq details, .about__stat { break-inside: avoid; box-shadow: none; }
  h1, h2, h3 { break-after: avoid; }
  main a[href^="http"]::after { content: "\00a0(" attr(href) ")"; font-size: .85em; overflow-wrap: anywhere; }
}

/* Tres líneas de servicio en la portada */
@media (min-width: 1024px) { .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
