/*
 * SG Bienestar Laboral — sitio de presentación.
 *
 * La paleta sale del logo: el ciclo PHVA con su azul, azul claro, amarillo,
 * ámbar y rojo. Los colores de marca llenan formas; para escribir encima se
 * usan versiones oscurecidas, porque el azul del logo da 3,1:1 con blanco y el
 * ámbar 1,9:1, por debajo del 4,5:1 que exige la WCAG. Cada valor lleva su
 * medida anotada.
 *
 * El sitio es claro y solo claro, a conciencia: el logo vive sobre blanco y una
 * versión oscura a medio afinar se ve peor que ninguna.
 */

:root {
  /* Marca, tal cual. Solo relleno. */
  --azul: #3e9cc2;
  --azul-claro: #a9c6d2;
  --amarillo: #f4e500;
  --ambar: #edb11f;
  --rojo: #e3312a;

  /* Marca legible, para texto y botones. */
  --azul-texto: #26789b; /* 4,95:1 con blanco */
  --azul-hondo: #1a5f7d; /* 7,05:1 */
  --azul-abismo: #0e3f55; /* 11,29:1 */
  --rojo-texto: #c0261f;
  --ambar-texto: #9c6a09; /* 4,69:1 con blanco */

  --tinta: #12100e;
  --tinta-media: #4a5560;
  --tinta-suave: #6b7680;
  --papel: #ffffff;
  --papel-alt: #f5f8fa;
  --linea: #e2e9ee;

  --radio: 14px;
  --radio-chico: 9px;
  --ancho: 1180px;

  --sombra: 0 1px 2px rgb(18 16 14 / 4%), 0 8px 24px -12px rgb(18 16 14 / 12%);
  --sombra-alta: 0 2px 4px rgb(18 16 14 / 5%), 0 20px 48px -20px rgb(18 16 14 / 22%);

  --fuente: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fuente-marca: 'Archivo Narrow', 'Arial Narrow', var(--fuente);
}

/* ── Base ──────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* La cabecera es fija: sin esto, un enlace de ancla deja el título debajo. */
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.65rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: var(--azul-texto);
  text-underline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 3px solid var(--azul-texto);
  outline-offset: 3px;
  border-radius: 3px;
}

.contenedor {
  width: min(100% - 2.5rem, var(--ancho));
  margin-inline: auto;
}

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

/* Primer tabulador de la página: llega antes que la navegación entera. */
.salto-contenido {
  position: absolute;
  left: 50%;
  translate: -50% -140%;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radio-chico) var(--radio-chico);
  background: var(--azul-texto);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: translate 0.18s ease;
}

.salto-contenido:focus {
  translate: -50% 0;
}

.antetitulo {
  margin-bottom: 0.7rem;
  color: var(--azul-texto);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.antetitulo--claro {
  color: var(--azul-claro);
}

.fuente {
  color: var(--tinta-suave);
  font-size: 0.85rem;
  line-height: 1.55;
}

.fuente--centrada {
  max-width: 62ch;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* ── Botones ───────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.68rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radio-chico);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    translate 0.18s ease,
    box-shadow 0.18s ease;
}

.boton--grande {
  padding: 0.92rem 1.7rem;
  font-size: 1rem;
}

.boton--marca {
  background: var(--azul-texto);
  color: #fff;
  box-shadow: 0 1px 2px rgb(18 16 14 / 8%);
}

.boton--marca:hover {
  background: var(--azul-hondo);
  translate: 0 -1px;
  box-shadow: 0 6px 18px -8px rgb(26 95 125 / 55%);
}

.boton--linea {
  border-color: var(--linea);
  background: var(--papel);
  color: var(--tinta);
}

.boton--linea:hover {
  border-color: var(--azul-texto);
  color: var(--azul-texto);
  translate: 0 -1px;
}

/* ── Cabecera ──────────────────────────────────────────────────────── */

