/* Syntryx AI · Máquina de oficina. Un estudio frío y un solo color de objeto. */

/* Archivo en tres caras sin solapes: «es» (español e inglés, la que se precarga), el resto del latín básico
   y el latín extendido. Las dos últimas solo se descargan si la página usa alguno de sus caracteres. */
@font-face {
  font-family: "Archivo";
  src: url("/fuentes/archivo-v1/archivo-es.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00A1, U+00A9-00AB, U+00AE, U+00B0, U+00B7, U+00BA-00BB, U+00BF, U+00C1, U+00C9, U+00CD, U+00D1, U+00D3, U+00DA, U+00DC, U+00E1, U+00E9, U+00ED, U+00F1, U+00F3, U+00FA, U+00FC, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+20AC;
}
@font-face {
  font-family: "Archivo";
  src: url("/fuentes/archivo-v1/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-001F, U+007F-009F, U+00A2-00A8, U+00AC-00AD, U+00AF, U+00B1-00B6, U+00B8-00B9, U+00BC-00BE, U+00C0, U+00C2-00C8, U+00CA-00CC, U+00CE-00D0, U+00D2, U+00D4-00D9, U+00DB, U+00DD-00E0, U+00E2-00E8, U+00EA-00EC, U+00EE-00F0, U+00F2, U+00F4-00F9, U+00FB, U+00FD-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-2012, U+2015-2017, U+201A-201B, U+201E-2021, U+2023-2025, U+2027-206F, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/fuentes/archivo-v1/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ciclorama: #D6E0EA;
  --panel: #F5F8FB;
  --tinta: #0F1B2B;
  --rotulo: #3A4859;
  --canto: #5B6B7E;
  --rojo: #B8322A;
  --rojo-hondo: #9A2821;
  --verde: #1B7F47;
  --verde-hondo: #15693A;
  --azul: #2C58B5;
  --blanco: #FFFFFF;
  --filete: #C2CCD7;
  --margen: clamp(16px, 5vw, 72px);
  --cabecera: 64px;
  --fuente: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  scrollbar-color: var(--canto) var(--ciclorama);
}

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

html {
  background: var(--ciclorama);
  scroll-padding-top: calc(var(--cabecera) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ciclorama);
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  font-stretch: 100%;
  font-kerning: normal;
  overflow-x: clip;
}

::selection { background: var(--tinta); color: var(--panel); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 5px var(--tinta);
  border-radius: 4px;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--panel);
  font-weight: 650;
  text-decoration: none;
  border-radius: 6px;
}
.saltar:focus-visible { top: 12px; }

.icono {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--cabecera);
  background: var(--ciclorama);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease-out;
}
.cabecera.con-filete { border-bottom-color: var(--canto); }

.cabecera-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-inline: var(--margen);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tinta);
  padding: 6px 4px;
  margin-left: -4px;
}
.marca-icono { width: 28px; height: 28px; }
.marca-palabra {
  font-stretch: 112%;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.marca-tecla {
  display: inline-grid;
  place-items: center;
  margin-left: -4px;
  min-width: 30px;
  height: 25px;
  padding: 0 6px 2px;
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 4px;
  box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.3);
  font-weight: 800;
  font-size: 14px;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  line-height: 1;
}

.navegacion { margin-left: auto; }
.navegacion ul { display: flex; gap: 26px; }
.navegacion a, .idioma a {
  font-size: 15px;
  font-stretch: 100%;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
}
.navegacion a:hover, .idioma a:hover { text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }

.idioma {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--rotulo);
}
.idioma span { color: var(--tinta); font-weight: 700; }
/* La barra es decorativa: con texto alternativo vacío, el lector no la lee (la primera línea, para quien no lo entiende). */
.idioma span::after { content: "/"; content: "/" / ""; margin-left: 8px; color: var(--canto); font-weight: 400; }

