/* AA Consulting · css/base.css (ticket base)
 *
 * Índice de lo que ofrece la base. Todo lo demás es de cada sección, con el
 * prefijo de su id (#navegador .ventana, por ejemplo).
 *
 * TOKENS (en :root)
 *   Color      --fondo (grafito cálido) · --hondo (bandas y escenario) · --alzado (ventanas y campos)
 *              --pizarra (solo líneas y bordes) · --niebla (titulares y controles) · --lectura (texto corrido,
 *              más apagado para que no vibre sobre el grafito) · --suave (texto secundario)
 *              --acento (fondo de botones; nunca texto pequeño) · --acento-claro (enlaces, foco,
 *              resaltados y lo interactivo) · --azul-aa (solo decorativo) · --blanco (texto de botones)
 *              El azul es sólo para la marca y la acción: ninguna superficie grande en azul.
 *   Letra      --font-titulo (Jost 500) · --font-cuerpo (la del sistema: Segoe UI, SF, Roboto) · --font-mono (demos)
 *   Tamaños    --texto-demo (12 px, el mínimo dentro de una demo) · --texto-s · --texto · --texto-l
 *              --frase (frases de venta) · --titulo-3 · --titulo-2 · --titulo-1 (todos con clamp)
 *   Espacio    --margen (lateral) · --medianil (entre columnas) · --ritmo (entre secciones)
 *              --alto-encabezado (para despejar el encabezado fijo)
 *   Movimiento --curva (expo.out en CSS) · --curva-suave (power2.inOut)
 *
 * MAQUETACIÓN
 *   .contenedor         ancho máximo y márgenes laterales
 *   .seccion            ritmo vertical entre secciones (la primera de <main> despeja el encabezado)
 *   .rejilla            retícula de 12 columnas desde 768 px; en móvil, una columna
 *     .rejilla__titulo  columnas 1 a 8, para el titular
 *     .rejilla__texto   columnas 1 a 7: el texto alineado con el titular
 *   .regla / <hr>       línea de 1 px en --pizarra
 *   .sr-only            visible solo para lectores de pantalla
 *
 * TIPOGRAFÍA
 *   h1, h2, h3 en Jost 500 con interlineado apretado; <em> dentro no cambia de estilo.
 *   .antetitulo (solo el H1 de la portada lo usa) · .entradilla (texto grande en Jost regular) · .nota (pequeño, --suave)
 *
 * COMPONENTES
 *   .boton .boton--principal    blanco sobre --acento
 *   .boton .boton--secundario   sin relleno, con línea fina
 *   Formularios: .campo (envuelve) > label + input/select/textarea + .campo__ayuda + .campo__error;
 *     .campo--casilla para radio o casilla en línea; [aria-invalid="true"] marca el error.
 *   .encabezado, .nav, .pie   el encabezado y el pie (ticket base)
 *
 * DEMOS (el comportamiento lo pone escena() de js/main.js)
 *   .demo                 la <figure data-demo>; .demo--encendida la pone escena() mientras corre
 *   .demo__escenario      el fondo de la proyección, con el foco de luz (::before)
 *   .ventana              la ventana del producto de AA, sobre --alzado
 *   .ventana__barra       su barra: chevron a la izquierda, título centrado (.ventana__titulo)
 *                         y, si hace falta, algo a la derecha (cualquier otro hijo)
 *   .cursor-ia            el cursor de la IA: flecha en niebla con la etiqueta .cursor-ia__etiqueta «IA»;
 *                         la punta de la flecha es la esquina superior izquierda del elemento
 *   .demo__pie            la etiqueta y el botón .demo__control (Pausar, Reanudar)
 *   .cierre               el trazo con chevron (.cierre__trazo, con [data-trazo]),
 *                         la frase .cierre__frase y el botón
 *
 * SIMULACIÓN E INTERACTIVO (nunca se mezclan en la misma superficie)
 *   Simulación: lo que sólo se mira y se reproduce solo.
 *     .simulacion           en el escenario (o el panel) simulado: no reacciona al puntero
 *                           (pointer-events: none, user-select: none, cursor: default)
 *     .etiqueta-demo.etiqueta-demo--simulacion   «Simulación» en --suave con el ícono de
 *                           repetición; como hija directa de .demo__escenario se sienta sobre
 *                           el borde superior izquierdo del marco
 *     .demo__progreso       la línea de 1 px del borde inferior; la crea y la mueve escena()
 *                           (scaleX con el progreso de la vuelta)
 *     Ningún texto de una simulación le pide al visitante escribir o hacer clic.
 *   Interactivo: lo que se usa.
 *     .interactivo          la superficie: borde de 1 px en --acento-claro y fondo --alzado;
 *                           con [inert] (mientras se construye) el borde y la etiqueta no se ven
 *     .etiqueta-demo.etiqueta-demo--interactivo  «Pruébala» en --acento-claro con el ícono de puntero
 *   La etiqueta lleva aria-hidden="true" cuando repite lo que ya dice el figcaption.
 *   Marcado de las etiquetas (los íconos van en línea, sin emoji):
 *     <span class="etiqueta-demo etiqueta-demo--simulacion" aria-hidden="true">
 *       <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"><path d="M13.25 8A5.25 5.25 0 1 1 11.7 4.3"/><path d="M12.25 1.75V4.6H9.4"/></svg>
 *       Simulación
 *     </span>
 *     <span class="etiqueta-demo etiqueta-demo--interactivo" aria-hidden="true">
 *       <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.25" stroke-linejoin="round"><path d="M3.5 2.5v10l2.7-2.6 1.9 4.1 1.8-.8-1.9-4h3.8z"/></svg>
 *       Pruébala
 *     </span>
 *
 * El marcado de cada componente está en el comentario de js/main.js.
 */