.encabezado {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Solo al desplazar se separa del contenido; arriba flota sin línea. */
.encabezado[data-desplazado] {
  border-bottom-color: var(--linea);
  box-shadow: 0 1px 12px -6px rgb(18 16 14 / 18%);
}

.encabezado__fila {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.marca__simbolo {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.marca__simbolo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.marca__texto {
  display: flex;
  flex-direction: column;
  font-family: var(--fuente-marca);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.marca__nombre {
  font-size: 1.02rem;
}

.marca__apellido {
  font-size: 1.02rem;
  color: var(--azul-texto);
}

.navegacion {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.navegacion > a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radio-chico);
  color: var(--tinta-media);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.navegacion > a:hover {
  background: var(--papel-alt);
  color: var(--tinta);
}

.navegacion__acceso {
  margin-left: 0.5rem;
  color: #fff;
}

.navegacion__acceso:hover {
  color: #fff;
}

.menu-boton {
  display: none;
  margin-left: auto;
  padding: 0.55rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  background: var(--papel);
  cursor: pointer;
}

/* Tres barras con una sola caja: la de en medio es el fondo del elemento. */
.menu-boton__barras,
.menu-boton__barras::before,
.menu-boton__barras::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--tinta);
  transition:
    translate 0.2s ease,
    rotate 0.2s ease,
    opacity 0.15s ease;
}

.menu-boton__barras::before,
.menu-boton__barras::after {
  content: '';
}

.menu-boton__barras::before {
  translate: 0 -6px;
}

.menu-boton__barras::after {
  translate: 0 4px;
}

.menu-boton[aria-expanded='true'] .menu-boton__barras {
  background: transparent;
}

.menu-boton[aria-expanded='true'] .menu-boton__barras::before {
  translate: 0 1px;
  rotate: 45deg;
}

.menu-boton[aria-expanded='true'] .menu-boton__barras::after {
  translate: 0 -1px;
  rotate: -45deg;
}

/* ── Portada ───────────────────────────────────────────────────────── */

.portada {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 1.5rem + 6vw, 6rem) 0 clamp(3.5rem, 2rem + 6vw, 6.5rem);
  background:
    radial-gradient(60rem 32rem at 82% -12%, rgb(62 156 194 / 13%), transparent 62%),
    radial-gradient(40rem 26rem at 8% 108%, rgb(244 229 0 / 11%), transparent 60%),
    var(--papel);
}

.portada__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
}

.portada__titulo em {
  color: var(--azul-texto);
  font-style: normal;
}

.portada__entrada {
  max-width: 56ch;
  color: var(--tinta-media);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.portada__sellos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linea);
  color: var(--tinta-suave);
  font-size: 0.83rem;
  font-weight: 500;
}

.portada__sellos li {
  position: relative;
  padding-left: 1.1rem;
}

.portada__sellos li::before {
  content: '';
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--azul);
}

.portada__grafico {
  display: grid;
  place-items: center;
}

.ciclo {
  width: min(100%, 30rem);
  height: auto;
  overflow: visible;
}

/*
 * Los tramos entran uno tras otro siguiendo el sentido del ciclo. Es una
 * entrada, no un bucle: llama la atención la primera vez y después se queda
 * quieta, que es lo que uno espera de un logo.
 */
.ciclo__tramo {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: tramo-entra 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* El escalonado va aquí y no en un atributo `style`: la política de seguridad
   del sitio no admite estilos en línea. */
.ciclo__tramo:nth-child(1) { animation-delay: 0ms; }
.ciclo__tramo:nth-child(2) { animation-delay: 90ms; }
.ciclo__tramo:nth-child(3) { animation-delay: 180ms; }
.ciclo__tramo:nth-child(4) { animation-delay: 270ms; }
.ciclo__tramo:nth-child(5) { animation-delay: 360ms; }
.ciclo__tramo:nth-child(6) { animation-delay: 450ms; }

@keyframes tramo-entra {
  from {
    opacity: 0;
    scale: 0.82;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.ciclo__siglas {
  fill: var(--tinta);
  font-family: var(--fuente);
  font-size: 116px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -6px;
  opacity: 0;
  animation: tramo-entra 0.5s ease forwards 0.55s;
}

.ciclo__rotulos text {
  font-family: var(--fuente);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  animation: tramo-entra 0.5s ease forwards 0.75s;
}

/* ── Por qué ───────────────────────────────────────────────────────── */

.porque {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
  background: var(--papel-alt);
  border-block: 1px solid var(--linea);
}

.porque__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}

.porque p {
  color: var(--tinta-media);
}

.riesgos {
  display: grid;
  gap: 0.85rem;
}

.riesgos li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
}

.riesgos strong {
  font-size: 0.98rem;
}

.riesgos span:last-child {
  grid-column: 2;
  color: var(--tinta-media);
  font-size: 0.9rem;
  line-height: 1.5;
}

.riesgos__marca {
  grid-row: span 2;
  width: 4px;
  border-radius: 4px;
  background: var(--azul);
}

.riesgos__marca[data-color='rojo'] {
  background: var(--rojo);
}

.riesgos__marca[data-color='ambar'] {
  background: var(--ambar);
}

/* ── Secciones ─────────────────────────────────────────────────────── */

.seccion {
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0;
}

.seccion--alterna {
  background: var(--papel-alt);
  border-block: 1px solid var(--linea);
}

.seccion__cabecera {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 1rem + 2.5vw, 3.25rem);
}