/* ---------- Botones ---------- */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font-weight: 650;
  font-stretch: 100%;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease-out, transform 140ms ease-out;
}
.boton-rojo { background: var(--rojo); color: var(--blanco); box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.28); }
.boton-rojo:hover { background: var(--rojo-hondo); }
.boton-rojo:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(15, 27, 43, 0.28); }
.boton-rojo:focus-visible, .aprobar:focus-visible {
  box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.28), 0 0 0 2px var(--panel), 0 0 0 5px var(--tinta);
}
.aprobar.aprobada:focus-visible {
  box-shadow: inset 0 0 0 2px var(--verde), 0 0 0 2px var(--panel), 0 0 0 5px var(--tinta);
}
.boton-cabecera { height: 40px; padding: 0 18px; font-size: 15px; }
.boton-grande { height: 56px; padding: 0 26px; font-size: 18px; }

.enlace {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: underline;
  text-decoration-color: var(--canto);
  text-underline-offset: 0.25em;
  padding: 8px 2px;
}
.enlace:hover { text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }
.enlace .icono { width: 18px; height: 18px; }

/* ---------- Capas: el lienzo fijo va detrás del contenido ---------- */

main, .pie { position: relative; z-index: 1; }

.escenario {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease-out;
  overflow: clip;
}
.escenario canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html.escena-lista .escenario { opacity: 1; }
html.escena-lista .escenario.oculto { opacity: 0; }

.pantalla-proyectada {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 70px;
  transform-origin: 0 0;
  display: flex;
  align-items: center;
  padding: 0 24px;
  opacity: 0;
  transition: opacity 220ms ease-out;
  pointer-events: none;
}
.pantalla-proyectada.visible { opacity: 1; }
.pantalla-proyectada p {
  white-space: nowrap;
  color: var(--blanco);
  font-stretch: 78%;
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.005em;
  font-variant-numeric: tabular-nums;
}
.pantalla-proyectada p.apretada { font-size: 36px; }
.pantalla-proyectada p.muy-apretada { font-size: 31px; font-stretch: 70%; }

/* Zonas: el HTML deja libre el sitio donde aparece la máquina. */
.zona { position: relative; }
.dibujo { overflow: hidden; transition: opacity 250ms ease-out; }
.dibujo-portada { overflow: visible; }
.dibujo .fin { display: none; }
.dibujo text { font-family: var(--fuente); font-weight: 700; }
.dibujo .t-pantalla { font-weight: 500; font-stretch: 78%; font-variant-numeric: tabular-nums; }

/* ---------- Portada ---------- */

.portada {
  position: relative;
  padding: clamp(28px, 4.6vh, 48px) var(--margen) 0;
}

.portada h1 {
  font-stretch: 112%;
  font-weight: 760;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 1296px;
}

.portada-intro { margin-top: 28px; }
.entrada {
  font-size: 19px;
  line-height: 1.5;
  color: var(--rotulo);
  max-width: 52ch;
}
.acciones {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
}

.manana figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rotulo);
  max-width: 52ch;
}

/* Línea de estado: la pantalla de la máquina en grande, en HTML (decorativa: lo que dice está en el registro). */
.linea-estado { display: none; }

.manana-controles {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
html.escena-lista .manana-controles { display: flex; }

.control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--canto);
  border-radius: 6px;
  background: transparent;
  color: var(--tinta);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease-out;
}
.control:hover { background: rgba(245, 248, 251, 0.6); }
.control .icono { width: 18px; height: 18px; }
.control[aria-disabled="true"] { opacity: 0.5; cursor: default; }
.control[aria-disabled="true"]:hover { background: transparent; }

/* El botón verde de la demostración. Oculto hasta que hay algo que aprobar; pendiente, verde; aprobado, se queda
   como confirmación hasta repetir la mañana. Nunca un fantasma a media opacidad. */