:root {
  color-scheme: dark;

  --fondo: #151413;
  --hondo: #0F0E0D;
  --alzado: #1F1E1C;
  --pizarra: #3A3733;
  --niebla: #ECE8E1;
  --lectura: #CFCAC2;
  --suave: #A29D94;
  --acento: #2563EB;
  --acento-claro: #8DB0FF;
  --azul-aa: #1747B5;
  --blanco: #FFFFFF;

  --font-titulo: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-cuerpo: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --texto-demo: 0.75rem;
  --texto-s: 0.9375rem;
  --texto: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --texto-l: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --frase: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
  --titulo-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --titulo-2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
  --titulo-1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);

  --margen: clamp(1.25rem, 4vw, 3rem);
  --medianil: clamp(1rem, 2vw, 2rem);
  --ritmo: clamp(4rem, 2rem + 6vw, 7.5rem);
  --alto-encabezado: 5.5rem;
  --compactar: 1.25rem;

  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  --curva-suave: cubic-bezier(0.45, 0, 0.55, 1);
}

/* ── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--fondo);
  color: var(--lectura);
  font-family: var(--font-cuerpo);
  font-weight: 400;
  font-size: var(--texto);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, li, dd, figcaption { overflow-wrap: break-word; }
::selection { background: var(--acento); color: var(--blanco); }
[id] { scroll-margin-top: calc(var(--alto-encabezado) + 1rem); }

/* ── tipografía ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--niebla);
  text-wrap: balance;
}
h1 { font-size: var(--titulo-1); }
h2 { font-size: var(--titulo-2); }
h3 { font-size: var(--titulo-3); line-height: 1.2; }
h1 em, h2 em, h3 em { font-style: normal; }
p { text-wrap: pretty; }
strong { font-weight: 500; }

.antetitulo {
  font-size: var(--texto-s);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--suave);
}
.entradilla { font-size: var(--texto-l); line-height: 1.6; max-width: 60ch; }
.nota { font-size: var(--texto-s); color: var(--suave); }

a { color: var(--acento-claro); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--acento-claro); outline-offset: 3px; }
/* Destinos de ancla que no son tabulables: reciben el foco para que el teclado
   siga desde ahí, pero no son controles. */
[tabindex="-1"]:focus { outline: none; }

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

.saltar {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--acento);
  color: var(--blanco);
  text-decoration: none;
  transform: translateY(-200%);
}
.saltar:focus { transform: none; }

/* ── maquetación ───────────────────────────────────────────────────────── */
.contenedor { width: min(100% - 2 * var(--margen), 82rem); margin-inline: auto; }
:where(.seccion) { padding-block: var(--ritmo); }
:where(main > .seccion:first-of-type) { padding-top: calc(var(--alto-encabezado) + var(--ritmo) / 2); }

