/* ==========================================================================
   ACV21 · acv.css — sistema de diseño
   --------------------------------------------------------------------------
   Idea: una carta náutica de la ría de Vigo. Papel cálido, tinta azul marino,
   el azul de Adeslas como acento y el amarillo de su estrella como chispa.
   Tipografía editorial (Fraunces) para lo que se dice con voz propia y una
   grotesca limpia (Instrument Sans) para todo lo que hay que leer deprisa.

   Reglas de la casa:
   · Sin JS la página se ve completa y estática. Todo lo que se mueve vive
     bajo `html.js` y respeta `prefers-reduced-motion`.
   · Solo se animan transform, opacity y clip-path, salvo los acordeones.
   · Cuerpo de texto a 17-18 px: hay muchos lectores de más de 55 años.
   · Ningún color de texto baja de 4,5:1 sobre su fondo.
   ========================================================================== */

/* ---- 0. Tipografías autoalojadas (subconjunto latino, ver fonts/LICENSES) -- */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-display.woff2') format('woff2');
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-display-italic.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/instrument-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Respaldo métrico: mientras llegan las fuentes, Georgia y Arial ajustadas
   ocupan casi lo mismo y el titular no salta al cambiar. */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 96%;
  ascent-override: 96%;
  descent-override: 25%;
}
@font-face {
  font-family: 'Instrument Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 97%;
  ascent-override: 98%;
  descent-override: 25%;
}

/* ---- 1. Tokens ------------------------------------------------------------- */
:root {
  /* Papel y tinta */
  --paper: #F4EFE6;
  --paper-2: #EAE3D6;
  --paper-3: #DDD3C3;
  --card: #FBF9F5;
  --white: #FFFFFF;
  --ink: #0E1B2C;
  --ink-2: #3B4654;
  --muted: #5B6572;
  --line: rgba(14, 27, 44, 0.14);
  --line-2: rgba(14, 27, 44, 0.08);

  /* Azul Adeslas: #0F77AE para tamaños grandes y superficies; la variante
     -ink es la que se usa en texto pequeño (6,1:1 sobre el papel). */
  --blue: #0F77AE;
  --blue-ink: #0A5E8C;
  --blue-deep: #084B70;
  --mist: #E4ECF1;
  --mist-2: #CFE0EA;

  /* Acentos de la estrella */
  --sun: #FBB81F;
  --sun-soft: #FCEBBD;
  --coral: #E84F1A;
  --coral-ink: #B23A0F;
  --green: #256B2A;
  --green-soft: #E2EDDD;

  /* Noche: secciones oscuras */
  --night: #0B1A2A;
  --night-2: #12283D;
  --night-3: #1A3550;
  --on-night: #F4EFE6;
  --on-night-2: #C5CFDA;
  --on-night-muted: #9AA8B8;
  --night-line: rgba(244, 239, 230, 0.16);
  --blue-night: #6CB8E4;

  /* Tipos */
  --f-display: 'Fraunces', 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
  --f-sans: 'Instrument Sans', 'Instrument Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Escala fluida 360 → 1440 px (utopia.fyi) */
  --t-2xs: clamp(0.69rem, 0.67rem + 0.08vw, 0.75rem);
  --t-xs: clamp(0.75rem, 0.73rem + 0.09vw, 0.8125rem);
  --t-sm: clamp(0.875rem, 0.85rem + 0.11vw, 0.9375rem);
  --t-base: clamp(1.0625rem, 1.03rem + 0.14vw, 1.15rem);
  --t-lg: clamp(1.125rem, 1.05rem + 0.33vw, 1.375rem);
  --t-xl: clamp(1.3rem, 1.17rem + 0.56vw, 1.75rem);
  --t-2xl: clamp(1.6rem, 1.33rem + 1.2vw, 2.4rem);
  --t-3xl: clamp(2.1rem, 1.55rem + 2.45vw, 3.75rem);
  --t-4xl: clamp(2.5rem, 1.6rem + 4vw, 5.5rem);
  --t-5xl: clamp(2.9rem, 1.4rem + 6.7vw, 7.5rem);

  /* Espacio */
  --gutter: clamp(1.25rem, 0.75rem + 2.4vw, 4.5rem);
  --max: 1400px;
  --sec: clamp(4.5rem, 3rem + 6vw, 8.75rem);
  --sec-s: clamp(3rem, 2rem + 4.5vw, 6rem);
  --gap: clamp(1rem, 0.7rem + 1.3vw, 2rem);

  /* Formas */
  --r-xs: 8px;
  --r-s: 12px;
  --r: 18px;
  --r-l: 26px;
  --r-xl: 36px;
  --pill: 999px;

  /* Sombras: tinta azulada, nunca negro puro */
  --sh-1: 0 1px 2px rgba(14, 27, 44, 0.05), 0 2px 6px rgba(14, 27, 44, 0.04);
  --sh-2: 0 2px 4px rgba(14, 27, 44, 0.04), 0 14px 34px -10px rgba(14, 27, 44, 0.16);
  --sh-3: 0 40px 90px -30px rgba(14, 27, 44, 0.35), 0 10px 24px -12px rgba(14, 27, 44, 0.12);

  /* Curvas */
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 76px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--blue);

  color-scheme: light;
}

/* ---- 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--paper);
}
html.js { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-base);
  line-height: 1.6;
  font-feature-settings: 'kern', 'liga', 'calt';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, h1, h2, h3, h4, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
strong, b { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--sun); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
address { font-style: normal; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 0.8em 1.2em;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--out);
}
.skip:focus { transform: none; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- 3. Tipografía ----------------------------------------------------------- */
h1, h2, h3, h4 { text-wrap: balance; font-weight: 600; line-height: 1.15; }
p, li, dd { text-wrap: pretty; }

