/* ==========================================================================
   Grupo RIH · styles.css
   Mobile-first. Puntos de quiebre: 600px, 768px, 960px, 1024px.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Primitivos de marca (azul del logo, marfil y arena). Contraste AA verificado:
     navy-900 sobre ivory-50 14,6:1 · sand-700 sobre ivory-150 5,0:1 · sand-300 sobre navy-900 7,9:1 */
  --navy-950: #011a33;
  --navy-900: #02264a;     /* azul del logo */
  --navy-700: #2b4766;
  --slate-600: #56697e;
  --slate-400: #7d8a99;    /* bordes de controles (3,4:1) */
  --ivory-50: #fbfaf7;
  --ivory-100: #f5f2ea;
  --ivory-150: #f3efe6;
  --stone-200: #e2dccf;    /* líneas decorativas sobre marfil */
  --sand-300: #cdb88f;     /* acento sobre azul; no usar para texto sobre fondos claros */
  --sand-700: #7d6330;     /* variante accesible del arena para fondos claros */
  --white: #ffffff;

  /* Semánticos: superficies */
  --surface: var(--ivory-50);
  --surface-alt: var(--ivory-150);
  --surface-card: var(--white);
  --surface-dark: var(--navy-900);
  --surface-darker: var(--navy-950);

  /* Semánticos: texto y líneas sobre claro */
  --text: var(--navy-900);
  --text-soft: var(--navy-700);
  --text-muted: var(--slate-600);
  --accent: var(--sand-700);
  --line: var(--stone-200);
  --line-strong: var(--slate-400);

  /* Semánticos: texto y líneas sobre azul */
  --text-on-dark: var(--ivory-100);
  --text-on-dark-soft: #c6c8c7;   /* marfil al 78 % sobre navy-900 (8,9:1) */
  --accent-on-dark: var(--sand-300);
  --text-on-dark-faint: rgba(245, 242, 234, 0.66);   /* créditos e ítems inactivos (≥ 6:1) */
  --line-on-dark: rgba(245, 242, 234, 0.14);

  /* Estados */
  --error: #b3261e;
  --error-bg: #fbe9e7;
  --success-ink: #14532f;
  --success-bg: #e2f1e8;

  /* Componentes según contexto (se redefinen en .on-dark) */
  --link: var(--text);
  --link-hover: var(--accent);
  --focus: var(--navy-900);
  --btn-primary-bg: var(--navy-900);
  --btn-primary-fg: var(--ivory-100);
  --btn-primary-hover-bg: var(--navy-700);
  --btn-ghost-line: var(--navy-900);
  --btn-ghost-fg: var(--navy-900);
  --btn-ghost-hover-bg: var(--navy-900);
  --btn-ghost-hover-fg: var(--ivory-100);

  /* Tipografía */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Medidas */
  --radius: 2px;
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;

  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --header-h: 88px;
  }
}

/* Contexto oscuro: los componentes heredan colores claros */
.on-dark {
  --link: var(--text-on-dark);
  --link-hover: var(--accent-on-dark);
  --focus: var(--ivory-100);
  --btn-primary-bg: var(--ivory-100);
  --btn-primary-fg: var(--navy-900);
  --btn-primary-hover-bg: var(--white);
  --btn-ghost-line: rgba(245, 242, 234, 0.55);
  --btn-ghost-fg: var(--ivory-100);
  --btn-ghost-hover-bg: var(--ivory-100);
  --btn-ghost-hover-fg: var(--navy-900);
}

/* Tarjetas claras dentro de un contexto oscuro (formulario) vuelven a los valores claros */
.on-light {
  --link: var(--text);
  --link-hover: var(--accent);
  --focus: var(--navy-900);
  --btn-primary-bg: var(--navy-900);
  --btn-primary-fg: var(--ivory-100);
  --btn-primary-hover-bg: var(--navy-700);
  --btn-ghost-line: var(--navy-900);
  --btn-ghost-fg: var(--navy-900);
  --btn-ghost-hover-bg: var(--navy-900);
  --btn-ghost-hover-fg: var(--ivory-100);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
  body { font-size: 1.0625rem; }
}

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

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  text-wrap: balance;
}