.rejilla { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 48rem) {
  .rejilla { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--medianil); }
  .rejilla > * { grid-column: 1 / -1; }
  .rejilla > .rejilla__titulo { grid-column: 1 / span 9; }
  .rejilla > .rejilla__texto { grid-column: 1 / span 7; }
}

hr, .regla { border: 0; border-top: 1px solid var(--pizarra); }

/* ── botones ───────────────────────────────────────────────────────────── */
.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-cuerpo);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition: transform 0.4s var(--curva), box-shadow 0.4s var(--curva), border-color 0.4s var(--curva);
}
.boton:hover { transform: translateY(-1px); text-decoration: none; }
.boton:active { transform: translateY(1px); }
.boton--principal { background: var(--acento); color: var(--blanco); }
.boton--principal:hover { box-shadow: 0 0 0 1px var(--acento-claro), 0 12px 32px -12px rgb(0 0 0 / 0.7); }
.boton--secundario { background: transparent; color: var(--niebla); border-color: var(--suave); }
.boton--secundario:hover { border-color: var(--acento-claro); }

/* ── formularios ───────────────────────────────────────────────────────── */
.campo { display: grid; gap: 0.4rem; }
.campo > label, .campo > legend { font-size: 1rem; font-weight: 400; color: var(--niebla); }
.campo__ayuda { font-size: var(--texto-s); color: var(--suave); }
.campo__error { font-size: var(--texto-s); font-weight: 400; color: var(--niebla); padding-left: 0.75rem; border-left: 2px solid var(--acento-claro); }
.campo__error:empty { display: none; }

input:not([type="radio"], [type="checkbox"], [type="submit"], [type="button"], [type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: var(--alzado);
  color: var(--niebla);
  border: 1px solid var(--suave);
  border-radius: 6px;
  font-weight: 400;
  transition: border-color 0.3s var(--curva);
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
/* WebKit pinta el select nativo en gris e ignora el fondo: flecha propia. */
select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--alzado) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238DB0FF' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 0.7rem;
}
input::placeholder, textarea::placeholder { color: var(--suave); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--acento-claro); }
[aria-invalid="true"] { border-color: var(--acento-claro) !important; border-width: 2px !important; }
input[type="radio"], input[type="checkbox"] {
  width: 1.25rem; height: 1.25rem;
  flex: none;
  accent-color: var(--acento);
}
.campo--casilla { display: flex; align-items: flex-start; gap: 0.75rem; }
.campo--casilla > input { margin-top: 0.2rem; }
fieldset { border: 0; padding: 0; min-width: 0; }

/* ── encabezado ────────────────────────────────────────────────────────── */
.encabezado {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--alto-encabezado);
  transition: transform 0.5s var(--curva);
}
/* El fondo compacto: --fondo al 94 % y una línea, sin desenfoque. */
.encabezado::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(21 20 19 / 0.94);
  border-bottom: 1px solid var(--pizarra);
  opacity: 0;
  transition: opacity 0.4s var(--curva);
}
.encabezado--compacto { transform: translateY(calc(-1 * var(--compactar))); }
.encabezado--compacto::before { opacity: 1; }
.encabezado__fila {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: transform 0.5s var(--curva);
}
.encabezado--compacto .encabezado__fila { transform: translateY(calc(var(--compactar) / 2)); }
.encabezado__logo { flex: none; display: block; }
.encabezado__logo img { width: 157px; height: 28px; }

.nav__lista { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
.nav__lista a:not(.boton) { color: var(--niebla); text-decoration: none; font-size: 1rem; font-weight: 400; }
.nav__lista a:not(.boton):hover { color: var(--acento-claro); }
.nav__boton {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--niebla);
  border: 1px solid var(--suave);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 400;
}
.nav__icono { position: relative; width: 1rem; height: 0.5rem; }
.nav__icono::before, .nav__icono::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--curva);
}
.nav__icono::before { top: 0; }
.nav__icono::after { bottom: 0; }
.nav__boton[aria-expanded="true"] .nav__icono::before { transform: translateY(0.25rem) rotate(45deg); }
.nav__boton[aria-expanded="true"] .nav__icono::after { transform: translateY(-0.25rem) rotate(-45deg); }