.seccion__entrada {
  color: var(--tinta-media);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
}

/* ── Las cuatro fases ──────────────────────────────────────────────── */

.fases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.1rem;
}

.fase {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra);
  transition:
    translate 0.2s ease,
    box-shadow 0.2s ease;
}

.fase:hover {
  translate: 0 -3px;
  box-shadow: var(--sombra-alta);
}

/* Cada fase lleva el color que le corresponde en el anillo del logo. */
.fase::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radio) var(--radio) 0 0;
  background: var(--azul-claro);
}

.fase[data-fase='hacer']::before {
  background: var(--azul);
}

.fase[data-fase='verificar']::before {
  background: var(--rojo);
}

.fase[data-fase='actuar']::before {
  background: var(--amarillo);
}

.fase__indice {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--tinta-suave);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.fase p {
  margin: 0;
  color: var(--tinta-media);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Servicios ─────────────────────────────────────────────────────── */

.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.1rem;
}

.servicio {
  padding: 1.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  transition:
    border-color 0.2s ease,
    translate 0.2s ease,
    box-shadow 0.2s ease;
}

.servicio:hover {
  border-color: var(--azul);
  translate: 0 -3px;
  box-shadow: var(--sombra-alta);
}

.servicio h3 {
  margin-bottom: 0.45rem;
}

.servicio p {
  margin: 0;
  color: var(--tinta-media);
  font-size: 0.91rem;
  line-height: 1.6;
}

/* ── Plataforma ────────────────────────────────────────────────────── */

.plataforma__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

.ventajas {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}

.ventajas li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--tinta-media);
  font-size: 0.95rem;
  line-height: 1.55;
}

.ventajas strong {
  color: var(--tinta);
}

/* Palomita dibujada con dos bordes: sin iconos externos que descargar. */
.ventajas li::before {
  content: '';
  position: absolute;
  top: 0.42em;
  left: 0.15rem;
  width: 6px;
  height: 11px;
  border: solid var(--azul-texto);
  border-width: 0 2.5px 2.5px 0;
  rotate: 45deg;
}

.maqueta {
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  background: var(--papel);
  box-shadow: var(--sombra-alta);
  overflow: hidden;
}

.maqueta__barra {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--azul-abismo);
}

.maqueta__punto {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
}

.maqueta__ruta {
  color: rgb(255 255 255 / 82%);
  font-size: 0.78rem;
  font-weight: 500;
}

.maqueta__cuerpo {
  padding: 1.25rem;
}

.maqueta__empresa {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--linea);
}

.maqueta__logo {
  width: 52px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--azul), var(--azul-hondo));
}

.maqueta__lineas {
  display: grid;
  gap: 0.4rem;
}

.maqueta__linea {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--linea);
}

.maqueta__linea--titulo {
  width: 8.5rem;
  height: 11px;
  background: #d3dde4;
}

.maqueta__linea--corta {
  width: 6rem;
}

.maqueta__tarjetas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  margin: 1.1rem 0;
}

.maqueta__tarjeta {
  padding: 0.7rem 0.5rem;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  background: var(--papel-alt);
  color: var(--tinta-suave);
  font-size: 0.72rem;
  text-align: center;
}