p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
a:hover { color: var(--link-hover); }

button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection { background: var(--sand-300); color: var(--navy-900); }

[hidden] { display: none !important; }

main section[id] { scroll-margin-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: var(--text-on-dark); }

/* Etiqueta pequeña en mayúsculas (rótulos, sectores, títulos de pie) */
.eyebrow,
.project-sector,
.footer-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- 4. Botones ---------- */
/* Jerarquía: primario (relleno) > secundario (contorno) > enlace subrayado.
   Sin sombras ni brillos; el hover solo cambia color. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  border-color: var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover {
  border-color: var(--btn-primary-hover-bg);
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-fg);
}

.btn-ghost {
  border-color: var(--btn-ghost-line);
  background: transparent;
  color: var(--btn-ghost-fg);
}
.btn-ghost:hover {
  border-color: var(--btn-ghost-hover-bg);
  background: var(--btn-ghost-hover-bg);
  color: var(--btn-ghost-hover-fg);
}

.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- 5. Cabecera y navegación ---------- */
/* Barra institucional a todo el ancho: transparente sobre el hero, azul marino al desplazarse */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin-bottom: calc(-1 * var(--header-h));
  color: var(--ivory-100);
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: var(--navy-900);
  box-shadow: inset 0 -1px 0 rgba(245, 242, 234, 0.1), 0 8px 24px rgba(1, 26, 51, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.brand-logo {
  width: auto;
  height: 46px;
}

@media (min-width: 768px) {
  .brand-logo { height: 56px; }
}

@media (min-width: 1280px) {
  .brand-logo { height: 64px; }
}

/* Botón hamburguesa */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ivory-100);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { transform: translateY(-7px); }
.nav-toggle-bars::after { transform: translateY(7px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* Menú en móvil: panel azul marino bajo la barra */
.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0.5rem var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--navy-900);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-list a {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--ivory-100);
  font-size: 1.375rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-list a:hover { color: var(--white); }

/* CTA de la barra: botón secundario (.btn-ghost) en contexto oscuro */
.nav-cta {
  width: 100%;
  font-size: 0.9375rem;
}

body.nav-open { overflow: hidden; }

/* Sin JavaScript, el menú se muestra como lista bajo la cabecera */
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .site-header { position: relative; margin-bottom: 0; background: var(--navy-900); }
html:not(.js) .header-inner { height: auto; padding-block: 0.75rem; flex-wrap: wrap; }
html:not(.js) .site-nav {
  position: static;
  width: 100%;
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-nav,
  html:not(.js) .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    width: auto;
    padding: 0;
    overflow: visible;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-list { display: flex; gap: 2rem; }

  .nav-list a {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    color: var(--text-on-dark-soft);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
  }
  .nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--sand-300);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-list a:hover,
  .nav-list a[aria-current] { color: var(--ivory-100); }
  .nav-list a:hover::after,
  .nav-list a[aria-current]::after { transform: scaleX(1); }

  .nav-cta { width: auto; min-height: 42px; padding: 0.55rem 1.25rem; }
}

/* ---------- 6. Hero: mensaje variable + fotografía ---------- */
.hero {
  --hero-interval: 3000ms;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--ivory-100);
}

/* Fotografías apiladas con fundido cruzado */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--x, 50%) var(--y, 50%);
  filter: saturate(0.82) contrast(1.04) brightness(var(--b, 1));
}

/* Fondo de marca para obras sin fotografía todavía */
.hero-slide-brand {
  background:
    radial-gradient(90% 80% at 78% 28%, rgba(205, 184, 143, 0.16) 0%, rgba(205, 184, 143, 0) 60%),
    radial-gradient(120% 100% at 70% 40%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}

/* Velo: unifica el color de las fotos y asegura la lectura del texto */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 26, 51, 0.55) 0%, rgba(1, 26, 51, 0.08) 22%, rgba(1, 26, 51, 0.45) 48%, rgba(1, 26, 51, 0.9) 76%, var(--navy-900) 100%),
    rgba(2, 38, 74, 0.2);
}