/* Sin JavaScript no hay botón de menú: el encabezado deja de ser fijo y la
   lista se ve completa. */
html:not(.js) .encabezado { position: relative; height: auto; padding-block: 1.25rem; }
html:not(.js) .encabezado::before { opacity: 1; }
html:not(.js) .encabezado__fila { flex-wrap: wrap; }
html:not(.js) :where(main > .seccion:first-of-type) { padding-top: var(--ritmo); }

@media (max-width: 71.99rem) {
  .js .nav__boton { display: inline-flex; }
  .js .nav__lista {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    height: calc(100dvh - var(--alto-encabezado) + var(--compactar));
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--margen) 3rem;
    background: var(--hondo);
    border-top: 1px solid var(--pizarra);
  }
  .js .nav__boton[aria-expanded="true"] + .nav__lista { display: flex; }
  .js .nav__lista li { width: 100%; }
  .js .nav__lista a:not(.boton) {
    display: block;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--pizarra);
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    line-height: 1.2;
  }
  .js .nav__lista .boton { margin-top: 2rem; width: 100%; }
}

/* ── pie ───────────────────────────────────────────────────────────────── */
.pie {
  background: var(--hondo);
  border-top: 1px solid var(--pizarra);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2rem;
}
.pie__rejilla { display: grid; gap: 3rem; }
.pie__marca { display: grid; gap: 1.25rem; justify-items: start; }
.pie__marca img { width: 196px; height: 35px; }
.pie__claim { font-family: var(--font-titulo); font-weight: 500; font-size: var(--titulo-3); line-height: 1.2; }
.pie__nav ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.25rem 2rem; }
.pie__nav a { display: inline-block; padding-block: 0.4rem; color: var(--niebla); text-decoration: none; }
.pie__nav a:hover { color: var(--acento-claro); text-decoration: underline; }
.pie__legal {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--pizarra);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: var(--texto-s);
  color: var(--suave);
}
.pie__firma { max-width: 46ch; }
@media (min-width: 48rem) {
  .pie__rejilla { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--medianil); }
  .pie__marca { grid-column: 1 / span 5; }
  .pie__nav { grid-column: 7 / -1; }
}

/* ── demos ─────────────────────────────────────────────────────────────── */
.demo { position: relative; margin: 0; }
.demo__escenario {
  position: relative;
  isolation: isolate;
  padding: clamp(0.75rem, 4vw, 3.5rem);
  background: var(--hondo);
  border: 1px solid var(--pizarra);
  border-radius: 4px;
}
/* El foco de luz: un halo blanco cálido muy tenue (6 %) detrás de la ventana.
   escena() lo enciende al arrancar (.demo--encendida) y lo deja encendido
   mientras la demo se repite. */
.demo__escenario::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 50% 48%, rgb(255 246 230 / 0.06), rgb(255 246 230 / 0) 72%);
  opacity: 0;
  transition: opacity 1.2s var(--curva-suave);
}
.demo--encendida .demo__escenario::before { opacity: 1; }

.ventana {
  position: relative;
  overflow: hidden;
  background: var(--alzado);
  color: var(--niebla);
  border: 1px solid var(--pizarra);
  border-radius: 10px;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.75);
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 400;
}
.ventana__barra {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--fondo);
  border-bottom: 1px solid var(--pizarra);
  font-size: var(--texto-demo);
  color: var(--suave);
}
/* La marca propia de la barra: el chevron de AA. */
.ventana__barra::before {
  content: "";
  grid-column: 1;
  justify-self: start;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.15rem;
  border-top: 1.5px solid var(--acento-claro);
  border-right: 1.5px solid var(--acento-claro);
  transform: rotate(45deg);
}
.ventana__titulo {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--texto-demo);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--suave);
}
.ventana__barra > :not(.ventana__titulo) { grid-column: 3; justify-self: end; }