.display, .title, .title-s, .h-xl {
  font-family: var(--f-display);
  font-weight: 380;
  font-variation-settings: 'opsz' 120;
  color: inherit;
  text-wrap: balance;
}
.display {
  font-size: var(--t-5xl);
  line-height: 0.94;
  letter-spacing: -0.035em;
}
.title {
  font-size: var(--t-3xl);
  line-height: 1.02;
  letter-spacing: -0.026em;
}
.title--xl {
  font-size: var(--t-4xl);
  line-height: 0.98;
  letter-spacing: -0.032em;
}
.title-s {
  font-size: var(--t-2xl);
  line-height: 1.08;
  letter-spacing: -0.018em;
}
.h-xl {
  font-size: var(--t-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 420;
}
.display em, .title em, .title-s em, .h-xl em, .serif-em {
  font-style: italic;
  font-weight: 340;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.on-night .display em, .on-night .title em, .on-night .title-s em { color: var(--blue-night); }
.serif { font-family: var(--f-display); font-variation-settings: 'opsz' 120; }

.lead {
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.lead strong { color: var(--ink); }
.small { font-size: var(--t-sm); line-height: 1.55; }
.tiny { font-size: var(--t-xs); line-height: 1.5; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

/* Etiqueta editorial: mono, mayúsculas, con índice opcional y una raya. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: '';
  width: 2.25em;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.kicker--plain::before { display: none; }
.kicker__n { color: var(--blue-ink); }
.on-night .kicker { color: var(--on-night-muted); }
.on-night .kicker__n { color: var(--sun); }

.mono {
  font-family: var(--f-mono);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
}

/* Enlace de texto con subrayado que crece */
.link {
  --c: currentColor;
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  color: var(--blue-ink);
  text-decoration: none;
  background: linear-gradient(var(--c), var(--c)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--out), color 0.2s;
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }
.link svg { width: 1em; height: 1em; transition: transform 0.45s var(--out); }
.link:hover svg { transform: translateX(3px); }
.link--ink { color: var(--ink); }
.on-night .link { color: var(--on-night); }

.prose a, .rich a, .lead a, .txt a { color: var(--blue-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.prose a:hover, .rich a:hover, .lead a:hover, .txt a:hover { text-decoration-color: currentColor; }
.on-night .rich a, .on-night .lead a { color: var(--on-night); }

/* ---- 4. Maquetación ----------------------------------------------------------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}
.wrap--m { max-width: 1120px; }
.wrap--s { max-width: 860px; }
.wrap--xs { max-width: 720px; }

.sec { padding-block: var(--sec); position: relative; }
/* Las secciones fuera de pantalla no se maquetan ni se pintan hasta que se
   acercan: la portada tiene miles de nodos y en un móvil lento se nota. */
.sec, .sec--s { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* Al saltar a un ancla se pinta todo una vez (site.js), o el destino se
   calcularía sobre alturas estimadas y el desplazamiento se quedaría corto. */
.cv-off .sec, .cv-off .sec--s { content-visibility: visible; }
.sec--s { padding-block: var(--sec-s); }
.sec--tight-top { padding-top: var(--sec-s); }
.sec--paper2 { background: var(--paper-2); }
.sec--card { background: var(--card); }
.sec--mist { background: var(--mist); }
.sec--night, .on-night {
  background: var(--night);
  color: var(--on-night);
}
.sec--night .lead, .on-night .lead { color: var(--on-night-2); }
.on-night strong, .on-night .lead strong { color: var(--on-night); }
/* Las tarjetas claras dentro de secciones noche vuelven a la paleta de día */
.on-night .form-card, .on-night .form-card strong { color: var(--ink); }
.on-night .form-card .link { color: var(--blue-ink); }
.on-night .form-card .muted { color: var(--muted); }
.sec--night .muted, .on-night .muted { color: var(--on-night-muted); }
.rule { border-top: 1px solid var(--line); }
.on-night .rule, .on-night hr { border-color: var(--night-line); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.stack > * + * { margin-top: var(--s, 1rem); }
/* Los hijos de una rejilla no deben ensancharla con su contenido (imágenes, botones) */
.hero__grid > *, .about > *, .consulta > *, .oficina > *, .faq > *, .contacto__grid > *, .dos-col > *, .lhero__grid > *, .prhero__grid > *, .legal > *, .tri__hero > *, .indice__grupo > *, .ftr__grid > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--g, 0.75rem); }

/* Cabecera de sección: etiqueta, título y entradilla en una retícula */
.shead { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.shead .lead { margin-top: 0.25rem; }
@media (min-width: 960px) {
  .shead--split {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
    align-items: start;
  }
  .shead--split > .kicker { grid-column: 1 / -1; }
  .shead--split .lead { margin: 0.6rem 0 0; }
}
.shead--center { text-align: center; justify-items: center; }
.shead--center .lead { margin-inline: auto; }

/* Fondo de isobatas: la textura náutica (scripts/draw-isobatas.mjs), un
   <svg><use> que hereda el color con currentColor. */
.iso {
  position: absolute;
  pointer-events: none;
  color: var(--blue);
  opacity: 0.38;
  overflow: visible;
}
.on-night .iso, .menu .iso, .mega__feat .iso, .acelera .iso { color: var(--blue-night); opacity: 0.26; }

/* ---- 5. Botones ---------------------------------------------------------------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  --bd: var(--bg);
  --hbg: var(--blue);
  --hfg: var(--white);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.9em 1.55em;
  border: 1px solid var(--bd);
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.4s var(--out), border-color 0.4s var(--out), transform 0.5s var(--out), box-shadow 0.4s var(--out);
}
.btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--hbg);
  transform: translateY(102%);
  transition: transform 0.55s var(--out);
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform 0.5s var(--out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { color: var(--hfg); border-color: var(--hbg); }
  .btn:hover::before { transform: none; }
  .btn:hover .i-arrow { transform: translateX(4px); }
}
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled], .btn[aria-busy='true'] { pointer-events: none; }

.btn--blue { --bg: var(--blue); --fg: var(--white); --hbg: var(--ink); }
.btn--sun { --bg: var(--sun); --fg: var(--ink); --hbg: var(--paper); --hfg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); --hbg: var(--ink); --hfg: var(--paper); }
.btn--paper { --bg: var(--paper); --fg: var(--ink); --hbg: var(--sun); --hfg: var(--ink); }
.btn--ghost-night { --bg: transparent; --fg: var(--on-night); --bd: var(--night-line); --hbg: var(--on-night); --hfg: var(--ink); }
.btn--wa { --hbg: #1FA855; }
.btn--sm { min-height: 42px; padding: 0.7em 1.15em; font-size: var(--t-xs); }
.btn--lg { min-height: 60px; padding: 1.05em 1.9em; font-size: var(--t-base); }
.btn--block { width: 100%; }

/* Estados de envío (los pone site.js) */
.btn .btn__spin { display: none; width: 1.1em; height: 1.1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar 0.7s linear infinite; }
.btn[data-state='loading'] .btn__spin { display: inline-block; }
.btn[data-state='loading'] .i-arrow { display: none; }
.btn[data-state='success'] { --bg: var(--green); --bd: var(--green); --fg: var(--white); }
@keyframes girar { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--out);
}
.icon-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } }

/* Distintivos */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.38em 0.8em;
  border-radius: var(--pill);
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--mist);
  color: var(--blue-deep);
}
.badge svg { width: 1.1em; height: 1.1em; }
.badge--sun { background: var(--sun); color: var(--ink); }
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.badge--green { background: var(--green-soft); color: var(--green); }

/* ---- 6. Cabecera ---------------------------------------------------------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  transition: transform 0.5s var(--out), background-color 0.4s, box-shadow 0.4s;
}
.hdr::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2);
  opacity: 1;
  transition: opacity 0.4s, background-color 0.4s, border-color 0.4s;
}
.js .hdr[data-top='true']::before { opacity: 0; }
.js .hdr[data-hidden='true'] { transform: translateY(-105%); }
.hdr__bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hdr__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.hdr__progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* Marca: brújula + logotipo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { width: 40px; height: 40px; border-radius: 11px; }
.brand__needle { transform-origin: 22px 22px; transform: rotate(var(--needle, 0deg)); transition: transform 0.7s var(--out); }
@media (hover: hover) { .brand:hover .brand__needle { transform: rotate(calc(var(--needle, 0deg) + 360deg)); transition: transform 1.1s var(--spring); } }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand__name i {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 380;
  letter-spacing: -0.01em;
  color: var(--blue-ink);
  margin-left: 0.12em;
}
.on-night .brand__name i, body[data-menu='true'] .hdr .brand__name i, .hdr[data-tone='night'] .brand__name i { color: var(--blue-night); }
.brand__tag {
  margin-top: 0.38rem;
  font-family: var(--f-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6em 0.85em;
  border-radius: var(--pill);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.25s, background-color 0.25s;
}
.nav__link svg { width: 14px; height: 14px; transition: transform 0.4s var(--out); }
.nav__link:hover, .nav__link[aria-current='true'], .nav__link[aria-current='page'] { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav__link[aria-current='true']::after, .nav__link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.25em;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--blue);
}
.nav__item--mega { position: relative; }
.nav__item--mega[data-open='true'] .nav__link svg { transform: rotate(180deg); }

.hdr__actions { display: flex; align-items: center; gap: 0.5rem; }
.hdr__actions .btn { min-height: 44px; }
.hdr__tel { display: none; }

/* Estado de la oficina, con el punto que late */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 400px) { .status { white-space: normal; line-height: 1.4; } }
.status__dot {
  flex-shrink: 0;
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.status[data-open='true'] .status__dot { background: #2DA44E; }
.status[data-open='true'] .status__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid #2DA44E;
  animation: latido 2.2s var(--out) infinite;
}
@keyframes latido { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.hdr .status { display: none; }

/* Megamenú */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(880px, 92vw);
  padding: 1.75rem;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-42%, -8px);
  transition: opacity 0.3s var(--out), transform 0.45s var(--out), visibility 0s linear 0.3s;
}
.mega::before { /* puente invisible para no perder el hover */
  content: '';
  position: absolute;
  left: 0; right: 0; top: -16px; height: 16px;
}
.nav__item--mega[data-open='true'] .mega,
.no-js .nav__item--mega:hover .mega,
.no-js .nav__item--mega:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-42%, 0);
  transition-delay: 0s;
}
.mega__col h3 {
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0.75rem 0.75rem;
}
.mega__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-s);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.2s;
}
.mega__link:hover { background: var(--paper-2); }
.mega__link svg { width: 18px; height: 18px; color: var(--blue); }
.mega__feat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--r);
  background: var(--night);
  color: var(--on-night);
  text-decoration: none;
  min-height: 100%;
}
.mega__feat .iso { inset: auto -70% -75% auto; width: 170%; aspect-ratio: 1; }
.mega__feat strong {
  position: relative;
  font-family: var(--f-display);
  font-weight: 380;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.mega__feat span { position: relative; font-size: var(--t-sm); color: var(--on-night-2); }
.mega__feat .link { position: relative; color: var(--sun); }
.mega__quiz {
  display: block;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r);
  border: 1px dashed var(--line);
  font-size: var(--t-sm);
  text-decoration: none;
  color: var(--ink-2);
}
.mega__quiz b { color: var(--ink); }
.mega__quiz:hover { border-color: var(--blue); }

/* Botón de menú (móvil) */
.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 44px;
  padding: 0 1rem 0 1.1rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.burger__lines { position: relative; width: 16px; height: 10px; }
.burger__lines::before, .burger__lines::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.5s var(--out), top 0.5s var(--out);
}
.burger__lines::before { top: 1px; }
.burger__lines::after { top: 7.5px; }
.burger[aria-expanded='true'] .burger__lines::before { top: 4.25px; transform: rotate(45deg); }
.burger[aria-expanded='true'] .burger__lines::after { top: 4.25px; transform: rotate(-45deg); }

/* Menú a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 1.5rem;
  background: var(--night);
  color: var(--on-night);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--in-out), visibility 0s linear 0.7s;
}
.menu[data-open='true'] { clip-path: inset(0 0 0 0); visibility: visible; transition-delay: 0s; }
.menu .iso { right: -40%; bottom: -10%; width: 120%; aspect-ratio: 1; }
.menu__list { position: relative; display: grid; gap: 0.15rem; margin-top: 1rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--night-line);
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.2rem + 3.5vw, 2.8rem);
  font-weight: 360;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--on-night);
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.menu__link small { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; color: var(--on-night-muted); }
.menu__sub { display: grid; gap: 0.1rem; padding: 0.75rem 0 1rem; }
.menu__sub a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0;
  font-size: var(--t-base);
  color: var(--on-night-2);
  text-decoration: none;
}
.menu__sub a svg { width: 18px; height: 18px; color: var(--blue-night); }
.menu__sub h3 { margin-top: 0.75rem; font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.menu__foot { position: relative; margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.menu__foot .status { color: var(--on-night-muted); }
.menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.js .menu__list > * { opacity: 0; transform: translateY(24px); transition: opacity 0.5s var(--out), transform 0.7s var(--out); }
.js .menu[data-open='true'] .menu__list > * { opacity: 1; transform: none; transition-delay: calc(0.18s + var(--i, 0) * 0.05s); }
/* Sobre bandas oscuras la cabecera pasa a tono noche (lo decide site.js). */
.hdr[data-tone='night'] { color: var(--on-night); }
.hdr[data-tone='night']::before { background-color: color-mix(in srgb, var(--night) 93%, transparent); border-bottom-color: var(--night-line); }
.hdr[data-tone='night'] .brand, .hdr[data-tone='night'] .nav__link { color: var(--on-night); }
.hdr[data-tone='night'] .nav__link:hover { background: color-mix(in srgb, var(--on-night) 10%, transparent); }
.hdr[data-tone='night'] .brand__tag, .hdr[data-tone='night'] .status { color: var(--on-night-muted); }
.hdr[data-tone='night'] .icon-btn { color: var(--on-night); border-color: var(--night-line); }
.hdr[data-tone='night'] .hdr__wa, .hdr[data-tone='night'] .burger { background: var(--paper); color: var(--ink); }
.hdr[data-tone='night'] .hdr__progress span { background: var(--blue-night); }
.hdr .brand, .burger { transition: color 0.4s, background-color 0.4s; }
.hdr__wa { transition: color 0.4s var(--out), background-color 0.4s, border-color 0.4s var(--out), transform 0.5s var(--out), box-shadow 0.4s var(--out); }
body[data-menu='true'] { overflow: hidden; }
body[data-menu='true'] .hdr { color: var(--on-night); }
body[data-menu='true'] .hdr::before { opacity: 0; }
body[data-menu='true'] .hdr .brand { color: var(--on-night); }
body[data-menu='true'] .hdr .brand__tag { color: var(--on-night-muted); }
body[data-menu='true'] .hdr .icon-btn { color: var(--on-night); border-color: var(--night-line); }
body[data-menu='true'] .burger { background: var(--paper); color: var(--ink); }
body[data-menu='true'] .hdr__wa { visibility: hidden; }