/* Asentamiento lento de la imagen activa */
@media (prefers-reduced-motion: no-preference) {
  .hero-slide img {
    transform: scale(1.05);
    transition: transform 4s cubic-bezier(0.2, 0.6, 0.2, 1);
  }
  .hero-slide.is-active img { transform: none; }

  .hero-copy > * { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition-duration: 0.4s; }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
}

/* Contenido */
.hero-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  padding-top: calc(var(--header-h) + 16vh);
  padding-bottom: 1.75rem;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-300);
}
/* Ícono: círculo arena con flecha calada (la flecha toma el azul del fondo) */
.hero-eyebrow::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2302264a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10h8.5M10.5 6l4 4-4 4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-title {
  font-size: clamp(2.5rem, 1.35rem + 4.1vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ivory-100);
}

.hero-title-base {
  display: block;
  max-width: 13ch;
}

/* Palabra variable: todas ocupan la misma celda, así la altura no cambia (sin CLS) */
.hero-rotator {
  display: grid;
  margin-top: 0.04em;
  padding-bottom: 0.1em;
  overflow: hidden;
}

.hero-word {
  grid-area: 1 / 1;
  color: var(--sand-300);
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-word.is-active {
  opacity: 1;
  transform: none;
  transition-delay: 0.22s;
}
.hero-word.is-past {
  opacity: 0;
  transform: translateY(-0.35em);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-word,
  .hero-word.is-past { transform: none; }
}

/* Bajada: más grande y ligera, en marfil casi pleno, para dialogar con el titular */
.hero-lead {
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.1875rem;
  font-weight: 350;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: rgba(245, 242, 234, 0.92);
  text-wrap: pretty;
}

/* Dato de respaldo: filete arena a la izquierda y cifra destacada */
.hero-stat {
  max-width: 38rem;
  margin-top: 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--sand-300);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.5;
  color: var(--text-on-dark-soft);
}
.hero-stat strong {
  font-weight: 600;
  color: var(--sand-300);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  margin-top: 2rem;
}

/* CTA principal: .btn-primary en contexto oscuro. El secundario es un enlace subrayado */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  color: var(--ivory-100);
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--accent-on-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s ease;
}
.hero-link:hover { color: var(--ivory-100); text-decoration-color: var(--ivory-100); }
.hero-link span { transition: transform 0.2s ease; }
.hero-link:hover span { transform: translateX(3px); }

/* Índice de obras: en móvil, segmentos con progreso; en escritorio, lista con nombres */
.hero-index {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-index ol {
  display: flex;
  flex: 1;
  gap: 6px;
  counter-reset: obra;
}
.hero-index li { counter-increment: obra; }
.hero-index-num::before { content: counter(obra, decimal-leading-zero); }
.hero-index li { flex: 1; }

.hero-index ol button {
  position: relative;
  display: block;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-on-dark-faint);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* Pista y relleno de progreso */
.hero-index ol button::before,
.hero-index ol button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(245, 242, 234, 0.22);
}
.hero-index ol button::after {
  background: var(--sand-300);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-index ol button[aria-pressed="true"]::after { transform: scaleX(1); }
.hero.is-playing .hero-index ol button[aria-pressed="true"]::after {
  animation: hero-progress var(--hero-interval) linear both;
}

@keyframes hero-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-index-num,
.hero-index-label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(245, 242, 234, 0.35);
  border-radius: 50%;
  background: none;
  color: var(--ivory-100);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.hero-pause:hover { border-color: var(--ivory-100); }

/* Icono: dos barras (pausar) o triángulo (reanudar) */
.hero-pause-icon {
  width: 8px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.hero-pause[aria-pressed="true"] .hero-pause-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}

/* Pie del hero: nota sobre las fotos, directamente sobre la imagen */
.hero-foot-inner { padding-block: 0 1rem; }

.hero-credit {
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-on-dark-faint);
}