.aprobar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--verde);
  color: var(--blanco);
  font-size: 16px;
  font-weight: 650;
  font-stretch: 100%;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.25);
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.aprobar:hover { background: var(--verde-hondo); }
.aprobar:active { box-shadow: inset 0 -1px 0 rgba(15, 27, 43, 0.25); }
.aprobar .icono-hecho { display: none; width: 18px; height: 18px; stroke-width: 2.4; }
.aprobar.oculto { visibility: hidden; }
/* «(demostración)» va aparte: en la talla mínima solo se oculta a la vista y el nombre accesible no cambia. */
.aprobar.minimo .aprobar-demo {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.aprobar.aprobada,
.aprobar.aprobada:hover {
  background: var(--panel);
  color: var(--verde);
  box-shadow: inset 0 0 0 2px var(--verde);
  cursor: default;
}
.aprobar.aprobada .icono-hecho { display: block; }
/* Si nadie pulsa en unos segundos, su aro late dos veces (4,8 s, menos de 5) y se queda quieto a la vista.
   Con el foco puesto manda el anillo de foco: el aro no se pinta encima. */
.aprobar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--verde);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}
.aprobar.invita::after { animation: invitar 2.4s cubic-bezier(0.16, 1, 0.3, 1) 2, aro-quieto 600ms ease-out 4.8s forwards; }
.aprobar:focus-visible::after { animation: none; }
@keyframes invitar {
  0% { opacity: 0; transform: scale(1); }
  16% { opacity: 0.9; }
  100% { opacity: 0; transform: scale(1.05, 1.34); }
}
@keyframes aro-quieto { to { opacity: 0.6; } }

/* Avisos de la mañana para lectores de pantalla (región viva cortés). */
.anuncio-manana {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.manana-pasos {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.manana-pasos .hora { font-variant-numeric: tabular-nums; font-weight: 650; }

/* ---------- Qué hacemos ---------- */

.que-hacemos { padding: clamp(80px, 12vh, 140px) var(--margen) clamp(60px, 10vh, 120px); }

.sec-cabecera { max-width: 760px; }
h2 {
  font-stretch: 106%;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.sec-entrada {
  margin-top: 18px;
  font-size: 19px;
  color: var(--rotulo);
  max-width: 54ch;
}

.qh-escena, .garantias-escena, .encargo-escena { position: relative; }

.directorio {
  background: var(--panel);
  border-radius: 10px;
  padding: 24px;
}
@media (min-width: 1024px) { .directorio { padding: 32px; } }
@media (min-width: 1280px) { .directorio { padding: 40px; } }
@media (min-width: 1440px) { .directorio { padding: 44px; } }

.grupo + .grupo { margin-top: 56px; }
.grupo h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-stretch: 106%;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--tinta);
}
.tecla-roja {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--rojo);
  box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.3);
}

.servicio {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--filete);
}
.servicio-cab {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}
.servicio h4 {
  position: relative;
  font-stretch: 104%;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.servicio h4::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 0.38em;
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  background: var(--rojo);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease-out, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.servicio.activo h4::before { opacity: 1; transform: scale(1); }

.chapa {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--canto);
  border-radius: 999px;
  background: var(--blanco);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  color: var(--tinta);
}
.servicio > p { margin-top: 10px; font-size: 17px; line-height: 1.55; max-width: 62ch; }
.servicio dl { margin-top: 14px; display: grid; gap: 8px; }
.servicio dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; }
.servicio dt { font-size: 14px; font-weight: 650; color: var(--rotulo); padding-top: 2px; }
.servicio dd { font-size: 16px; line-height: 1.5; }

.grupo-nota {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--rotulo);
  max-width: 66ch;
}

/* ---------- Lo que va en todo ---------- */