@media (min-width: 640px) {
  .hdr__tel { display: inline-grid; }
}
@media (min-width: 1180px) {
  .nav { display: block; }
  .burger, .menu { display: none; }
  .hdr .status { display: inline-flex; }
}
@media (max-width: 1179px) {
  .hdr .status { display: none !important; }
}
@media (max-width: 520px) {
  .hdr__wa { width: 44px; padding: 0; }
  .hdr__wa span { display: none; }
  .hdr__wa svg { width: 18px; height: 18px; }
}
@media (max-width: 400px) {
  .brand__tag { display: none; }
  .burger { padding: 0 0.9rem; }
}
@media (max-width: 359px) {
  .brand { gap: 0.5rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1rem; }
  .burger__txt { display: none; }
  .burger { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 420px) {
  .btn--lg { white-space: normal; text-align: center; }
}

/* Migas de pan */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: 1.1rem 0;
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--blue-ink); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: 0.5; }
.crumbs [aria-current] { color: var(--ink); }

/* ---- 7. Portada · hero ---------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  overflow: clip;
}
.hero .iso { width: min(1100px, 140vw); aspect-ratio: 1; right: -28%; top: -18%; opacity: 0.24; }
.hero__grid { position: relative; display: grid; gap: 2.5rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero__title { margin-top: 1.75rem; position: relative; z-index: 2; }
.hero__title .ln { display: block; }
.hero__title .ln--indent { padding-left: 0.9em; }
.hero__body { display: grid; gap: 1.75rem; margin-top: 2rem; max-width: 34rem; }
.hero__body p { font-size: var(--t-lg); color: var(--ink-2); line-height: 1.55; }
.hero__body p strong { color: var(--ink); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--t-sm); color: var(--muted); }
.hero__checks li { display: inline-flex; align-items: center; gap: 0.45em; }
.hero__checks svg { width: 16px; height: 16px; color: var(--green); }
.hero__phone { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 600; text-decoration: none; color: var(--ink); }
.hero__phone span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.hero__phone svg { width: 16px; height: 16px; }
.hero__phone:hover span:first-child { background: var(--ink); color: var(--paper); }
.hero__phone span + span { display: grid; place-items: start; width: auto; height: auto; border: 0; border-radius: 0; line-height: 1.15; }
.hero__phone small { font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.hero__media { position: relative; justify-self: center; width: min(100%, 520px); }
.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px var(--r-l) var(--r-l);
  aspect-ratio: 4 / 5;
  background: var(--paper-3);
  isolation: isolate;
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.arch::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(14, 27, 44, 0.08);
  pointer-events: none;
}
.hero__sello {
  position: absolute;
  left: max(-6%, -1.5rem);
  bottom: 16%;
  width: clamp(104px, 9vw + 40px, 150px);
  aspect-ratio: 1;
  z-index: 3;
}
.sello { position: relative; width: 100%; height: 100%; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: var(--sh-2); }
.sello__txt { position: absolute; inset: 0; animation: girar 26s linear infinite; }
.sello__txt text { font-family: var(--f-mono); font-size: 8.6px; letter-spacing: 0.1em; text-transform: uppercase; fill: currentColor; }
.sello__aguja { position: absolute; inset: 31%; }
.hero__ficha {
  position: absolute;
  right: -4%;
  bottom: -5%;
  z-index: 3;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--sh-2);
  max-width: 82%;
}
.hero__ficha b { font-size: var(--t-sm); }
.hero__ficha span { font-size: var(--t-xs); color: var(--muted); }
.hero__ficha .mono { color: var(--blue-ink); font-size: var(--t-2xs); }

.hero__foot {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding-right: 1rem; }
.stat + .stat { padding-left: clamp(0.75rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.stat__n {
  display: block;
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 340;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__l { display: block; margin-top: 0.5rem; font-size: var(--t-xs); color: var(--muted); line-height: 1.35; }
.on-night .stat + .stat { border-color: var(--night-line); }
.on-night .stat__l { color: var(--on-night-muted); }

.scroll-cue {
  display: none;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-mono);
  font-size: var(--t-2xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-cue i { position: relative; display: block; width: 1px; height: 42px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ink); animation: caer 2.2s var(--in-out) infinite; }
@keyframes caer { to { top: 100%; } }

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .hero__text { grid-column: 1 / span 7; padding-top: clamp(1rem, 3vw, 3rem); }
  .hero__title { width: 128%; }
  .hero__media { grid-column: 8 / span 5; justify-self: end; margin-top: 1rem; }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
  .scroll-cue { display: inline-flex; }
}

/* Marquesina */
.marquee {
  --dur: 42s;
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-block: 1px solid var(--line);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: deslizar var(--dur) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2.5rem);
  padding-right: clamp(1.25rem, 2vw, 2.5rem);
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.6rem);
  font-weight: 340;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.marquee__item em { font-style: italic; color: var(--blue); }
.marquee__item > span { white-space: nowrap; }
.marquee__item svg { width: 0.6em; height: 0.6em; color: var(--sun); }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* Etalonaje común de las fotos de Victoria: el fondo gris de estudio se
   calienta un punto hacia el papel con una capa en multiplicar. */
.foto-calida { position: relative; isolation: isolate; }
.foto-calida::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, #F3E6D2 0%, #EFE3D3 60%, #E9DCCB 100%);
  mix-blend-mode: multiply;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.vframe__play, .oficina__coord { z-index: 2; }
.vframe[data-playing='true']::after { opacity: 0; }

/* ---- 8. Manifiesto + Victoria ---------------------------------------------------- */
.manifiesto {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 340;
  font-size: clamp(1.9rem, 1.2rem + 3.3vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 22ch;
}
.manifiesto em { font-style: italic; color: var(--blue); }
.js .manifiesto .w { opacity: var(--o, 0.5); transition: opacity 0.25s linear; }
.js .manifiesto em .w { opacity: 1; }
.firma { display: flex; align-items: center; gap: 1rem; margin-top: 2.25rem; }
/* Avatar de Victoria. El que ocupa sitio en la fila es el <picture>: sin
   flex: none se estrechaba junto a textos largos y la foto salía ovalada. */
.avatar { flex: none; display: block; width: var(--av, 52px); height: var(--av, 52px); border-radius: 50%; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.firma .avatar { --av: 56px; }
.firma b { display: block; font-size: var(--t-sm); }
.firma span { font-size: var(--t-xs); color: var(--muted); }

.about { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); margin-top: clamp(4rem, 3rem + 5vw, 8rem); }
.about__video { position: relative; width: min(100%, 420px); justify-self: center; }
.vframe {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  aspect-ratio: 9 / 16;
  background: var(--night);
  box-shadow: var(--sh-3);
}
.vframe video, .vframe img { width: 100%; height: 100%; object-fit: cover; }
/* El póster es una imagen diferida (AVIF); el vídeo no se toca hasta que se pulsa. */
.vframe picture { position: absolute; inset: 0; }
.vframe video { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; }
.vframe[data-playing='true'] video { opacity: 1; }
.vframe__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: end;
  gap: 1rem;
  padding: 2rem;
  color: var(--paper);
  background: linear-gradient(180deg, transparent 45%, rgba(11, 26, 42, 0.75));
  transition: opacity 0.4s;
}
.vframe__btn {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s var(--spring), background-color 0.3s;
}
.vframe__btn svg { width: 26px; height: 26px; margin-left: 4px; }
.vframe__play:hover .vframe__btn { transform: scale(1.08); background: var(--sun); }
.vframe__cap { display: grid; justify-items: center; gap: 0.2rem; text-align: center; }
.vframe__cap b { font-family: var(--f-display); font-weight: 380; font-size: 1.5rem; letter-spacing: -0.015em; }
.vframe__cap span { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.vframe[data-playing='true'] .vframe__play { opacity: 0; pointer-events: none; }
.about__text { display: grid; gap: 1.25rem; align-content: center; }
.about__text p { color: var(--ink-2); font-size: var(--t-lg); }
.about__text p strong { color: var(--ink); }
.about__creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 1rem; border-radius: var(--r); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.about__creds div { padding: 1rem 1.15rem; background: var(--paper); }
.about__creds dt { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.about__creds dd { margin-top: 0.25rem; font-weight: 600; font-size: var(--t-sm); }
@media (min-width: 960px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .about__video { justify-self: start; }
}

/* ---- 9. Valores (por qué con Victoria) ------------------------------------------- */
.values { display: grid; border-top: 1px solid var(--line); }
.value {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.value__n { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--blue-ink); padding-top: 0.5rem; }
.value__ic { display: none; }
.value h3 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 380;
  font-size: var(--t-2xl);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.value p { grid-column: 2; color: var(--ink-2); max-width: 58ch; }
.value .badge { justify-self: start; grid-column: 2; }
@media (min-width: 900px) {
  .value { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 6fr) 3rem; align-items: start; column-gap: var(--gap); }
  .value p { grid-column: 3; }
  .value .badge { grid-column: 2; grid-row: 2; margin-top: 0.75rem; }
  .value__ic { display: grid; place-items: center; grid-column: 4; grid-row: 1; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); transition: background-color 0.4s, color 0.4s, transform 0.6s var(--out); }
  .value__ic svg { width: 20px; height: 20px; }
  .value:hover .value__ic { background: var(--ink); color: var(--sun); transform: rotate(-12deg); }
}
.nota-coste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-l);
  background: var(--sun-soft);
}
.nota-coste p { font-size: var(--t-lg); max-width: 52ch; }