/* Pantallas bajas: menos aire arriba para que ambos CTA queden a la vista */
@media (max-height: 720px) and (max-width: 1023px) {
  .hero-main { padding-top: calc(var(--header-h) + 5vh); }
  .hero-eyebrow { margin-bottom: 0.875rem; }
  .hero-actions { margin-top: 1.5rem; }
}

@media (min-width: 600px) {
  .hero-index ol { flex: 0 1 22rem; }
}

@media (min-width: 768px) {
  .hero-lead { max-width: 41rem; font-size: 1.375rem; line-height: 1.45; }
  .hero-stat { max-width: 46rem; font-size: 1.0625rem; }
}

/* Escritorio: texto abajo a la izquierda, índice de obras a la derecha */
@media (min-width: 1024px) {
  .hero { min-height: clamp(700px, 100svh, 980px); }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(1, 26, 51, 0.88) 0%, rgba(1, 26, 51, 0.66) 34%, rgba(1, 26, 51, 0.18) 62%, rgba(1, 26, 51, 0.22) 80%, rgba(1, 26, 51, 0.5) 100%),
      linear-gradient(180deg, rgba(1, 26, 51, 0.6) 0%, rgba(1, 26, 51, 0) 22%, rgba(1, 26, 51, 0) 64%, rgba(1, 26, 51, 0.7) 100%),
      rgba(2, 38, 74, 0.16);
  }

  .hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: end;
    gap: 4rem;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 3.5rem;
  }

  .hero-title { font-size: clamp(3.5rem, 0.9rem + 4.1vw, 4.75rem); }

  .hero-index {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .hero-index ol {
    flex-direction: column;
    gap: 0;
  }

  .hero-index ol button {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    height: auto;
    padding: 0.6rem 0 0.6rem 1.125rem;
    transition: color 0.3s ease;
  }
  .hero-index ol button:hover { color: var(--ivory-100); }
  .hero-index ol button[aria-pressed="true"] { color: var(--ivory-100); }

  /* La pista pasa a ser vertical, a la izquierda de cada nombre */
  .hero-index ol button::before,
  .hero-index ol button::after {
    top: 0;
    bottom: 0;
    right: auto;
    width: 1px;
    height: auto;
  }
  .hero-index ol button::after {
    width: 2px;
    left: -0.5px;
    transform: scaleY(0);
    transform-origin: top;
  }
  .hero-index ol button[aria-pressed="true"]::after { transform: scaleY(1); }
  .hero.is-playing .hero-index ol button[aria-pressed="true"]::after { animation-name: hero-progress-y; }

  .hero-index-num,
  .hero-index-label {
    position: static !important;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }
  .hero-index-num {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    color: var(--sand-300);
  }
  .hero-index-label { font-size: 0.9375rem; font-weight: 500; }

  .hero-pause { margin-left: 1.125rem; }

  /* La nota se alinea con el margen derecho del hero */
  .hero-credit {
    text-align: right;
    text-shadow: 0 1px 2px rgba(1, 26, 51, 0.6);
  }
}

@keyframes hero-progress-y {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---------- 7. Secciones ---------- */
/* Ritmo de superficies: marfil claro · marfil cálido · azul marino */
.section { padding-block: 4.5rem; }

.section-paper { background: var(--surface-alt); }

.section-dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.section-head h2 {
  font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-head p {
  max-width: 60ch;
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-soft);
}

.on-dark .section-head h2 { color: var(--text-on-dark); }
.on-dark .section-head p { color: var(--text-on-dark-soft); }

@media (min-width: 960px) {
  .section { padding-block: 7rem; }
  .section-head { margin-bottom: 3.75rem; }
}

/* ---------- 8. Cómo funciona (flujo) ---------- */
.flow { counter-reset: flow; }

.flow-node {
  position: relative;
  padding: 0 0 2.25rem 3.5rem;
}

.flow-node::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--text);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Conector con flecha (vertical en móvil) */
.flow-node::after {
  content: "";
  position: absolute;
  top: 2.6rem;
  bottom: 0.35rem;
  left: calc(1.125rem - 5px);
  width: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M0 0h10L5 8z' fill='%2302264a'/%3E%3C/svg%3E") center bottom / 8px 6px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) center top / 1px calc(100% - 6px) no-repeat;
}