.maqueta__tarjeta b {
  display: block;
  color: var(--tinta);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.maqueta__modulos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.maqueta__modulos span {
  height: 44px;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  background: var(--papel-alt);
}

.maqueta__modulos span:nth-child(1) {
  border-color: var(--azul-claro);
}

.maqueta__modulos span:nth-child(4) {
  border-color: var(--azul);
}

.maqueta__modulos span:nth-child(6) {
  border-color: var(--ambar);
}

/* ── Estándares ────────────────────────────────────────────────────── */

.estandares {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.1rem;
}

.estandar {
  padding: 2rem 1.6rem;
  border: 1px solid var(--linea);
  border-top: 4px solid var(--azul-claro);
  border-radius: var(--radio);
  background: var(--papel);
  text-align: center;
  box-shadow: var(--sombra);
}

.estandar--medio {
  border-top-color: var(--ambar);
}

.estandar--alto {
  border-top-color: var(--rojo);
}

.estandar__cifra {
  margin: 0;
  color: var(--azul-texto);
  font-size: clamp(3rem, 2rem + 3.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.estandar--medio .estandar__cifra {
  color: var(--ambar-texto);
}

.estandar--alto .estandar__cifra {
  color: var(--rojo-texto);
}

.estandar h3 {
  margin: 0.3rem 0 0.9rem;
  color: var(--tinta-suave);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.estandar__quien {
  margin: 0;
  color: var(--tinta-media);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ── Contacto ──────────────────────────────────────────────────────── */

.contacto {
  padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0;
  background:
    radial-gradient(48rem 26rem at 88% 8%, rgb(62 156 194 / 22%), transparent 60%),
    var(--azul-abismo);
  color: #fff;
}

.contacto__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.contacto h2 {
  color: #fff;
}

.contacto__entrada {
  max-width: 52ch;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: 1.05rem;
}

.canales {
  display: grid;
  gap: 0.9rem;
}

.canales li {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: var(--radio);
  background: rgb(255 255 255 / 7%);
}

.canales__etiqueta {
  color: var(--azul-claro);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.canales a,
.canales li > span:last-child {
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.canales a:hover {
  text-decoration: underline;
}

/* ── Pie ───────────────────────────────────────────────────────────── */

.pie {
  padding: 3rem 0 2rem;
  background: var(--tinta);
  color: rgb(255 255 255 / 72%);
  font-size: 0.9rem;
}

.pie__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.pie__marca {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.marca__simbolo--pie {
  width: 42px;
  height: 42px;
}

.pie__nombre {
  margin: 0;
  color: #fff;
  font-family: var(--fuente-marca);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pie__nota {
  margin: 0;
  font-size: 0.82rem;
}

.pie__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.pie__enlaces a {
  color: rgb(255 255 255 / 78%);
  text-decoration: none;
}

.pie__enlaces a:hover {
  color: #fff;
  text-decoration: underline;
}

.pie__legal {
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.8rem;
}

.pie__legal p {
  margin: 0 0 0.35em;
  max-width: 78ch;
}

/* Centinela del encabezado: un punto en el tope de la página que el guion
   observa para saber si ya se desplazó. */
.centinela {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
}

/* ── Entradas al desplazar ─────────────────────────────────────────── */

/*
 * Se activan desde JavaScript. Sin él —o con el motor bloqueado— no pasa nada
 * y el contenido se ve igual: la clase la pone el guion solo cuando puede
 * quitarla después.
 */
.js [data-revelar] {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 0.5s ease,
    translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-revelar].es-visible {
  opacity: 1;
  translate: 0 0;
}

/* ── Pantallas estrechas ───────────────────────────────────────────── */

@media (max-width: 60rem) {
  .portada__rejilla,
  .porque__rejilla,
  .plataforma__rejilla,
  .contacto__rejilla {
    grid-template-columns: minmax(0, 1fr);
  }

  .ciclo {
    width: min(100%, 22rem);
  }

  .maqueta {
    max-width: 30rem;
    margin-inline: auto;
  }
}

@media (max-width: 52rem) {
  .menu-boton {
    display: block;
  }

  .navegacion {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--papel);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 12px 28px -18px rgb(18 16 14 / 45%);

    /* Cerrado no ocupa sitio ni recibe el foco por tabulación. */
    visibility: hidden;
    opacity: 0;
    translate: 0 -8px;
    transition:
      opacity 0.18s ease,
      translate 0.18s ease,
      visibility 0.18s;
  }

  .navegacion[data-abierta] {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }

  .navegacion > a {
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
  }

  .navegacion__acceso {
    margin: 0.35rem 0 0;
  }

  .portada__acciones .boton {
    flex: 1 1 12rem;
  }
}

/* ── Movimiento reducido ───────────────────────────────────────────── */

@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;
  }

  .ciclo__tramo,
  .ciclo__siglas,
  .ciclo__rotulos text {
    opacity: 1;
    scale: 1;
  }

  .js [data-revelar] {
    opacity: 1;
    translate: 0 0;
  }
}

/* ── Impresión ─────────────────────────────────────────────────────── */

@media print {
  .encabezado,
  .menu-boton,
  .portada__acciones,
  .maqueta {
    display: none;
  }

  body {
    color: #000;
  }

  .contacto,
  .pie {
    background: none;
    color: #000;
  }
}