/* ---- 10. Índice por necesidad ----------------------------------------------------- */
.indice { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.indice__grupo { display: grid; gap: 1rem; }
.indice__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.indice__head h3 { font-family: var(--f-mono); font-weight: 400; font-size: var(--t-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.indice__head h2 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 400; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; }
.indice__head p { max-width: 34ch; }
.fila__ic--n { background: transparent; border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--t-2xs); color: var(--blue-ink); }
.fila:hover .fila__ic--n { border-color: var(--blue); }
.indice__list { border-top: 1px solid var(--ink); }
.fila {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 1.15rem 0.25rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  isolation: isolate;
}
.fila::before {
  content: '';
  position: absolute;
  inset: 0 -0.75rem;
  z-index: -1;
  border-radius: var(--r-s);
  background: var(--card);
  transform: scaleY(0.4);
  opacity: 0;
  transition: transform 0.45s var(--out), opacity 0.3s;
}
.fila:hover::before, .fila:focus-visible::before { transform: none; opacity: 1; }
.fila__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); color: var(--blue-deep); transition: background-color 0.35s, color 0.35s; }
.fila__ic svg { width: 20px; height: 20px; }
.fila:hover .fila__ic { background: var(--blue); color: var(--white); }
.fila__t {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 380;
  font-size: clamp(1.4rem, 1.15rem + 1vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fila__d { grid-column: 2; font-size: var(--t-sm); color: var(--muted); line-height: 1.45; }
.fila__go { grid-row: 1 / span 2; grid-column: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--out), border-color 0.35s; }
.fila__go svg { width: 16px; height: 16px; }
.fila:hover .fila__go { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(-45deg); }
@media (min-width: 900px) {
  .indice__grupo { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--gap); align-items: start; }
  .indice__head { position: sticky; top: calc(var(--header-h) + 1.5rem); flex-direction: column; gap: 0.75rem; padding-top: 1.25rem; }
  .fila { grid-template-columns: auto minmax(0, 5fr) minmax(0, 5fr) auto; column-gap: 1.5rem; }
  .fila__d { grid-column: 3; grid-row: 1; font-size: var(--t-base); }
  .fila__go { grid-row: 1; grid-column: 4; }
}

/* ---- 11. Pestañas ------------------------------------------------------------------- */
.tabs {
  position: relative;
  display: flex;
  gap: 0.25rem;
  width: max-content;
  max-width: 100%;
  padding: 0.3rem;
  border-radius: var(--pill);
  background: var(--paper-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs[data-fade='r'] { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 3rem), transparent); }
.tabs[data-fade='l'] { -webkit-mask-image: linear-gradient(270deg, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(270deg, #000 calc(100% - 3rem), transparent); }
.tabs[data-fade='lr'] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 3rem, #000 calc(100% - 3rem), transparent); }
.tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.6em 1.15em;
  border-radius: var(--pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.35s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--paper); }
.tabs__ink {
  position: absolute;
  z-index: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0;
  width: 0;
  border-radius: var(--pill);
  background: var(--ink);
  transition: transform 0.55s var(--out), width 0.55s var(--out);
}
.no-js .tab[aria-selected='true'], .tabs:not([data-ready]) .tab[aria-selected='true'] { background: var(--ink); }
.tab[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.tab[aria-pressed] { transition: color 0.35s, background-color 0.35s; }
.tabpanel { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.tabpanel__intro { max-width: 70ch; margin-bottom: 1.75rem; color: var(--ink-2); }
.on-night .tabs { background: var(--night-2); }
.on-night .tab { color: var(--on-night-2); }
.on-night .tabs__ink { background: var(--paper); }
.on-night .tab[aria-selected='true'] { color: var(--ink); }

/* ---- 12. Tarjetas ------------------------------------------------------------------- */
.cards { display: grid; gap: clamp(1rem, 0.8rem + 0.8vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 1.2rem + 0.8vw, 2rem);
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line-2);
  transition: transform 0.6s var(--out), box-shadow 0.6s var(--out), border-color 0.3s;
}
@media (hover: hover) {
  .pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line); }
}
.pcard__top { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 1.5rem; }
.pcard__brand { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pcard__name {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 400;
  font-size: clamp(1.6rem, 1.35rem + 0.9vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}
.pcard__name small { display: block; margin-bottom: 0.4rem; font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pcard__sub { font-size: var(--t-sm); font-weight: 600; color: var(--blue-ink); }
.pcard__desc { font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; }
.pcard__ideal {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-s);
  background: var(--paper-2);
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--ink-2);
}
.pcard__ideal svg { width: 16px; height: 16px; margin-top: 0.15em; color: var(--blue); }
.pcard__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: auto; padding-top: 0.5rem; }
.pcard__price { display: flex; align-items: baseline; gap: 0.35rem; margin-top: auto; }
.pcard__price small { font-size: var(--t-xs); color: var(--muted); }
.pcard__price b { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.pcard__price span { font-size: var(--t-sm); color: var(--muted); }
.pcard--link { text-decoration: none; color: inherit; }
.pcard--link .pcard__go { position: absolute; top: 1.5rem; right: 1.5rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--out); }
.pcard--link .pcard__go svg { width: 16px; height: 16px; }
.pcard--link:hover .pcard__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }

.pcard--feat { background: var(--night); color: var(--on-night); border-color: var(--night); }
.pcard--feat .pcard__sub { color: var(--sun); }
.pcard--feat .pcard__desc { color: var(--on-night-2); }
.pcard--feat .pcard__name small, .pcard--feat .pcard__brand, .pcard--feat .pcard__price small, .pcard--feat .pcard__price span { color: var(--on-night-muted); }
.pcard--feat .pcard__ideal { background: var(--night-2); color: var(--on-night-2); }
.pcard--feat .pcard__ideal svg { color: var(--sun); }
.pcard--feat .checks li { color: var(--on-night-2); }
.pcard--feat .checks li::before { background-color: rgba(251, 184, 31, 0.16); color: var(--sun); }
.pcard--feat .link { color: var(--sun); }
.pcard--feat .btn { --bg: var(--paper); --fg: var(--ink); --hbg: var(--sun); --hfg: var(--ink); }
.pcard--feat .pcard__go { border-color: var(--night-line); }
.pcard--wide { grid-column: 1 / -1; }