.flow-node h3 {
  padding-top: 0.3rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.flow-node p {
  max-width: 40ch;
  margin-top: 0.5rem;
  color: var(--text-soft);
}

.flow-return {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-dark);
  color: var(--text-on-dark-soft);
}
.flow-return strong { display: block; margin-bottom: 0.25rem; color: var(--text-on-dark); font-size: 1.125rem; }
.flow-return p { max-width: 75ch; }

.flow-return-icon {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--accent-on-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .flow-node { padding: 3.5rem 0 0 0; }
  .flow-node::after {
    top: calc(1.125rem - 5px);
    bottom: auto;
    left: 3rem;
    right: -1.25rem;
    width: auto;
    height: 10px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 10'%3E%3Cpath d='M0 0l8 5-8 5z' fill='%2302264a'/%3E%3C/svg%3E") right center / 6px 8px no-repeat,
      linear-gradient(var(--line-strong), var(--line-strong)) left center / calc(100% - 6px) 1px no-repeat;
  }
  .flow-node:last-child::after { display: none; }
  .flow-return { padding: 1.75rem 2rem; }
}

/* ---------- 9. Servicios: capacidades y roles ---------- */
/* Apertura: encabezado y fotografía de obra */
.cap-intro {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}
.cap-intro .section-head { margin-bottom: 0; }

.cap-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-dark);
}
.cap-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
}
.cap-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1rem 0.75rem;
  background: linear-gradient(180deg, rgba(1, 26, 51, 0) 0%, rgba(1, 26, 51, 0.78) 100%);
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--text-on-dark-faint);
}
.cap-photo figcaption a { color: inherit; text-decoration: none; }
.cap-photo figcaption a:hover { color: var(--text-on-dark); text-decoration: underline; }

/* Cuatro capacidades: filete, título y texto sobre un número monumental translúcido.
   El número es una marca de agua: absoluto, detrás del texto, sin reservar espacio propio. */
.capabilities {
  display: grid;
  gap: 2.5rem;
}

.capability {
  --cap-num: clamp(7rem, 5rem + 8vw, 8.5rem);
  position: relative;
  isolation: isolate;   /* el número queda detrás del contenido del bloque, no de la sección */
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--text);
}
.capability h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.capability p {
  max-width: 34ch;
  color: var(--text-soft);
}

/* Anclado abajo a la derecha: su pie coincide con el final del bloque y su trazo, con el fin del filete */
.capability-num {
  position: absolute;
  z-index: -1;
  right: 0.02em;     /* compensa el interletraje negativo tras la última cifra */
  bottom: -0.1em;    /* el renglón cae bajo la línea de base: así apoya el pie de la cifra */
  font-size: var(--cap-num);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(176, 148, 96, 0.26);   /* arena desaturado sobre el papel */
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}
@media (hover: hover) {
  .capability:hover .capability-num { color: rgba(176, 148, 96, 0.36); }
}

/* Entrada única: cada cifra aparece con un fundido */
@media (prefers-reduced-motion: no-preference) {
  .js .capability-num {
    opacity: 0;
    transition:
      opacity 0.9s ease var(--cap-delay, 0s),
      color 0.35s ease;
  }
  .js .capability:nth-child(2) { --cap-delay: 0.08s; }
  .js .capability:nth-child(3) { --cap-delay: 0.16s; }
  .js .capability:nth-child(4) { --cap-delay: 0.24s; }
  .js .capabilities.is-visible .capability-num { opacity: 1; }
  .js .capabilities.is-visible .capability:hover .capability-num { transition-delay: 0s; }
}

/* Banda de roles: misma familia visual que el recuadro de "Cómo funciona" */
.roles {
  margin-top: 3.5rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-dark);
  color: var(--text-on-dark-soft);
}
.roles-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-on-dark);
}
.roles-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.roles-grid dt {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-on-dark);
}
.roles-grid dd { margin-top: 0.375rem; max-width: 52ch; }