.garantias { padding: clamp(80px, 12vh, 140px) var(--margen); }
.normas { margin-top: 36px; display: grid; gap: 34px; }
.normas li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding-top: 22px;
  border-top: 1px solid var(--canto);
}
.normas .pictograma { grid-row: 1 / span 2; width: 30px; height: 30px; fill: var(--tinta); margin-top: 1px; }
.normas .pictograma.trazo { fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.normas h3 { font-stretch: 104%; font-weight: 700; font-size: 21px; line-height: 1.25; }
.normas p { font-size: 17px; color: var(--rotulo); max-width: 56ch; }

/* ---------- Cómo empieza un encargo ---------- */

.encargo { padding: clamp(80px, 12vh, 140px) var(--margen); }
.pasos { margin-top: 40px; display: grid; gap: 34px; counter-reset: none; }
.pasos li { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.paso-num {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 84px;
  line-height: 0.86;
  color: var(--rojo);
  font-variant-numeric: tabular-nums;
}
.pasos h3 { font-stretch: 104%; font-weight: 700; font-size: 23px; line-height: 1.25; padding-top: 4px; }
.pasos p { margin-top: 6px; font-size: 17px; color: var(--rotulo); max-width: 52ch; }

/* ---------- Preguntas ---------- */

.preguntas {
  position: relative;
  z-index: 2;
  background: var(--ciclorama);
  padding: clamp(80px, 12vh, 140px) var(--margen);
}
.preguntas-in { max-width: 980px; margin: 0 auto; }
.preguntas-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; }
.preguntas-cab p { font-size: 17px; color: var(--rotulo); }
.preguntas-cab a { color: var(--tinta); text-decoration-color: var(--rojo); text-decoration-thickness: 2px; }
.lista-preguntas {
  margin-top: 36px;
  background: var(--panel);
  border-radius: 10px;
  padding: 6px 20px;
}
@media (min-width: 768px) { .lista-preguntas { padding: 6px 28px; } }
@media (min-width: 1200px) { .lista-preguntas { padding: 6px 36px; } }
.lista-preguntas details + details { border-top: 1px solid var(--canto); }
.lista-preguntas summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-stretch: 104%;
  font-weight: 650;
  font-size: 20px;
  line-height: 1.3;
}
.lista-preguntas summary::-webkit-details-marker { display: none; }
.lista-preguntas summary:focus-visible { border-radius: 4px; }
.mas { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; }
.mas .vertical { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1); transform-origin: 12px 12px; }
details[open] .mas .vertical { transform: scaleY(0); }
.lista-preguntas details p { padding: 0 0 24px; font-size: 17px; color: var(--rotulo); max-width: 68ch; }

/* ---------- Contacto ---------- */

.contacto { padding: clamp(90px, 14vh, 160px) var(--margen) clamp(80px, 12vh, 140px); }
.contacto h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; max-width: 15ch; }
.contacto-texto p { margin-top: 18px; font-size: 19px; color: var(--rotulo); max-width: 44ch; }
.contacto-correo { margin-top: 28px; }
.correo-grande {
  display: inline-block;
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--tinta);
  text-decoration: underline;
  text-decoration-color: var(--rojo);
  text-decoration-thickness: 4px;
  text-underline-offset: 0.14em;
  overflow-wrap: anywhere;
}
.correo-grande:hover { color: var(--rojo-hondo); }
.nota { margin-top: 18px; font-size: 17px; color: var(--rotulo); }

/* ---------- Pie ---------- */

.pie { background: var(--ciclorama); border-top: 1px solid var(--canto); }
.pie-in {
  padding: 34px var(--margen) 40px;
  display: grid;
  gap: 14px 32px;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  font-size: 15px;
  color: var(--rotulo);
}
.pie a { color: var(--tinta); }
.pie-casa a:first-child { font-weight: 700; text-decoration: none; }
.pie-enlaces { display: flex; gap: 22px; }
.pie-final { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 28px; }

/* ---------- Escritorio ---------- */