/* Listas de comprobación con iconos dibujados en CSS */
.checks { display: grid; gap: 0.55rem; }
.checks li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--t-sm);
  line-height: 1.5;
  color: var(--ink-2);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23256B2A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.checks li.no::before { background: rgba(232, 79, 26, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B23A0F' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 56% no-repeat; }
.pcard--feat .checks li::before, .on-night .checks li::before { background: rgba(251, 184, 31, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBB81F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.checks--lg li { font-size: var(--t-base); padding-left: 2.2rem; }
.checks--lg li::before { width: 1.45rem; height: 1.45rem; top: 0.1em; }
.checks--line li { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
.checks--line li::before { top: 1em; }
.checks--line li:first-child { border-top: 1px solid var(--line); }

/* Accesos a otros seguros (fichas pequeñas) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); gap: 0.75rem; }
.tile {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: background-color 0.35s, color 0.35s, transform 0.5s var(--out), border-color 0.35s;
}
.tile svg { width: 26px; height: 26px; color: var(--blue); transition: color 0.35s, transform 0.6s var(--spring); }
.tile:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-3px); }
.tile:hover svg { color: var(--sun); transform: scale(1.12) rotate(-6deg); }

/* ---- 13. Trianuales (sección noche) -------------------------------------------------- */
.tri { overflow: clip; }
.tri .iso { width: min(1200px, 160vw); aspect-ratio: 1; left: -30%; bottom: -45%; }
.tri__hero { position: relative; display: grid; gap: 2rem; align-items: end; }
.tri__36 {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 300;
  font-size: clamp(9rem, 5rem + 22vw, 24rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--sun);
  font-variant-numeric: lining-nums;
}
.tri__36 small { display: block; margin-top: 1.25rem; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); line-height: 1.4; }
.tri__razones { position: relative; display: grid; gap: 1px; margin-top: clamp(3rem, 2rem + 3vw, 5rem); background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--r-l); overflow: hidden; }
.tri__razon { display: grid; gap: 0.6rem; padding: 1.75rem; background: var(--night); }
.tri__razon svg { width: 26px; height: 26px; color: var(--sun); }
.tri__razon b { font-size: var(--t-lg); }
.tri__razon span { font-size: var(--t-sm); color: var(--on-night-2); }
.tri__cards { position: relative; display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem;
  border-radius: var(--r-l);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  color: var(--on-night);
  text-decoration: none;
  transition: transform 0.6s var(--out), background-color 0.4s, border-color 0.4s;
}
.tcard:hover { transform: translateY(-4px); background: var(--night-3); border-color: rgba(251, 184, 31, 0.5); }
.tcard h3 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; }
.tcard p { font-size: var(--t-sm); color: var(--on-night-2); }
.tcard .checks li { color: var(--on-night-2); }
.tcard__edad { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--night-line); font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night-muted); display: flex; justify-content: space-between; align-items: center; gap: 1rem; line-height: 1.4; }
.tcard__go { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--night-line); }
.tcard--feat .tcard__go { border-color: rgba(14, 27, 44, 0.25); }
.tcard__edad svg { width: 16px; height: 16px; color: var(--sun); transition: transform 0.5s var(--out); }
.tcard:hover .tcard__edad svg { transform: translateX(4px); }
.tcard--feat { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.tcard--feat:hover { background: #FFC43D; border-color: #FFC43D; }
.tcard--feat p, .tcard--feat .checks li, .tcard--feat .tcard__edad { color: var(--ink-2); }
.tcard--feat .tcard__edad { border-color: rgba(14, 27, 44, 0.18); }
.tcard--feat .tcard__edad svg { color: var(--ink); }
.tcard--feat .checks li::before { background: rgba(14, 27, 44, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1B2C' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.tcard--feat .badge { background: var(--ink); color: var(--sun); }
.tcard > .badge, .tcard > .mono { align-self: flex-start; }
.tri__edu { position: relative; display: grid; gap: 1rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.tri__edu > div { padding: 1.75rem; border-radius: var(--r-l); border: 1px solid var(--night-line); }
.tri__edu h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-lg); margin-bottom: 0.6rem; }
.tri__edu h3 svg { width: 20px; height: 20px; color: var(--sun); }
.tri__edu p { color: var(--on-night-2); font-size: var(--t-sm); }
@media (min-width: 900px) {
  .tri__hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .tri__razones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tri__edu { grid-template-columns: 1fr 1fr; }
}

/* ---- 14. Cuestionario ------------------------------------------------------------- */
.quiz {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
}
.quiz__bars { display: flex; gap: 0.35rem; margin-bottom: 2rem; }
.quiz__bars div { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--paper-3); overflow: hidden; }
.quiz__bars i { position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--out); }
.quiz__bars .is-done i { transform: none; }
.quiz__bars .is-current i { transform: scaleX(0.35); background: var(--sun); }
.quiz__q {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 380;
  font-size: var(--t-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.quiz__opts { display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .quiz__opts { grid-template-columns: 1fr 1fr; } }
.quiz__opt {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 64px;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  font-weight: 500;
  font-size: var(--t-sm);
  line-height: 1.35;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--out);
}
.quiz__opt kbd { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--t-2xs); color: var(--muted); transition: inherit; }
.quiz__opt svg { width: 20px; height: 20px; color: var(--blue); }
.quiz__opt:hover { border-color: var(--ink); transform: translateX(3px); }
.quiz__opt:hover kbd { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quiz__back { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.quiz__back:hover { color: var(--blue-ink); }
.quiz__back[data-hidden='true'] { visibility: hidden; }
.quiz__count { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.quiz__res { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 0.5rem; }
.quiz__res h3 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-3xl); line-height: 1; letter-spacing: -0.03em; }
.quiz__res p { max-width: 54ch; color: var(--ink-2); }
.quiz__res .row { justify-content: center; }

/* ---- 15. Formularios -------------------------------------------------------------- */
.form-card {
  position: relative;
  padding: clamp(1.4rem, 1rem + 1.8vw, 2.5rem);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-2);
}
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field__label, .label { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.field__label .req, .req { color: var(--coral-ink); }
.field__hint { font-size: var(--t-xs); color: var(--muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1B2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}
.input::placeholder, .textarea::placeholder { color: #8A929C; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(14, 27, 44, 0.3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 119, 174, 0.16); }
.input[aria-invalid='true'], .select[aria-invalid='true'], .is-invalid { border-color: var(--coral) !important; box-shadow: 0 0 0 4px rgba(232, 79, 26, 0.14) !important; }
.input--short { max-width: 9rem; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--t-xs);
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0.05rem 0 0;
  border-radius: 6px;
  border: 1.5px solid rgba(14, 27, 44, 0.35);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input::after { content: ''; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform 0.35s var(--spring); }
.check input:checked { background: var(--blue); border-color: var(--blue); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.check a { color: var(--blue-ink); }
.check strong { color: var(--ink); }

.alert {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-s);
  background: #FCE6DD;
  color: #7A2608;
  font-size: var(--t-sm);
  line-height: 1.45;
  border: 1px solid rgba(232, 79, 26, 0.3);
}
.alert a { color: inherit; font-weight: 600; }
.ok {
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-s);
  background: var(--green-soft);
  color: #1D5121;
  font-size: var(--t-sm);
  border: 1px solid rgba(37, 107, 42, 0.25);
}
.ok a { color: inherit; font-weight: 600; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Elección de ramo: losetas con icono */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.6rem;
  min-height: 104px;
  padding: 1rem 0.5rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 600;
  font-size: var(--t-sm);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.5s var(--out);
}
.choice svg { width: 28px; height: 28px; color: var(--blue); transition: color 0.3s, transform 0.6s var(--spring); }
.choice:hover { border-color: var(--ink); transform: translateY(-2px); }
.choice:hover svg { transform: scale(1.1); }
.choice[aria-checked='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice[aria-checked='true'] svg { color: var(--sun); }

.step { display: grid; gap: 1.25rem; }
.step + .step { margin-top: 1.25rem; }
.step__head { display: grid; gap: 0.35rem; }
.step__n { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-ink); }
.step__t { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 400; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; }
.step__d { font-size: var(--t-sm); color: var(--muted); }
.js .step[data-step-hidden='true'] { display: none; }

.acelera {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--r-l);
  background: var(--night);
  color: var(--on-night);
}
.acelera .iso { right: -30%; top: -60%; width: 90%; aspect-ratio: 1; }
.acelera > :not(.iso) { position: relative; }
.acelera h3 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; }
.acelera p { color: var(--on-night-2); font-size: var(--t-sm); }
.acelera p strong { color: var(--on-night); }
.acelera__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  transition: background-color 0.3s, transform 0.4s var(--out);
}
.acelera__btn:hover { background: #FFC43D; }
.acelera__btn svg { width: 20px; height: 20px; transition: transform 0.5s var(--out); }
.acelera__btn[aria-expanded='true'] svg { transform: rotate(180deg); }
.acelera small { font-size: var(--t-xs); color: var(--on-night-muted); }
.fechas { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fechas .select { width: auto; min-width: 5.5rem; min-height: 46px; font-size: 0.95rem; }
.persona { display: grid; gap: 0.5rem; padding: 0.85rem 1rem; border-radius: var(--r-s); background: var(--paper); }
.persona > span { font-size: var(--t-xs); font-weight: 600; color: var(--muted); }
.aviso-ley { padding: 1rem 1.15rem; border-radius: var(--r-s); background: var(--mist); font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }
.aviso-ley strong { color: var(--ink); }

.exito { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: clamp(1rem, 1rem + 2vw, 2.5rem) 0.5rem; }
.exito__ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green); color: var(--white); }
.exito__ic svg { width: 44px; height: 44px; }
.exito__ic path, .exito__ic circle { stroke-dasharray: 100; stroke-dashoffset: 100; animation: trazo 0.9s var(--out) 0.15s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.exito h3 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -0.02em; }
.exito p { max-width: 50ch; color: var(--ink-2); }

/* Persona que atiende: avatar + texto, junto a los formularios */
.quien { display: flex; align-items: center; gap: 0.85rem; }
.quien .avatar { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); }
.quien b { display: block; font-size: var(--t-sm); line-height: 1.3; }
.quien span { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }

/* ---- 16. Consulta de precio (portada) --------------------------------------------- */
.consulta { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
.consulta__aside { display: grid; gap: 1.5rem; align-content: start; }
.consulta__aside .checks { margin-top: 0.5rem; }
@media (min-width: 1024px) {
  .consulta { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .consulta__aside { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---- 17. Cómo trabajamos ------------------------------------------------------------ */
.pasos { position: relative; display: grid; gap: 2rem; counter-reset: paso; }
.paso { position: relative; display: grid; gap: 0.75rem; padding-top: 1.5rem; }
.paso::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--line);
}
.paso::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 1px;
  width: 100%;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--trazo, 1));
}
.js .paso::after { --trazo: 0; transition: transform 1.2s var(--out) calc(var(--i, 0) * 0.15s); }
.js .pasos.is-in .paso::after { --trazo: 1; }
.paso__n { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 300; font-size: clamp(3.25rem, 2.5rem + 3vw, 5.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.paso h3 { font-size: var(--t-lg); }
.paso p { font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 720px) { .pasos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pasos { grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); } }

/* ---- 18. Reseñas -------------------------------------------------------------------- */
.reviews { position: relative; }
.reviews__vp { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.reviews__track { display: flex; gap: 1.25rem; will-change: transform; touch-action: pan-y; }
.review {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line-2);
  user-select: none;
}
.review__stars { display: flex; gap: 2px; color: var(--sun); }
.review__stars svg { width: 18px; height: 18px; }
.review blockquote {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 360;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem);
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.review blockquote strong { font-weight: 500; background: linear-gradient(transparent 62%, var(--sun-soft) 62%); }
.review__who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.review__ini { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mist); color: var(--blue-deep); font-family: var(--f-display); font-size: 1.15rem; }
.review__who b { display: block; font-size: var(--t-sm); }
.review__who span { font-size: var(--t-xs); color: var(--muted); }
.reviews__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.reviews__dots { display: flex; gap: 0.4rem; }
.reviews__dots button { width: 28px; height: 28px; display: grid; place-items: center; }
.reviews__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 8px; background: var(--paper-3); transition: width 0.5s var(--out), background-color 0.3s; }
.reviews__dots button[aria-current='true']::before { width: 26px; background: var(--ink); }
.reviews__arrows { display: flex; gap: 0.5rem; }
.reviews__arrows button { width: 52px; height: 52px; }
#testimonios-prev svg { transform: rotate(180deg); }