@media (min-width: 700px) {
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 3rem; }
  .capability { --cap-num: 10rem; }
  .roles { padding: 2.25rem 2.5rem; }
  .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .cap-intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 4rem;
    margin-bottom: 4.5rem;
  }
  .capabilities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
  .capability { --cap-num: clamp(9rem, 2rem + 11vw, 13rem); }
}

/* ---------- 9b. Resultados: puesto en el ranking OxI 2025 ---------- */
/* Composición editorial: la cifra manda; texto y datos a su lado, sin tarjeta */
.ranking {
  background: var(--surface);
  overflow: hidden;
}

.ranking-inner {
  display: grid;
  gap: 2.5rem;
}

.ranking-figure {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--text);
}

.ranking-figure-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.ranking-number {
  display: block;
  margin-top: 0.5rem;
  margin-left: -0.06em;            /* compensa el lado izquierdo del 0 */
  font-size: clamp(10rem, 2rem + 50vw, 22rem);
  font-weight: 700;
  font-stretch: 78%;
  line-height: 0.78;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
}

.ranking-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ranking-copy h2 {
  max-width: 18ch;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.ranking-text {
  max-width: 50ch;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--text-soft);
}

.ranking-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.ranking-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ranking-meta div:last-child { grid-column: 1 / -1; }
.ranking-meta dd {
  margin-top: 0.25rem;
  font-weight: 600;
  color: var(--text);
}

.ranking-source {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .ranking-meta { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 2.5rem; }
  .ranking-meta div:last-child { grid-column: auto; }
}

@media (min-width: 960px) {
  /* Un solo filete sobre ambas columnas; rótulos alineados en la misma línea */
  .ranking-inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
    gap: 1.25rem 4rem;
  }
  .ranking-inner::before {
    content: "";
    grid-column: 1 / -1;
    border-top: 1px solid var(--text);
  }
  .ranking-figure { padding-top: 0; border-top: 0; }
  .ranking-number { font-size: clamp(18rem, 1rem + 38vw, 36rem); }
}

/* Entrada única y discreta de la cifra */
@media (prefers-reduced-motion: no-preference) {
  .js .ranking-number {
    opacity: 0;
    transform: translateY(0.06em);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .ranking.is-visible .ranking-number {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 10. Proceso (sección oscura) ---------- */
.process { counter-reset: step; }

.step {
  position: relative;
  padding: 0 0 2rem 3.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--accent-on-dark);
  border-radius: 50%;
  background: var(--surface-dark);
  color: var(--accent-on-dark);
  font-weight: 600;
}

.step::after {
  content: "";
  position: absolute;
  top: 2.25rem;
  bottom: 0;
  left: calc(1.125rem - 0.5px);
  border-left: 1px solid var(--line-on-dark);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }

.step h3 {
  padding-top: 0.3rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-on-dark);
}
.step p {
  margin-top: 0.375rem;
  font-size: 0.975rem;
  color: var(--text-on-dark-soft);
}

.step .step-role {
  margin-top: 0.875rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--accent-on-dark);
  font-size: 0.875rem;
  color: var(--text-on-dark);
}
.step-role strong { font-weight: 650; color: var(--accent-on-dark); }

@media (min-width: 1024px) {
  .process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.75rem;
  }
  /* Línea que une las etapas */
  .process::before {
    content: "";
    position: absolute;
    top: calc(1.125rem - 0.5px);
    left: 0;
    right: 0;
    border-top: 1px solid rgba(245, 242, 234, 0.24);
  }
  .step { padding: 3.5rem 0 0 0; }
  .step:last-child { padding-bottom: 0; }
  .step::after { display: none; }
}

/* ---------- 11. Proyectos ---------- */
.filters { margin-bottom: 2.25rem; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--surface-dark); background: var(--surface-dark); color: var(--text-on-dark); }
.chip .count { margin-left: 0.25rem; font-weight: 500; opacity: 0.72; }
.chip .count:empty { display: none; }