@media (min-width: 1024px) {
  .portada {
    display: grid;
    grid-template-columns: [izq] minmax(0, 488px) 40px [der] minmax(0, 1fr) [fin];
    grid-template-rows: auto auto auto auto auto 1fr;
    min-height: calc(100svh - var(--cabecera));
    padding-right: 0;
    overflow: clip;
  }
  .portada h1 { grid-column: izq / fin; grid-row: 1; margin-right: var(--margen); }
  .portada-intro { grid-column: izq; grid-row: 2; margin-top: 36px; position: relative; z-index: 2; }
  .manana {
    grid-column: izq / fin;
    grid-row: 2 / 7;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    margin-top: 36px;
  }
  .zona-portada {
    grid-column: der / fin;
    grid-row: 1 / -1;
    container-type: size;
    overflow: clip;
    min-height: 420px;
  }
  /* El tercer límite es para ventanas bajas (1366x657, 1280x600): el dibujo, y el 3D que copia su encuadre, se
     encogen para que el panel con «Aprobar» quede en la primera pantalla. Arriba de la zona: cabecera, aire, titular
     de dos líneas y margen; el panel cae al 56 % del alto del dibujo, y el alto es el 78 % del ancho. */
  .dibujo-portada {
    position: absolute;
    left: 0;
    top: 0;
    width: min(112cqw, 168cqh, calc((100svh - var(--cabecera) - clamp(28px, 4.6vh, 48px) - 2 * clamp(2.4rem, 5vw, 4.5rem) - 92px) * 2.3));
    height: auto;
  }
  .manana figcaption { grid-column: izq; grid-row: 2; margin-top: 30px; position: relative; z-index: 2; }
  /* La línea de estado, junto a la máquina y a 20 px: se lee a tres metros, en un proyector. Dos líneas reservadas. */
  html.escena-lista .linea-estado {
    display: block;
    grid-column: izq;
    grid-row: 3;
    align-self: start;
    margin-top: 18px;
    padding: 12px 16px 13px;
    position: relative;
    z-index: 2;
    background: var(--tinta);
    color: var(--blanco);
    border-radius: 6px;
    font-size: 20px;
    line-height: 1.3;
    font-stretch: 88%;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-height: calc(2 * 1.3em + 25px);
    text-wrap: pretty;
  }
  .manana-controles { grid-column: izq; grid-row: 4; align-self: start; margin-top: 14px; padding-bottom: 28px; position: relative; z-index: 2; }
  .manana-pasos { grid-column: izq; grid-row: 5; }

  /* El botón verde va sobre el panel de la máquina, fijo a la ventana como el lienzo (el JS no mide nada): solo se
     traslada y se gira con el panel, sin perspectiva, para que la etiqueta no se tuerza ni encoja. */
  html.escena-escritorio .aprobar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    height: 40px;
    padding: 0 16px;
    transform-origin: 0 0;
    box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.25), 0 2px 6px rgba(15, 27, 43, 0.24);
  }
  html.escena-escritorio .aprobar.compacto { height: 34px; padding: 0 12px; font-size: 15px; gap: 6px; }
  /* Máquina pequeña (1024 px): cabe en el hueco del panel sin tapar la pantalla, con «Aprobar» a la vista. 24 px de
     alto, el mínimo de un objetivo táctil (WCAG 2.5.8), y el aro más ceñido. */
  html.escena-escritorio .aprobar.minimo { height: 24px; padding: 0 10px; }
  html.escena-escritorio .aprobar.minimo::after { inset: -3px; border-radius: 8px; }
  html.escena-escritorio .aprobar.grande { height: 48px; padding: 0 20px; font-size: 18px; }
  html.escena-escritorio .aprobar.aprobada { box-shadow: inset 0 0 0 2px var(--verde), 0 2px 6px rgba(15, 27, 43, 0.18); }
  /* El anillo de foco, también sobre el panel (estas reglas ganan a las de arriba, que lo borraban). */
  html.escena-escritorio .aprobar:focus-visible { box-shadow: inset 0 -2px 0 rgba(15, 27, 43, 0.25), 0 0 0 2px var(--panel), 0 0 0 5px var(--tinta); }
  html.escena-escritorio .aprobar.aprobada:focus-visible { box-shadow: inset 0 0 0 2px var(--verde), 0 0 0 2px var(--panel), 0 0 0 5px var(--tinta); }
  /* Con la portada fuera de la vista no se ve ni se pulsa, pero sigue en el orden del teclado: al recibir el foco,
     la página vuelve arriba y el botón reaparece sobre el panel. */
  html.escena-escritorio .aprobar:not(.proyectado) { opacity: 0; pointer-events: none; }

  /* La máquina vive siempre a la derecha, en una zona fija que sangra hasta el borde; el texto, a la izquierda. */
  .que-hacemos, .garantias, .encargo, .contacto {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .qh-escena, .garantias-escena, .encargo-escena {
    grid-column: 7 / 13;
    grid-row: 1 / 3;
    align-self: stretch;
    margin-right: calc(-1 * var(--margen));
  }
  .zona-plato {
    position: sticky;
    top: 76px;
    height: calc(100vh - 92px);
    max-height: 900px;
  }
  .zona-placa, .zona-teclas {
    position: sticky;
    top: 96px;
    height: calc(100vh - 150px);
    max-height: 820px;
  }
  .zona-plato .dibujo, .zona-placa .dibujo, .zona-teclas .dibujo, .zona-tolva .dibujo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .que-hacemos .sec-cabecera, .garantias-cab, .encargo-cab { grid-column: 1 / 7; grid-row: 1; }
  .directorio { grid-column: 1 / 7; grid-row: 2; margin-top: 44px; }
  .servicio { padding-block: 34px 36px; }
  .garantias { padding-bottom: 0; }
  .normas { grid-column: 1 / 7; grid-row: 2; padding-bottom: 26vh; }
  .encargo { padding-bottom: 0; }
  .pasos { grid-column: 1 / 7; grid-row: 2; gap: 60px; padding-bottom: 34vh; }

  .preguntas { min-height: 100vh; }

  .contacto-texto { grid-column: 1 / 8; grid-row: 1; align-self: end; }
  .contacto-correo { grid-column: 1 / 8; grid-row: 2; }
  .nota { grid-column: 1 / 8; grid-row: 3; }
  .zona-tolva { grid-column: 8 / 13; grid-row: 1 / 4; align-self: stretch; margin-right: calc(-1 * var(--margen)); min-height: 560px; }

  /* Con el 3D en marcha, los dibujos fijos se funden y queda la máquina. */
  html.escena-escritorio .zona .dibujo { opacity: 0; }
}