/* ---- 19. Oficina ---------------------------------------------------------------------- */
.oficina { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
.oficina__foto { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.oficina__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.oficina__coord { position: absolute; left: 1.25rem; bottom: 1.25rem; padding: 0.55rem 0.85rem; border-radius: var(--pill); background: rgba(244, 239, 230, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.06em; }
.canales { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.canal { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1.25rem 1.4rem; background: var(--paper); }
.canal svg { grid-row: span 2; width: 22px; height: 22px; color: var(--blue); margin-top: 0.15rem; }
.canal b { font-size: var(--t-base); }
.canal span { font-size: var(--t-sm); color: var(--ink-2); }
.horario { margin-top: 1.5rem; padding: 1.5rem 1.6rem; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line-2); }
.horario__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.horario__head h3 { font-size: var(--t-base); display: flex; align-items: center; gap: 0.5rem; }
.horario__head h3 svg { width: 18px; height: 18px; color: var(--blue); }
.horario dl { display: grid; }
.horario dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--line); font-size: var(--t-sm); }
.horario dl > div:last-child { border-bottom: 0; }
.horario dt { color: var(--ink-2); }
.horario dd { font-family: var(--f-mono); font-size: var(--t-xs); font-variant-numeric: tabular-nums; color: var(--ink); }
.horario dl > div[data-today='true'] { font-weight: 600; }
.horario dl > div[data-today='true'] dt::after { content: ' · hoy'; color: var(--blue-ink); font-weight: 600; }
.zonas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.zona { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.45em 0.9em; border-radius: var(--pill); border: 1px solid var(--line); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.zona svg { width: 14px; height: 14px; color: var(--blue); }
.zona--sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
@media (min-width: 960px) {
  .oficina { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .oficina__foto { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---- 20. Acordeones (FAQ y coberturas) ------------------------------------------------ */
.faq { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.accs { border-top: 1px solid var(--ink); }
.acc { border-bottom: 1px solid var(--line); }
.acc__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  font-weight: 600;
  font-size: var(--t-lg);
  line-height: 1.35;
  transition: color 0.2s;
}
.acc__q:hover { color: var(--blue-ink); }
.acc__q small { display: block; margin-top: 0.3rem; font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
.acc__i { position: relative; flex-shrink: 0; width: 32px; height: 32px; margin-top: -0.1rem; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--out); }
.acc__i::before, .acc__i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform 0.5s var(--out); }
.acc__i::after { transform: rotate(90deg); }
.acc[open] .acc__i { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.acc[open] .acc__i::after { transform: rotate(0deg); }
.acc__a { padding: 0 3rem 1.5rem 0; color: var(--ink-2); font-size: var(--t-base); line-height: 1.65; }
.acc__a > * + * { margin-top: 0.85rem; }
.acc__a strong { color: var(--ink); }
.acc--box { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding-inline: 1.4rem; }
.acc--box + .acc--box { margin-top: 0.75rem; }
.acc--box .acc__a { padding-right: 0; }
.js .acc[data-animating] { overflow: hidden; }

/* ---- 21. Contacto + pie --------------------------------------------------------------- */
.contacto { position: relative; overflow: clip; }
.contacto .iso { width: min(1100px, 150vw); aspect-ratio: 1; right: -35%; top: -25%; }
.contacto__grid { position: relative; display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); }
.contacto__foto { position: relative; width: clamp(120px, 10vw + 60px, 180px); aspect-ratio: 3 / 4; border-radius: 999px; overflow: hidden; background: var(--paper-3); }
.contacto__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.vias { display: grid; margin-top: 2rem; border-top: 1px solid var(--night-line); }
.via { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--night-line); color: var(--on-night); text-decoration: none; transition: padding 0.5s var(--out), color 0.3s; }
.via span { display: grid; gap: 0.15rem; }
.via small { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.via b { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 360; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem); letter-spacing: -0.015em; line-height: 1.2; word-break: break-word; }
.via svg { width: 20px; height: 20px; color: var(--sun); transition: transform 0.5s var(--out); }
a.via:hover { padding-left: 0.6rem; color: var(--sun); }
a.via:hover svg { transform: rotate(-45deg); }
.contacto .form-card { color: var(--ink); }
@media (min-width: 1024px) {
  .contacto__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: start; }
}

.ftr { position: relative; overflow: clip; padding-top: clamp(4rem, 3rem + 4vw, 7rem); background: var(--night); color: var(--on-night-2); font-size: var(--t-sm); }
.ftr .iso { width: min(1000px, 140vw); aspect-ratio: 1; left: -25%; top: -30%; opacity: 0.12; }
.ftr__grid { position: relative; display: grid; gap: 2.5rem; }
.ftr__brand p { margin-top: 1.25rem; max-width: 34ch; line-height: 1.6; }
.ftr .brand, .ftr .brand__name { color: var(--on-night); }
.ftr .brand__tag { color: var(--on-night-muted); }
.ftr__sca { display: inline-flex; align-items: center; gap: 0.9rem; margin-top: 1.5rem; padding: 0.7rem 1rem; border-radius: var(--r-s); background: var(--white); }
.ftr__sca span { font-family: var(--f-mono); font-size: 0.6rem; line-height: 1.35; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ftr__sca img { width: 150px; height: auto; }
.ftr h2 { margin-bottom: 1rem; font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-night-muted); }
.ftr h2 + ul + h2 { margin-top: 2rem; }
.ftr ul { display: grid; gap: 0.6rem; list-style: none; padding: 0; }
.ftr .link { color: var(--on-night); }
.ftr a { color: var(--on-night); text-decoration: none; }
.ftr a:hover { color: var(--sun); }
.ftr__contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.ftr__contact svg { width: 16px; height: 16px; margin-top: 0.25em; color: var(--blue-night); }
.ftr__contact small { color: var(--on-night-muted); }
.ftr__legal { position: relative; display: grid; gap: 1.5rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-block: 2rem; border-top: 1px solid var(--night-line); font-size: var(--t-xs); line-height: 1.7; color: var(--on-night-muted); }
.ftr__legal strong { color: var(--on-night-2); font-weight: 600; }
.ftr__legal p + p { margin-top: 0.2rem; }
.ftr__firma a { color: inherit; }
.ftr__disc { position: relative; margin-top: 2.5rem; padding: 1.25rem 1.4rem; border-radius: var(--r); border: 1px solid var(--night-line); font-size: var(--t-xs); line-height: 1.65; color: var(--on-night-muted); }
.ftr__disc strong { color: var(--on-night-2); }
.ftr__word {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: clamp(1rem, 2vw, 2rem);
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 120;
  font-weight: 320;
  font-size: clamp(4.5rem, 1rem + 19vw, 19rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
  color: var(--on-night);
  user-select: none;
}
.ftr__word em { font-style: italic; color: var(--blue-night); font-weight: 300; }
.ftr__clock { display: grid; gap: 0.2rem; padding-bottom: 0.75em; font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); text-align: right; line-height: 1.5; }
.ftr__clock b { color: var(--on-night); font-weight: 400; font-size: var(--t-xs); }
.ftr__top { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (min-width: 720px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .ftr__grid { grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); column-gap: var(--gap); }
  .ftr__legal { grid-template-columns: 1fr auto; align-items: end; }
}
@media (max-width: 719px) { .ftr__clock { display: none; } }

/* ---- 22. Flotantes: WhatsApp, cookies, barra móvil ----------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 58px;
  padding: 0 0.4rem 0 1.2rem;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.16), 0 16px 40px -12px rgba(14, 27, 44, 0.5);
  transition: transform 0.6s var(--out), opacity 0.4s, background-color 0.3s;
}
.wa-float__ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #25D366; color: var(--white); }
.wa-float__ic svg { width: 24px; height: 24px; }
.wa-float:hover { background: var(--blue-deep); }
.js .wa-float[data-show='false'] { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 639px) { .wa-float__txt { display: none; } .wa-float { padding: 0.25rem; height: auto; } .wa-float__ic { width: 54px; height: 54px; } }

.cookie {
  position: fixed;
  left: clamp(0.75rem, 2vw, 1.75rem);
  bottom: clamp(0.75rem, 2vw, 1.75rem);
  z-index: 70;
  width: min(420px, calc(100vw - 1.5rem));
  padding: 1.4rem;
  border-radius: var(--r-l);
  background: var(--card);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  transition: transform 0.6s var(--out), opacity 0.4s;
}
.js .cookie[data-show='false'] { transform: translateY(30px); opacity: 0; visibility: hidden; }
.cookie h2 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--t-base); margin-bottom: 0.4rem; }
.cookie h2 svg { width: 20px; height: 20px; color: var(--blue); }
.cookie p { font-size: var(--t-xs); line-height: 1.55; color: var(--ink-2); }
.cookie p a { color: var(--blue-ink); }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 1rem; }

.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 52;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.5s var(--out);
}
.mbar[data-show='true'] { transform: none; }
.mbar .btn { min-height: 48px; }
@media (min-width: 768px) { .mbar { display: none; } }
/* En las landings, en móvil ya está la barra fija con llamar y «que me
   llamen»: el botón flotante sobra (WhatsApp sigue en la cabecera). */
@media (max-width: 767px) { body.con-mbar .wa-float { display: none; } }

/* ---- 23. Landings y pilares ------------------------------------------------------------- */
.lhero { position: relative; overflow: clip; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.lhero .iso { width: min(1000px, 150vw); aspect-ratio: 1; right: -30%; top: -35%; }
.lhero__grid { position: relative; display: grid; gap: 2.5rem; }
.lhero h1 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-4xl); line-height: 0.98; letter-spacing: -0.032em; margin-top: 1.25rem; }
.lhero__sub { margin-top: 1.25rem; font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-style: italic; font-weight: 340; font-size: max(1.5rem, var(--t-xl)); line-height: 1.25; color: var(--blue); letter-spacing: -0.01em; max-width: 30ch; }
.lhero__txt { margin-top: 1.5rem; max-width: 58ch; color: var(--ink-2); font-size: var(--t-base); line-height: 1.65; }
.lhero__txt strong { color: var(--ink); }
.lhero__ctas { display: none; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.lhero__desde { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); max-width: 58ch; }
.lhero__desde .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.lhero__desde b { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 340; font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.lhero__desde span:last-child { font-size: var(--t-sm); color: var(--muted); }
.lform h2 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 400; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; }
.lform > p { margin-top: 0.4rem; font-size: var(--t-sm); color: var(--muted); }
.lform form { margin-top: 1.25rem; }
.lform .quien { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .lhero__ctas { display: flex; } }
@media (min-width: 1024px) {
  .lhero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: start; }
  .lform { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.ventajas { display: grid; gap: 0; border-block: 1px solid var(--line); }
.ventaja { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; padding: 1.75rem 0; }
.ventaja + .ventaja { border-top: 1px solid var(--line); }
.ventaja__ic { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--blue-deep); }
.ventaja__ic svg { width: 22px; height: 22px; }
.ventaja b { font-size: var(--t-lg); line-height: 1.3; }
.ventaja p { font-size: var(--t-sm); color: var(--ink-2); }
@media (min-width: 860px) {
  .ventajas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ventaja { padding: 2rem clamp(1rem, 2vw, 2rem); grid-template-columns: 1fr; align-content: start; }
  .ventaja:first-child { padding-left: 0; }
  .ventaja + .ventaja { border-top: 0; border-left: 1px solid var(--line); }
  .ventaja__ic { grid-row: auto; margin-bottom: 0.75rem; }
}

.planes { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem var(--gutter) 1.25rem; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: thin; scrollbar-color: var(--paper-3) transparent; }
.planes > .pcard { scroll-snap-align: start; flex: 0 0 min(86%, 22rem); }
@media (min-width: 1100px) {
  .planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); overflow: visible; margin-inline: 0; padding-inline: 0; }
  .planes > .pcard { flex: none; }
}
.precio-nota { margin-top: 1rem; font-size: var(--t-xs); color: var(--muted); max-width: 90ch; }