.cursor-ia {
  position: absolute;
  top: 0; left: 0;
  z-index: 10;
  width: 1.375rem;
  height: 1.625rem;
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.55));
  will-change: transform;
}
.cursor-ia::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--niebla);
  clip-path: polygon(0 0, 0 82%, 24% 63%, 42% 100%, 58% 93%, 41% 58%, 76% 58%);
}
.cursor-ia__etiqueta {
  position: absolute;
  top: 1.35rem;
  left: 1rem;
  padding: 0.1rem 0.4rem;
  background: var(--hondo);
  border: 1px solid var(--acento-claro);
  border-radius: 3px;
  font-family: var(--font-cuerpo);
  font-size: var(--texto-demo);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--acento-claro);
  white-space: nowrap;
}

.demo__pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
  font-size: var(--texto-s);
  color: var(--suave);
}
.demo__control {
  min-height: 2.5rem;
  min-width: 7rem;
  padding: 0.4rem 1.1rem;
  background: transparent;
  color: var(--niebla);
  border: 1px solid var(--suave);
  border-radius: 999px;
  font-size: var(--texto-s);
  font-weight: 400;
  transition: border-color 0.3s var(--curva);
}
.demo__control:hover { border-color: var(--acento-claro); }

/* ── simulación e interactivo (manual arriba) ──────────────────────────── */
.etiqueta-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--texto-demo);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.etiqueta-demo svg { width: 0.875rem; height: 0.875rem; flex: none; }
.etiqueta-demo--simulacion { color: var(--suave); }
.etiqueta-demo--interactivo { color: var(--acento-claro); }
/* Sobre el borde superior izquierdo del marco, como la leyenda de un fieldset. */
.demo__escenario > .etiqueta-demo {
  position: absolute;
  z-index: 21;
  top: 0;
  left: clamp(0.75rem, 2vw, 1.5rem);
  padding: 0 0.5rem;
  background: var(--hondo);
  transform: translateY(-50%);
}

.simulacion, .simulacion * { pointer-events: none; user-select: none; -webkit-user-select: none; cursor: default; }

/* La línea de progreso y el velo entre vueltas: los crea escena(). */
.demo__progreso {
  position: absolute;
  z-index: 21;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--suave);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.demo__velo {
  position: absolute;
  z-index: 20;
  inset: 0;
  border-radius: inherit;
  background: var(--hondo);
  opacity: 0;
  pointer-events: none;
}

.interactivo {
  background: var(--alzado);
  border: 1px solid var(--acento-claro);
  border-radius: 8px;
  transition: border-color 0.6s var(--curva-suave);
}
/* Los campos se distinguen del fondo de la superficie. */
.interactivo :is(input:not([type="radio"], [type="checkbox"]), select, textarea) { background-color: var(--fondo); }
.interactivo > .etiqueta-demo--interactivo { transition: opacity 0.6s var(--curva-suave); }
/* Mientras se construye (inert), ni el borde ni la etiqueta: todavía no se usa. */
.interactivo[inert] { border-color: transparent; }
.interactivo[inert] > .etiqueta-demo--interactivo { opacity: 0; }

/* ── cierre de cada demo ───────────────────────────────────────────────── */
.cierre {
  display: grid;
  justify-items: start;
  gap: 1.5rem;
  max-width: 46rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.cierre__trazo { width: 12rem; height: 1rem; overflow: visible; }
.cierre__trazo .cierre__linea { stroke: var(--pizarra); }
.cierre__trazo .cierre__chevron { stroke: var(--acento); }
.cierre__frase {
  font-family: var(--font-titulo);
  font-size: var(--frase);
  line-height: 1.4;
  max-width: 40ch;
  color: var(--niebla);
}

/* ── movimiento reducido ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── aviso de cookies (js/cookies.js) ───────────────────────────────────── */
/* En el flujo, bajo el encabezado fijo; o junto al pie desde «Preferencias de cookies». */
.cookies { position: relative; z-index: 1; background: var(--hondo); border-block: 1px solid var(--pizarra); padding-block: 1rem; font-size: 1rem; }
body > .cookies { margin-block: var(--alto-encabezado) calc(-1 * var(--alto-encabezado)); }
.pie > .cookies { margin-top: 1.5rem; }
.cookies[hidden] { display: none; }
.cookies__fila { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.cookies__texto { flex: 1 1 22rem; color: var(--niebla); }
.cookies__botones { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cookies .boton { min-height: 2.75rem; padding-block: 0.5rem; }
.pie__cookies { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.pie__cookies:hover { color: var(--acento-claro); }