.filter-status {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.filter-status:empty { display: none; }

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

.project-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-card);
  transition: border-color 0.2s ease;
}
.project-card:hover { border-color: var(--line-strong); }

.project-visual {
  display: grid;
  place-items: center;
  height: 128px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
  color: var(--text);
}
.project-visual svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.project-sector { color: var(--accent); }

.project-body h3 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.project-meta dt { font-size: 0.8125rem; color: var(--text-muted); }
.project-meta dd { font-weight: 650; white-space: nowrap; }

.stage {
  margin-top: auto;
  padding-top: 1.25rem;
}
.stage-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-soft); }

.stage-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 0.5rem;
}
.stage-bar li {
  height: 3px;
  background: var(--line);
}

.stage[data-stage="1"] .stage-bar li:nth-child(-n + 1),
.stage[data-stage="2"] .stage-bar li:nth-child(-n + 2),
.stage[data-stage="3"] .stage-bar li:nth-child(-n + 3),
.stage[data-stage="4"] .stage-bar li:nth-child(-n + 4) { background: var(--text); }

.project.is-entering { animation: project-in 0.3s ease both; }

@keyframes project-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 12. Preguntas frecuentes ---------- */
.faq-layout {
  display: grid;
  gap: 0.5rem;
}

.faq { border-top: 1px solid var(--text); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.375rem 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-trigger:hover { color: var(--accent); }

.faq-icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-trigger[aria-expanded="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-panel > div { overflow: hidden; }
.faq-panel p {
  max-width: 64ch;
  padding-bottom: 1.375rem;
  color: var(--text-soft);
}

.js .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
}
.js .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.25s ease;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 4rem;
    align-items: start;
  }
  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    margin-bottom: 0;
  }
}

/* ---------- 13. Contacto ---------- */
.contact {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}
.contact-details dt { font-size: 0.875rem; color: var(--text-on-dark-soft); }
.contact-details dd { font-size: 1.0625rem; font-weight: 600; }
.contact-details a { text-decoration-color: var(--accent-on-dark); }

@media (min-width: 600px) {
  .contact-details { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
  }
  .contact-details { grid-template-columns: 1fr; }
}

/* Formulario: tarjeta clara sobre el azul */
.form {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface-card);
  color: var(--text);
}

.form-grid {
  display: grid;
  gap: 1.125rem;
  margin-bottom: 1.5rem;
}

.field { display: grid; gap: 0.375rem; align-content: start; }

.label { font-size: 0.9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--text-muted); }

.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:hover { border-color: var(--text-soft); }
.input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(2, 38, 74, 0.14);
}

.select {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2302264a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}

.textarea { min-height: 128px; resize: vertical; }

.field.has-error .input { border-color: var(--error); }
.field.has-error .input:focus { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }

.field-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
}
.field-error:empty { display: none; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--navy-900);
}

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

.form-status {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-success { background: var(--success-bg); color: var(--success-ink); }
.form-status.is-error { background: var(--error-bg); color: var(--error); }

@media (min-width: 640px) {
  .form { padding: 2.25rem; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .field-full { grid-column: 1 / -1; }
}

/* ---------- 14. Pie de página ---------- */
.site-footer {
  padding-block: 4rem 1.75rem;
  background: var(--surface-darker);
  color: var(--text-on-dark-soft);
  font-size: 0.9375rem;
}

.site-footer .brand { gap: 1rem; color: var(--text-on-dark); }
.site-footer .brand-logo { height: 64px; }
.site-footer .brand-sub {
  padding-left: 1rem;
  border-left: 1px solid var(--line-on-dark);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-on-dark-soft);
}

.footer-grid {
  display: grid;
  gap: 2.25rem;
}

.footer-brand p { max-width: 32ch; margin-top: 1.25rem; }

.footer-title {
  margin-bottom: 1rem;
  color: var(--accent-on-dark);
}

.site-footer li + li { margin-top: 0.5rem; }

.site-footer a {
  color: var(--text-on-dark-soft);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--accent-on-dark);
}

.footer-bottom {
  margin-top: 3rem;
  font-size: 0.875rem;
}
.footer-bottom p {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}