.dos-col { display: grid; gap: 2rem; }
@media (min-width: 960px) {
  .dos-col { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); align-items: start; }
  .dos-col > :first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.tabla { overflow-x: auto; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); }
.tabla table { font-size: var(--t-sm); }
@media (max-width: 559px) {
  .tabla th, .tabla td, .rich .tabla th, .rich .tabla td { padding-inline: 1rem; }
}
.tabla caption { text-align: left; }
.tabla th { padding: 1rem 1.4rem; text-align: left; font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tabla td { padding: 0.95rem 1.4rem; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla td:last-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tabla tbody tr { transition: background-color 0.2s; }
.tabla tbody tr:hover { background: var(--paper); }

/* Cajas de contenido (bloques "extra" de las landings y datos) */
.box { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); }
.box--mist { background: var(--mist); border-color: transparent; }
.box--sun { background: var(--sun-soft); border-color: transparent; }
.box--green { background: var(--green-soft); border-color: transparent; }
.box--ink { background: var(--ink); border-color: var(--ink); color: var(--on-night); }
.box--plain { background: transparent; }
.box--accent { border-color: var(--blue); }
.box--soft { background: rgba(244, 239, 230, 0.08); border-color: var(--night-line); }
.box__k { display: block; margin-bottom: 0.6rem; font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.box__k--blue { color: var(--blue-ink); }
.box__k--green { color: var(--green); }
.box__t { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: var(--t-lg); line-height: 1.3; color: var(--ink); }
.box__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.box > * + * { margin-top: 0.75rem; }
.box > .box__k + *, .box > .box__head + *, .box > .box__t + * { margin-top: 0.25rem; }
.box > .box__k, .box > .box__t, .box > .box__head { margin-bottom: 0; }
.box > .box__k + .box__t { margin-top: 0.15rem; }
.boxes { display: grid; gap: 1rem; }
@media (min-width: 720px) { .boxes--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .boxes--3 { grid-template-columns: repeat(3, 1fr); } }

.extra { position: relative; overflow: hidden; padding: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem); border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line-2); }
.extra > h2 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-2xl); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; max-width: 26ch; }
.extra--night { background: var(--night); border-color: var(--night); color: var(--on-night); }
.extra--night .iso { right: -30%; top: -40%; width: 80%; aspect-ratio: 1; }
.extra--night > :not(.iso) { position: relative; }
.extra--aviso { background: var(--sun-soft); border-color: transparent; }

/* Texto enriquecido que llega de los datos */
.rich { color: var(--ink-2); line-height: 1.65; }
.rich > * + * { margin-top: 1rem; }
.rich strong { color: var(--ink); }
.rich em { font-style: italic; }
.rich ul:not([class]), .rich ol:not([class]) { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.rich h3 { font-size: var(--t-lg); color: var(--ink); margin-top: 1.5rem; }
.rich table { font-size: var(--t-sm); }
.rich td, .rich th { padding: 0.55rem 0.75rem 0.55rem 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.rich tr:last-child td { border-bottom: 0; }
.rich th { font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.on-night .rich, .extra--night .rich { color: var(--on-night-2); }
.on-night .rich strong, .extra--night .rich strong { color: var(--on-night); }
.lista { display: grid; gap: 0.6rem; list-style: none; padding: 0; }
.lista li { padding-left: 0; }
.mini { font-size: var(--t-sm); }
.mini td { padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--line-2); vertical-align: top; color: var(--ink-2); }
.mini tr:last-child td { border-bottom: 0; }
.box .mini td { border-color: rgba(14, 27, 44, 0.08); }
.rich .tabla th { padding: 1rem 1.4rem; }
.rich .tabla td { padding: 0.95rem 1.4rem; }
.accs-box { display: grid; gap: 0.6rem; }
.accs-box .acc--box + .acc--box { margin-top: 0; }
.acc__paso { display: flex; align-items: center; gap: 0.9rem; }
.acc--box .acc__q { font-size: var(--t-base); padding-block: 1.1rem; }
.fuente { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.fuente p + p { margin-top: 0.5rem; }
.num { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: var(--t-2xs); }
.td-n { font-weight: 600; color: var(--ink); white-space: nowrap; }
.td-n--blue { color: var(--blue-ink); }
.td-n--green { color: var(--green); }
.nowrap { white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.chip { flex-shrink: 0; display: inline-flex; padding: 0.3em 0.75em; border-radius: var(--pill); font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.06em; text-transform: uppercase; background: var(--paper-2); color: var(--muted); }
.chip--blue { background: var(--mist); color: var(--blue-deep); }
.mt-0 { margin-top: 0 !important; }

.puente { display: grid; gap: 1rem; }
@media (min-width: 860px) { .puente { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.puente__card { position: relative; display: grid; gap: 0.6rem; padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: inherit; transition: transform 0.6s var(--out), box-shadow 0.6s var(--out), border-color 0.3s; }
.puente__card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--ink); }
.puente__card b { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 400; font-size: var(--t-xl); line-height: 1.15; letter-spacing: -0.015em; padding-right: 3rem; }
.puente__card p { font-size: var(--t-sm); color: var(--ink-2); }
.puente__card .pcard__go { position: absolute; top: 1.5rem; right: 1.5rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.35s, color 0.35s, transform 0.5s var(--out); }
.puente__card .pcard__go svg { width: 16px; height: 16px; }
.puente__card:hover .pcard__go { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.relacionado { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: var(--t-sm); }
.relacionado > span { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.cta-final { position: relative; overflow: clip; text-align: center; }
.cta-final .iso { width: min(1100px, 160vw); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.cta-final > .wrap { position: relative; display: grid; justify-items: center; gap: 1.5rem; }
.cta-final .title { max-width: 18ch; }
.cta-final p { max-width: 56ch; color: var(--on-night-2); font-size: var(--t-lg); }
.cta-final .row { justify-content: center; }

/* Pilar */
.phead { position: relative; overflow: clip; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 3vw, 5rem); }
.phead .iso { width: min(1000px, 150vw); aspect-ratio: 1; right: -30%; top: -40%; }
.phead h1 { position: relative; font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-4xl); line-height: 0.98; letter-spacing: -0.032em; margin-top: 1.25rem; max-width: 18ch; }
.phead .lead { position: relative; margin-top: 1.5rem; max-width: 62ch; }
/* Datos rápidos bajo la cabecera de /oficina */
.ofi-datos { position: relative; display: grid; gap: 1.25rem 2.5rem; margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .ofi-datos { grid-template-columns: repeat(3, max-content); } }
.ofi-datos dt { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ofi-datos dd { margin-top: 0.4rem; font-size: var(--t-sm); line-height: 1.5; color: var(--ink); }
.menu__link[aria-current='page'] { color: var(--blue-night); }

/* ---- 24. Fichas de producto ---------------------------------------------------------------- */
.prhero { position: relative; overflow: clip; padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.prhero .iso { width: min(1000px, 150vw); aspect-ratio: 1; right: -30%; top: -35%; }
.prhero__grid { position: relative; display: grid; gap: 2.5rem; }
.prhero h1 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-4xl); line-height: 0.96; letter-spacing: -0.034em; margin-top: 1.25rem; }
.prhero h1 small { display: block; margin-bottom: 0.75rem; font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.prhero__sub { margin-top: 1.25rem; font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-style: italic; font-weight: 340; font-size: max(1.5rem, var(--t-xl)); line-height: 1.25; color: var(--blue); max-width: 32ch; }
.prhero__txt { margin-top: 1.5rem; max-width: 62ch; color: var(--ink-2); line-height: 1.65; }
.prhero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 1024px) {
  .prhero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: start; }
  .price-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}
.price-card { position: relative; overflow: hidden; display: grid; gap: 1rem; padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem); border-radius: var(--r-xl); background: var(--night); color: var(--on-night); box-shadow: var(--sh-3); }
.price-card .iso { right: -40%; top: -40%; width: 110%; aspect-ratio: 1; }
.price-card > :not(.iso) { position: relative; }
.price-card__k { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-muted); }
.price-card__p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; }
.price-card__p small { font-size: var(--t-sm); color: var(--on-night-2); }
.price-card__p b { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 300; font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--sun); font-variant-numeric: lining-nums; }
.price-card__p b.is-text { font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.05; }
.price-card__p span { font-size: var(--t-base); color: var(--on-night-2); }
.price-card__note { font-size: var(--t-xs); color: var(--on-night-muted); }
.price-card .quien { padding: 1rem; border-radius: var(--r); background: var(--night-2); }
.price-card .quien b { color: var(--on-night); }
.price-card .quien span { color: var(--on-night-2); }
.price-card .quien .avatar { box-shadow: 0 0 0 3px var(--night-2), 0 0 0 4px var(--night-line); }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.spec { display: grid; gap: 0.4rem; align-content: start; padding: 1.5rem 1rem 1.5rem 0; }
.spec:nth-child(n+3) { border-top: 1px solid var(--line); }
.spec:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.spec svg { width: 22px; height: 22px; color: var(--blue); }
.spec dt { font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-weight: 600; line-height: 1.35; }
@media (min-width: 900px) {
  .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .spec { padding: 2rem 1.5rem; }
  .spec:first-child { padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 0; }
  .spec + .spec { border-left: 1px solid var(--line); padding-left: 1.5rem; }
}
.destaca { counter-reset: d; display: grid; border-top: 1px solid var(--ink); }
.destaca li { counter-increment: d; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-lg); line-height: 1.4; }
.destaca li::before { content: counter(d, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-xs); color: var(--blue-ink); padding-top: 0.35em; }