/* ---------- Móvil y tableta ---------- */

@media (max-width: 1023px) {
  .navegacion, .idioma { display: none; }
  .cabecera-in { justify-content: space-between; }
  .portada { padding-top: 26px; }
  .portada h1 { font-size: clamp(2.375rem, 9.4vw, 3.4rem); font-stretch: 106%; line-height: 1.02; }
  .portada-intro { margin-top: 20px; }
  .entrada { font-size: 18px; }
  .acciones { margin-top: 24px; }
  .boton-grande { width: 100%; font-size: 17px; }
  .manana { margin-top: 28px; }
  .zona-portada { margin-inline: calc(-1 * var(--margen)); overflow: clip; }
  .dibujo-portada { width: 100%; height: auto; }
  .lienzo-movil { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 250ms ease-out; }
  html.escena-movil .lienzo-movil { opacity: 1; }
  html.escena-movil .dibujo-portada { opacity: 0; }
  html.escena-lista .linea-estado {
    display: block;
    margin-top: 6px;
    padding: 12px 14px;
    background: var(--tinta);
    color: var(--blanco);
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    font-stretch: 92%;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    min-height: 3.6em;
  }
  .manana-controles { margin-top: 12px; }
  .manana-controles .aprobar { flex: 1 1 100%; height: 48px; }
  .manana figcaption { margin-top: 16px; }

  .zona-plato, .zona-placa, .zona-teclas, .zona-tolva { margin-block: 28px; }
  .zona .dibujo:not(.dibujo-portada) { width: 100%; height: auto; }
  .directorio { margin-top: 8px; }
  .directorio { margin-inline: calc(-1 * var(--margen) + 8px); }
  .servicio dl div { grid-template-columns: 1fr; gap: 2px; }
  .servicio h4::before { display: none; }
  .normas { margin-top: 8px; }
  .pasos li { grid-template-columns: 64px 1fr; gap: 14px; }
  .paso-num { font-size: 60px; }
  .contacto h2 { max-width: none; }
  .zona-tolva { margin-top: 32px; }
  .pie-in { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .marca-palabra { font-size: 19px; }
  /* Con más espaciado de texto (WCAG 1.4.12) a 320 px: el botón de la cabecera cabe y el grande pasa a dos líneas.
     El hueco mínimo de la cabecera solo cuenta cuando la fila va justa: con espacio de sobra no cambia nada. */
  .cabecera-in { gap: 6px; }
  .boton-cabecera { padding: 0 10px; }
  .boton-grande { white-space: normal; height: auto; min-height: 56px; padding-block: 12px; text-align: center; }
  .lista-preguntas summary { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .aprobar.invita::after { animation: none; }
}

/* Alto contraste: los botones pierden su fondo; un borde transparente se pinta con el color del sistema. */
@media (forced-colors: active) {
  .boton, .aprobar { border: 1px solid transparent; }
}