/* ---- 25. Catálogo ------------------------------------------------------------------------- */
.filtros { position: sticky; top: calc(var(--header-h) + 0.5rem); z-index: 20; margin-block: 0 2rem; }
.filtros { filter: drop-shadow(0 10px 20px rgba(14, 27, 44, 0.14)); }
.filtros .tabs { background: color-mix(in srgb, var(--paper-2) 96%, transparent); }
.cat-sec + .cat-sec { margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); }
.cat-sec__head { display: grid; gap: 0.6rem; margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) { .cat-sec__head { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: end; column-gap: var(--gap); } }
.cat-sec__head h2 { font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 380; font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -0.02em; }
.cat-sec__head p { color: var(--muted); }
.cat-sec[data-filtered='out'] { display: none; }

/* ---- 26. Legales y 404 --------------------------------------------------------------------- */
.legal { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .legal { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); column-gap: var(--gap); align-items: start; }
  .toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.toc h2 { font-family: var(--f-mono); font-size: var(--t-2xs); font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.toc ol { display: grid; gap: 0.15rem; border-left: 1px solid var(--line); list-style: none; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a::before { content: counter(toc, decimal-leading-zero); margin-right: 0.75rem; font-family: var(--f-mono); font-size: var(--t-2xs); color: var(--muted); }
.toc__otras { display: grid; justify-items: start; gap: 0.6rem; margin-top: 2rem; font-size: var(--t-sm); }
.toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.toc a:hover, .toc a[aria-current='true'] { color: var(--ink); border-left-color: var(--blue); }
.prose { max-width: 72ch; color: var(--ink-2); line-height: 1.7; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--f-display); font-variation-settings: 'opsz' 120; font-weight: 400; font-size: var(--t-2xl); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.75rem; font-size: var(--t-lg); color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--blue); }
.prose .tabla td:last-child { font-weight: 400; white-space: normal; }
.prose .tabla td:first-child { white-space: nowrap; }
.prose .box { margin-top: 1.5rem; }
.datos { display: grid; margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.datos dt { padding-top: 0.9rem; font-family: var(--f-mono); font-size: var(--t-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.datos dd { margin: 0.2rem 0 0; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
@media (min-width: 720px) {
  .datos { grid-template-columns: minmax(12rem, 2fr) 5fr; }
  .datos dt { padding: 1rem 1.5rem 1rem 0; border-bottom: 1px solid var(--line); }
  .datos dd { margin: 0; padding: 0.95rem 0; }
}
.derechos { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .derechos { grid-template-columns: 1fr 1fr; } }
.derechos > div { padding: 1.1rem 1.25rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-2); }
.derechos h3 { margin: 0 0 0.25rem; font-family: var(--f-sans); font-size: var(--t-base); color: var(--ink); }
.derechos p { font-size: var(--t-sm); }
.prose button { color: var(--blue-ink); text-decoration: underline; font-weight: 600; }

.nf { position: relative; overflow: clip; min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding-block: var(--sec-s); }
.nf .iso { width: min(1200px, 170vw); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0.16; }
.nf__in { position: relative; display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.nf__brujula { width: clamp(120px, 14vw, 180px); }
.nf__brujula .aguja { transform-origin: 50% 50%; animation: buscar 4.5s var(--in-out) infinite; }
@keyframes buscar { 0% { transform: rotate(-40deg); } 30% { transform: rotate(70deg); } 55% { transform: rotate(-15deg); } 75%, 100% { transform: rotate(0deg); } }
.nf .row { justify-content: center; }

/* ---- 27. Movimiento ----------------------------------------------------------------------- */
/* Revelado: el JS pone data-in cuando el elemento entra en pantalla. Si el
   JS no llega, a los 2,5 s todo se muestra igualmente. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--out), transform 1.1s var(--out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal='fade'] { transform: none; }
.js [data-reveal='scale'] { transform: scale(0.94); }
.js [data-reveal][data-in] { opacity: 1; transform: none; }
.js:not(.motion-ready) [data-reveal] { animation: seguro 0.01s linear 2.5s forwards; }
@keyframes seguro { to { opacity: 1; transform: none; } }

/* Imágenes que se destapan de abajo arriba */
.js [data-clip] { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--in-out); }
.js [data-clip] img { transform: scale(1.18); transition: transform 1.8s var(--out); }
.js [data-clip][data-in] { clip-path: inset(0 0 0 0); }
.js [data-clip][data-in] img { transform: none; }
.js:not(.motion-ready) [data-clip] { clip-path: none; }
.js:not(.motion-ready) [data-clip] img { transform: none; }
.js .arch[data-clip] { clip-path: inset(100% 0 0 0 round 999px 999px var(--r-l) var(--r-l)); }
.js .arch[data-clip][data-in], .js:not(.motion-ready) .arch[data-clip] { clip-path: inset(0 0 0 0 round 999px 999px var(--r-l) var(--r-l)); }

/* Primer pantallazo: entradas solo con CSS. Empiezan en cuanto se pinta la
   página, sin esperar a site.js, para no retrasar el LCP. */
@keyframes intro { from { opacity: 0; transform: translateY(24px); } }
@keyframes intro-escala { from { opacity: 0; transform: scale(0.85) rotate(-10deg); } }
@keyframes linea { from { transform: translateY(130%); } }
@keyframes cortina { from { transform: translateY(0); } to { transform: translateY(-101%); } }
@keyframes acercar { from { transform: scale(1.18); } }
@keyframes dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.js .intro { animation: intro 1.1s var(--out) both; animation-delay: calc(var(--d, 0) * 1ms); }
.js .intro--escala { animation-name: intro-escala; animation-duration: 1.3s; }
/* El retrato se destapa con una cortina del color del papel que sube (solo
   transform, va por la GPU); la foto está pintada desde el principio. */
.js .hero .arch::before { content: ''; position: absolute; inset: -1px; z-index: 2; background: var(--paper); animation: cortina 1.3s var(--in-out) 0.2s both; }
.js .hero .arch img { animation: acercar 2s var(--out) 0.2s both; }

/* Titulares por líneas: cada línea sube desde su propia máscara. El hueco
   inferior deja sitio al subrayado a mano sin que asome la línea escondida. */
.js .lines .ln { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.24em; }
.js .lines .ln > span { display: inline-block; animation: linea 1.2s var(--out) both; animation-delay: calc(var(--i, 0) * 110ms + var(--d, 0) * 1ms); }
.js .lines .trazo path { animation: dibujar 1.1s var(--in-out) 1.25s both; }

/* Palabras: para titulares de sección (el JS envuelve cada palabra) */
.js .words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.js .words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--out); transition-delay: calc(var(--i, 0) * 40ms); }
.js .words[data-in] .w > span { transform: none; }

/* Subrayado dibujado a mano bajo una palabra */
.trazo { position: relative; display: inline-block; white-space: nowrap; }
.trazo svg { position: absolute; left: -2%; bottom: -0.1em; width: 104%; height: 0.3em; overflow: visible; color: var(--sun); pointer-events: none; }
.trazo path { stroke-dasharray: 1; stroke-dashoffset: 0; }

[data-parallax] { will-change: transform; }

/* Transiciones entre páginas (View Transitions, Chrome/Safari recientes) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--in-out) both salir; }
::view-transition-new(root) { animation: 0.6s var(--out) both entrar; }
::view-transition-group(cabecera) { animation-duration: 0s; }
.vt .hdr { view-transition-name: cabecera; }
@keyframes salir { to { opacity: 0; transform: translateY(-12px); } }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html.js { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-clip], .js [data-clip] img, .js .lines .ln > span, .js .words .w > span, .js .intro, .js .hero .arch img { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .js .hero .arch::before { display: none; }
  .js .manifiesto .w { opacity: 1 !important; }
  .marquee__track { animation: none; }
  .sello__txt { animation: none; }
  @view-transition { navigation: none; }
}

@media print {
  .hdr, .menu, .wa-float, .cookie, .mbar, .iso, .marquee, video { display: none !important; }
  body, .sec--night, .on-night, .ftr { background: #fff !important; color: #000 !important; }
  .js [data-reveal], .js [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
