/* Docutelia — sitio del ecosistema
   Familia visual de Documentos.app («premium»): Inter en todo; Newsreader (400, ≥ 24 px) solo en lo que se resalta:
   el titular de la portada, el lema de cada aplicación, las citas y las cifras (.dt-destaca, .dt-frase, .dt-cita,
   .dt-cifra). El logotipo es un dibujo (SVG). Fuentes autoalojadas. Tokens de color y tipo: marca-tokens.css (brand kit) + tokens.css (alias de esta hoja).
   Filetes en lugar de tarjetas, sin degradados ni sombras de adorno. Lo que se mueve tiene función: la escena de la
   portada (canvas, js/ecosistema.js), los pasos de «Cómo trabaja» y la micro-animación de cada aplicación. Con
   movimiento reducido todo queda quieto en su estado final. */

:root {
  --t-portada: clamp(2.7rem, 1.3rem + 4.6vw, 5.4rem);
  --t-h2: var(--dt-t-h2);
  --t-entrada: clamp(1.1rem, 1.02rem + 0.32vw, 1.28rem);
  --t-base: 1.0625rem;
  --t-chica: 0.875rem;

  --ancho: 1200px;
  --margen: clamp(16px, 4vw, 40px);
  --seccion: clamp(88px, 7vw + 48px, 152px);
  --cabecera: 72px;

  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);

}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--cabecera);
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

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

.contenedor {
  width: 100%;
  max-width: calc(var(--ancho) + var(--margen) * 2);
  margin-inline: auto;
  padding-inline: var(--margen);
}

.saltar {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--papel);
  text-decoration: none;
  transform: translateY(-160%);
}

.saltar:focus-visible {
  transform: none;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Titulares */

h1, h2 {
  font-family: var(--dt-f-titulares);
  font-weight: 500;
  letter-spacing: var(--dt-ls-titular);
  text-wrap: balance;
}

h1 {
  font-size: var(--t-portada);
  line-height: 0.98;
}

/* Una idea resaltada: el hilo ámbar del kit (subrayado), no cursiva. La cursiva es solo del titular de la portada. */
h1 em, h2 em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--dt-hilo);
  text-decoration-thickness: 0.045em;
  text-underline-offset: 0.16em;
}

/* Lo destacado (kit: componentes.css). Con data-marca="docutelia", en Newsreader a 400 y ≥ 24 px; solo estas cuatro piezas. */
.dt-destaca, .dt-cita, .dt-frase, .dt-cifra {
  font-family: var(--dt-f-destaca);
  font-weight: var(--dt-p-destaca);
  letter-spacing: var(--dt-ls-destaca);
  color: var(--dt-titular);
  text-wrap: balance;
}
:root[data-marca="docutelia"] .dt-destaca em { font-style: italic; text-decoration: none; }
.dt-cita, .dt-frase { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem); line-height: 1.28; letter-spacing: -.012em; max-width: 34ch; }
.dt-frase { font-style: italic; }
.dt-cita footer { margin-top: 14px; font: 400 var(--dt-t-nota)/1.5 var(--dt-f-sans); letter-spacing: 0; color: var(--dt-suave); }
.dt-cifra { font-size: clamp(2.25rem, 1.7rem + 2.2vw, 3.5rem); line-height: 1; font-variant-numeric: lining-nums; }

h2 {
  font-size: var(--t-h2);
  line-height: 1;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.heroe .heroe-texto h1.dt-destaca { font-weight: var(--dt-p-destaca); letter-spacing: var(--dt-ls-destaca); }

p {
  text-wrap: pretty;
}

.entrada {
  max-width: 40rem;
  color: var(--grafito);
  font-size: var(--t-entrada);
  line-height: 1.5;
}

/* Botones y enlaces */

.acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.boton:hover {
  background: var(--tinta-hover);
}

.boton-chico {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.boton-claro {
  background: var(--cierre-texto);
  color: var(--cierre-fondo);
  background-image: none;
}

.boton-claro:hover {
  background: var(--papel-hover);
}

.enlace {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--gris);
  transition: text-decoration-color 0.2s ease;
}

.enlace:hover {
  text-decoration-color: currentColor;
}

.enlace-claro {
  color: var(--cierre-texto);
}

/* Cabecera */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--papel);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.con-scroll .cabecera {
  border-bottom-color: var(--filete);
}

.cabecera-fila {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--cabecera);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-marca {
  width: 26px;
  height: 26px;
}

.logo-texto {
  display: block;
  width: auto;
  height: 18px;
  fill: currentColor;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--grafito);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--tinta);
}

.cabecera-acciones {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-boton,
.menu-cerrar {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tinta);
  cursor: pointer;
}

.menu-boton svg,
.menu-cerrar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.menu-movil {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 88px var(--margen) 32px;
  border: 0;
  background: var(--papel);
  flex-direction: column;
  gap: 4px;
}

.menu-movil:popover-open {
  display: flex;
}

.menu-movil a:not(.boton) {
  padding: 14px 0;
  border-bottom: 1px solid var(--filete);
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: var(--dt-ls-titulo);
  text-decoration: none;
}

.menu-movil .boton {
  margin-top: 28px;
}

.menu-cerrar {
  display: grid;
  position: absolute;
  top: 14px;
  right: var(--margen);
}

/* Glifos (iconos de trazo de 24 × 24) */

.glifo, .logo-marca, .app-glifo, .eco-glifo, .sigue-glifo, .maqueta-marca {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(.glifo, .logo-marca, .app-glifo, .eco-glifo, .sigue-glifo, .red-glifo, .maqueta-marca) circle {
  fill: currentColor;
  stroke: none;
}

:is(.glifo, .logo-marca, .app-glifo, .prod-glifo, .eco-glifo, .sigue-glifo, .red-glifo) circle.oro {
  fill: var(--oro);
}

/* ── Portada ── */

.heroe {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
  overflow: hidden;
}

/* Titular y entrada lado a lado: la escena tiene que verse en la primera pantalla. */
.heroe-texto {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px clamp(40px, 6vw, 96px);
  align-items: end;
}

.heroe-texto h1 {
  font-size: clamp(2.7rem, 1.3rem + 3.9vw, 4.9rem);
}

.heroe-texto h1 .linea {
  display: block;
}

.heroe-lado .entrada {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
}

.heroe-lado .acciones {
  margin-top: 28px;
}

/* ── Secciones ── */

.seccion {
  padding-block: var(--seccion);
}

/* Las piezas entran con el scroll (sin JS); donde no hay animation-timeline, están quietas. Propiedades largas: el
   atajo `animation` con `animation-timeline` lo rechazan algunos motores. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .aparece {
      animation-name: aparecer;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Para quién */


.quien h2 {
  max-width: 18ch;
}

.quien-lista {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.quien-lista li {
  padding-top: 22px;
  border-top: 1px solid var(--filete);
}

.quien-lista p {
  margin-top: 8px;
  color: var(--grafito);
}

/* Privacidad */

.privacidad {
  background: var(--papel);
}

.privacidad-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px clamp(40px, 6vw, 104px);
}

.privacidad h2 {
  max-width: 14ch;
}

.garantias {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.garantias li {
  padding-top: 22px;
  border-top: 1px solid var(--filete);
}

.garantias p {
  margin-top: 8px;
  color: var(--grafito);
}

.aviso-legal {
  grid-column: 2;
  color: var(--gris);
  font-size: var(--t-chica);
}

/* Cierre */

.cierre {
  padding-block: clamp(72px, 8vw, 128px);
  background: var(--cierre-fondo);
  color: var(--cierre-texto);
}

.cierre-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cierre h2 {
  max-width: 16ch;
}

.cierre .entrada {
  margin-top: 18px;
  color: var(--pie-texto);
}

/* Pie */

.pie {
  padding-top: 72px;
  border-top: 1px solid var(--filete);
  font-size: 0.9375rem;
}

.pie-rejilla {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.pie-marca p {
  max-width: 24ch;
  margin-top: 16px;
  color: var(--grafito);
}

.pie-columna {
  display: grid;
  align-content: start;
  gap: 10px;
}

.pie-columna p {
  margin-bottom: 4px;
  font-weight: 600;
}

.pie-columna a {
  color: var(--grafito);
  text-decoration: none;
}

.pie-columna a:hover {
  color: var(--tinta);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pie-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 64px;
  padding-block: 24px 32px;
  color: var(--gris);
  font-size: var(--t-chica);
}

/* El filete, al ancho del contenido (el de .contenedor llegaría hasta el margen). */
.pie-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--margen);
  right: var(--margen);
  border-top: 1px solid var(--filete);
}

/* ── Página de una aplicación ── */

.migas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gris);
  font-size: var(--t-chica);
}

.migas a {
  color: var(--grafito);
  text-decoration: none;
}

.migas a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.app-heroe {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

.app-heroe-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px clamp(40px, 6vw, 104px);
  align-items: center;
}

.app-heroe-texto .app-estado {
  display: block;
  margin-top: 40px;
  padding: 0;
}

.app-heroe h1 {
  margin-top: 14px;
  font-size: clamp(2.9rem, 1.5rem + 4.4vw, 5.2rem);
}

/* Nombres de una sola palabra larga (Reclamaciones.app): más pequeños para que no invadan la figura. */
.app-heroe h1.nombre-largo {
  font-size: clamp(2.3rem, 1.1rem + 3vw, 4rem);
}

.app-lema {
  margin-top: 22px;
}

.app-heroe .entrada {
  margin-top: 22px;
}

.app-heroe .acciones {
  margin-top: 36px;
}

.anim {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: clamp(24px, 4vw, 48px);
  --radio-hoja: 20px;
}
/* Cierre: placa con el glifo de Docutelia; el texto va en una columna a la izquierda (calma solo sobre ella). */
.cierre { background: none; color: inherit; padding-block: var(--seccion); }
.cierre .cierre-placa.dt-trama { padding: clamp(32px, 6vw, 88px); min-height: 380px; display: grid; align-items: center; }
.cierre-texto { max-width: 46%; display: grid; gap: 18px; justify-items: start; }
.cierre h2 { max-width: 14ch; }
.cierre .entrada { color: var(--grafito); max-width: 34rem; }
.cierre .acciones { margin-top: 10px; }

/* Fichas: la placa con el glifo de la app. */
.app-red-placa { height: clamp(260px, 30vw, 400px); }

/* Blancos de toque de al menos 24 px. */
.migas a, .enlace { display: inline-flex; align-items: center; min-height: 28px; }

.anim figcaption {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--gris);
  font-size: 0.75rem;
}

.app-puntos {
  padding-top: 0;
}

.puntos-lista {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.puntos-lista li {
  padding-top: 22px;
  border-top: 1px solid var(--filete);
}

.puntos-lista h3 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--dt-ls-titulo);
}

.puntos-lista p {
  margin-top: 10px;
  color: var(--grafito);
}

.app-red {
  background: var(--velo);
}

.app-red-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px clamp(40px, 6vw, 104px);
  align-items: center;
}

.app-red h2 {
  max-width: 12ch;
}

.app-red .entrada {
  margin-block: 20px 24px;
}

.sigue {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "rotulo rotulo"
    "glifo nombre";
  gap: 10px 14px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--filete);
  text-decoration: none;
}

.sigue > span {
  grid-area: rotulo;
  color: var(--gris);
  font-size: var(--t-chica);
}

.sigue-glifo {
  grid-area: glifo;
  width: 30px;
  height: 30px;
}

.sigue strong {
  grid-area: nombre;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: var(--dt-ls-titulo);
}

.sigue:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.app-sigue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px clamp(32px, 6vw, 96px);
}

.sigue-sig {
  text-align: right;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "rotulo rotulo"
    "nombre glifo";
}

/* ── Micro-animaciones de las aplicaciones ──
   El estado base es el final (lo que se ve con movimiento reducido); los fotogramas clave lo recorren en bucle. */

@media (prefers-reduced-motion: no-preference) {
  .anim * {
    animation-duration: var(--ciclo, 7s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: var(--curva);
  }
}

/* Documentos.app */

.a-doc {
  width: min(100%, 300px);
  height: auto;
}

.a-doc-hoja,
.a-doc-pliegue {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.a-doc-linea {
  fill: var(--gris-claro);
  transform-box: fill-box;
  transform-origin: left center;
}

.a-doc-linea.a-l1 {
  fill: var(--tinta);
}

.a-doc-sello {
  fill: none;
  stroke: var(--gris);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.a-doc-gota {
  fill: var(--oro);
  transform-box: fill-box;
  transform-origin: center bottom;
}

.a-doc-estado {
  display: grid;
  justify-items: center;
  margin-top: 14px;
  font-size: var(--t-chica);
}

.a-doc-estado > span {
  grid-area: 1 / 1;
}

.a-doc-sede {
  color: var(--gris);
  opacity: 0;
}

.a-doc-listo::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--oro);
  vertical-align: 0.12em;
}

@media (prefers-reduced-motion: no-preference) {
  .anim-documentos { --ciclo: 7.5s; }
  .a-doc-hoja, .a-doc-pliegue { animation-name: doc-hoja; }
  .a-doc-linea { animation-name: doc-linea; }
  .a-l2 { animation-delay: 0.15s; }
  .a-l3 { animation-delay: 0.3s; }
  .a-l4 { animation-delay: 0.45s; }
  .a-l5 { animation-delay: 0.6s; }
  .a-l6 { animation-delay: 0.75s; }
  .a-l7 { animation-delay: 0.9s; }
  .a-doc-sello { animation-name: doc-sello; }
  .a-doc-gota { animation-name: doc-gota; animation-timing-function: ease-in; }
  .a-doc-sede { animation-name: doc-sede; }
  .a-doc-listo { animation-name: doc-listo; }
}

@keyframes doc-hoja {
  0% { stroke-dashoffset: 1; opacity: 1; }
  16%, 88% { stroke-dashoffset: 0; opacity: 1; }
  96%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes doc-linea {
  0%, 14% { transform: scaleX(0); opacity: 1; }
  26%, 88% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes doc-sello {
  0%, 36% { opacity: 0; }
  42%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

@keyframes doc-gota {
  0%, 44% { transform: translateY(-190px) scale(0.6); opacity: 0; }
  46% { opacity: 1; }
  54% { transform: translateY(0) scale(1.15, 0.8); opacity: 1; }
  58% { transform: translateY(-8px) scale(0.95, 1.05); }
  62%, 88% { transform: none; opacity: 1; }
  96%, 100% { transform: none; opacity: 0; }
}

@keyframes doc-sede {
  0% { opacity: 0; }
  6%, 52% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@keyframes doc-listo {
  0%, 54% { opacity: 0; }
  60%, 88% { opacity: 1; }
  96%, 100% { opacity: 0; }
}

/* Expediente */

.a-exp {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  width: min(100%, 440px);
}

.a-exp-docs {
  display: grid;
  gap: 14px;
}

.a-exp-doc {
  width: 40px;
  height: 52px;
  fill: var(--papel);
  stroke: var(--grafito);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.a-exp-ficha {
  border: 1px solid var(--filete);
  border-radius: 8px;
  background: var(--papel);
  font-size: 0.8125rem;
}

.a-exp-ficha > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border-top: 1px dashed var(--filete);
  font-family: var(--mono);
}

.a-exp-ficha dt {
  color: var(--gris);
}

.a-exp-ficha > .a-exp-cab {
  border-top: 0;
  padding-block: 14px;
  background: var(--velo);
  font-family: var(--sans);
  border-radius: 8px 8px 0 0;
}

.a-exp-cab dt {
  color: var(--tinta);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .anim-expediente { --ciclo: 8s; }
  .a-exp-doc { animation-name: exp-doc; }
  .a-exp-doc-2 { animation-delay: 0.35s; }
  .a-exp-doc-3 { animation-delay: 0.7s; }
  .a-exp-fila { animation-name: exp-fila; }
  .a-exp-f2 { animation-delay: 0.18s; }
  .a-exp-f3 { animation-delay: 0.36s; }
  .a-exp-f4 { animation-delay: 0.54s; }
  .a-exp-f5 { animation-delay: 0.72s; }
  .a-exp-f6 { animation-delay: 0.9s; }
  .a-exp-f7 { animation-delay: 1.2s; }
}

@keyframes exp-doc {
  0%, 4% { transform: translateX(-20px); opacity: 0; }
  10%, 18% { transform: none; opacity: 1; }
  28%, 100% { transform: translateX(70px) scale(0.6); opacity: 0; }
}

@keyframes exp-fila {
  0%, 26% { transform: translateX(-10px); opacity: 0; }
  32%, 88% { transform: none; opacity: 1; }
  96%, 100% { transform: none; opacity: 0; }
}

/* Anonimiza.app */

.a-ano {
  width: min(100%, 460px);
}

.a-ano-texto {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.55;
}

.a-ano-dato {
  position: relative;
  color: transparent;
  white-space: nowrap;
}

.a-ano-dato::after {
  content: "";
  position: absolute;
  inset: 0.32em -1px 0.2em;
  background-image: radial-gradient(circle, var(--tinta) 1.15px, transparent 1.45px);
  background-size: 5px 5px;
  transform-origin: left center;
}

.a-ano-pie {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--filete);
  color: var(--grafito);
  font-size: var(--t-chica);
}

.a-ano-cuenta {
  color: var(--tinta);
  font-weight: 600;
}

@media (prefers-reduced-motion: no-preference) {
  .anim-anonimiza { --ciclo: 7s; }
  .a-ano-dato { animation-name: ano-dato; }
  .a-ano-dato::after {
    animation-name: ano-puntos;
    animation-duration: var(--ciclo, 7s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: var(--curva);
  }
  .a-d2, .a-d2::after { animation-delay: 0.45s; }
  .a-d3, .a-d3::after { animation-delay: 0.9s; }
  .a-d4, .a-d4::after { animation-delay: 1.35s; }
  .a-ano-pie { animation-name: ano-pie; }
}

@keyframes ano-dato {
  0%, 16% { color: var(--tinta); }
  24%, 86% { color: transparent; }
  94%, 100% { color: var(--tinta); }
}

@keyframes ano-puntos {
  0%, 14% { transform: scaleX(0); }
  24%, 86% { transform: scaleX(1); }
  94%, 100% { transform: scaleX(0); }
}

@keyframes ano-pie {
  0%, 42% { opacity: 0; }
  50%, 86% { opacity: 1; }
  94%, 100% { opacity: 0; }
}

/* Escáner judicial */

.a-esc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(100%, 470px);
}

.a-esc-doc {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.a-esc-hoja {
  fill: var(--papel);
  stroke: var(--tinta);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.a-esc-linea {
  fill: var(--gris-claro);
}

.a-esc-linea.a-esc-clave {
  fill: var(--tinta);
}

.a-esc-barrido {
  fill: var(--tinta);
  opacity: 0;
}

.a-esc-marcas {
  display: grid;
  gap: 18px;
  font-size: 0.8125rem;
}

.a-esc-marcas li {
  display: grid;
  padding-left: 12px;
  border-left: 1.5px solid var(--tinta);
  line-height: 1.35;
}

.a-esc-marcas span {
  color: var(--gris);
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: no-preference) {
  .anim-escaner-judicial { --ciclo: 6.5s; }
  .a-esc-barrido { animation-name: esc-barrido; animation-timing-function: linear; }
  .a-esc-clave { animation-name: esc-clave; }
  .a-esc-marcas li { animation-name: esc-marca; }
  .a-esc-m1 { animation-delay: 0s; }
  .a-esc-m2 { animation-delay: 1s; }
  .a-esc-m3 { animation-delay: 2.3s; }
}

@keyframes esc-barrido {
  0% { transform: translateY(40px); opacity: 0; }
  4% { opacity: 1; }
  66% { transform: translateY(345px); opacity: 1; }
  70%, 100% { transform: translateY(345px); opacity: 0; }
}

@keyframes esc-clave {
  0%, 12% { fill: var(--gris-claro); }
  18%, 88% { fill: var(--tinta); }
  96%, 100% { fill: var(--gris-claro); }
}

@keyframes esc-marca {
  0%, 14% { opacity: 0; transform: translateX(-8px); }
  20%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}

/* Escáner de deuda */

.a-deu {
  width: min(100%, 420px);
  font-variant-numeric: tabular-nums;
}

.a-deu-fila {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--filete);
}

.a-deu-acreedor {
  display: grid;
  line-height: 1.3;
}

.a-deu-acreedor small {
  color: var(--gris);
  font-size: 0.75rem;
}

.a-deu-importe {
  font-family: var(--mono);
  font-size: 0.9375rem;
}

.a-deu-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1.5px solid var(--tinta);
}

.a-deu-total span:first-child {
  color: var(--grafito);
}

.a-deu-suma {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: var(--dt-ls-titulo);
}

@media (prefers-reduced-motion: no-preference) {
  .anim-escaner-deuda { --ciclo: 7s; }
  .a-deu-fila { animation-name: deu-fila; }
  .a-deu-f2 { animation-delay: 0.6s; }
  .a-deu-f3 { animation-delay: 1.2s; }
  .a-deu-total { animation-name: deu-total; }
}

@keyframes deu-fila {
  0%, 8% { opacity: 0; transform: translateY(8px); }
  14%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}

@keyframes deu-total {
  0%, 40% { opacity: 0; transform: translateY(8px); }
  48%, 86% { opacity: 1; transform: none; }
  94%, 100% { opacity: 0; transform: none; }
}

/* Reclamaciones.app */

.a-rec {
  width: min(100%, 440px);
}

.a-rec-ficha {
  border: 1px solid var(--filete);
  border-radius: 8px;
  background: var(--papel);
}

.a-rec-ficha > div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--filete);
  font-size: 0.875rem;
}

.a-rec-ficha > div:first-child {
  border-top: 0;
}

.a-rec-ficha dt {
  color: var(--gris);
}

.a-rec-estados {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  font-size: 0.8125rem;
}

.a-rec-estados::before,
.a-rec-estados::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  right: calc(33.33% - 6px);
  height: 1px;
  background: var(--gris-claro);
}

.a-rec-estados::after {
  background: var(--tinta);
  right: calc(33.33% - 6px);
  transform-origin: left center;
}

.a-rec-estados li {
  position: relative;
  display: grid;
  gap: 10px;
  color: var(--tinta);
}

.a-rec-estados li::before {
  content: "";
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--tinta);
  border-radius: 50%;
  background: var(--tinta);
}

.a-rec-estados .a-rec-e3 {
  color: var(--gris);
}

.a-rec-estados .a-rec-e3::before {
  background: var(--papel);
  border-color: var(--gris);
}

@media (prefers-reduced-motion: no-preference) {
  .anim-reclamaciones { --ciclo: 8s; }
  .a-rec-ficha > div { animation-name: rec-campo; }
  .a-rec-f2 { animation-delay: 0.3s; }
  .a-rec-f3 { animation-delay: 0.6s; }
  .a-rec-f4 { animation-delay: 0.9s; }
  .a-rec-estados::after {
    animation-name: rec-linea;
    animation-duration: var(--ciclo, 8s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-timing-function: var(--curva);
  }
  .a-rec-e1::before { animation-name: rec-e1; }
  .a-rec-e2::before { animation-name: rec-e2; }
  .a-rec-e1::before, .a-rec-e2::before {
    animation-duration: var(--ciclo, 8s);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
  }
}

@keyframes rec-campo {
  0%, 4% { opacity: 0; transform: translateX(-8px); }
  10%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

@keyframes rec-linea {
  0%, 46% { transform: scaleX(0); }
  62%, 88% { transform: scaleX(1); }
  96%, 100% { transform: scaleX(0); }
}

@keyframes rec-e1 {
  0%, 30% { background: var(--papel); }
  36%, 92% { background: var(--tinta); }
  100% { background: var(--papel); }
}

@keyframes rec-e2 {
  0%, 60% { background: var(--papel); }
  66%, 92% { background: var(--tinta); }
  100% { background: var(--papel); }
}

/* Optimiza.app */

.a-opt {
  display: grid;
  gap: 26px;
  width: min(100%, 420px);
}

.a-opt-fila p {
  margin-bottom: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}

.a-opt-pista {
  position: relative;
  height: 10px;
}

.a-opt-pista > span {
  position: absolute;
  inset: 0;
  transform-origin: left center;
}

.a-opt-antes {
  background: var(--gris-claro);
  height: 2px;
  top: 4px !important;
}

.a-opt-barra {
  background: var(--tinta);
}

.a-opt-duracion .a-opt-barra { transform: scaleX(0.62); }
.a-opt-coste .a-opt-barra { transform: scaleX(0.7); }
.a-opt-exito .a-opt-antes { transform: scaleX(0.45); }
.a-opt-exito .a-opt-barra { transform: scaleX(0.78); }

.a-opt-pie {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gris);
  font-size: 0.75rem;
}

.a-opt-pie span {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gris-claro);
}

.a-opt-pie .a-opt-negro {
  height: 8px;
  margin-left: 14px;
  background: var(--tinta);
}

@media (prefers-reduced-motion: no-preference) {
  .anim-optimiza { --ciclo: 6.5s; }
  .a-opt-duracion .a-opt-barra { animation-name: opt-duracion; }
  .a-opt-coste .a-opt-barra { animation-name: opt-coste; animation-delay: 0.25s; }
  .a-opt-exito .a-opt-barra { animation-name: opt-exito; animation-delay: 0.5s; }
}

@keyframes opt-duracion {
  0%, 18% { transform: scaleX(1); }
  44%, 86% { transform: scaleX(0.62); }
  96%, 100% { transform: scaleX(1); }
}

@keyframes opt-coste {
  0%, 18% { transform: scaleX(1); }
  44%, 86% { transform: scaleX(0.7); }
  96%, 100% { transform: scaleX(1); }
}

@keyframes opt-exito {
  0%, 18% { transform: scaleX(0.45); }
  44%, 86% { transform: scaleX(0.78); }
  96%, 100% { transform: scaleX(0.45); }
}

/* Pulso LSO */

.a-pul {
  width: min(100%, 470px);
}

.a-pul-mapa {
  width: 100%;
  height: auto;
}

.a-pul-mapa circle {
  fill: var(--tinta);
  transform-box: fill-box;
  transform-origin: center;
}

.a-pul-pie {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--gris);
  font-size: 0.75rem;
}

.a-pul-pie span {
  display: inline-block;
  border-radius: 50%;
  background: var(--tinta);
}

.a-pul-chico {
  width: 3px;
  height: 3px;
}

.a-pul-grande {
  width: 8px;
  height: 8px;
  margin-left: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .anim-pulso-lso { --ciclo: 6s; }
  .a-pul-mapa :is(.a-pul-f1, .a-pul-f2, .a-pul-f3, .a-pul-f4) {
    animation-name: pul-foco;
    animation-timing-function: ease-in-out;
  }
  .a-pul-mapa .a-pul-f2 { animation-delay: 1.5s; }
  .a-pul-mapa .a-pul-f3 { animation-delay: 3s; }
  .a-pul-mapa .a-pul-f4 { animation-delay: 4.5s; }
}

@keyframes pul-foco {
  0%, 30%, 100% { transform: none; }
  12% { transform: scale(1.75); }
}

/* ── Legales y 404 ── */

.legal {
  max-width: calc(46rem + var(--margen) * 2);
  padding-block: clamp(48px, 6vw, 88px) var(--seccion);
}

.legal h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem);
}

.legal-fecha {
  margin-top: 16px;
  color: var(--gris);
  font-size: var(--t-chica);
}

.legal section {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--filete);
}

.legal h2 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.legal p {
  margin-top: 14px;
  color: var(--grafito);
}

.legal p a {
  color: var(--tinta);
  text-underline-offset: 3px;
}

.no-hay {
  padding-block: clamp(72px, 10vw, 160px);
}

.no-hay h1 {
  margin-top: 18px;
}

.no-hay .entrada {
  margin-block: 22px 32px;
}

/* ── Anchos ── */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-boton {
    display: grid;
  }

  .cabecera-acciones {
    margin-left: auto;
  }
}

@media (max-width: 899px) {
  .cabecera-acciones .boton {
    display: none;
  }

  .heroe-texto,
  .como-rejilla,
  .apps-cabeza,
  .privacidad-rejilla,
  .app-heroe-rejilla,
  .app-red-rejilla {
    grid-template-columns: minmax(0, 1fr);
  }

  /* En el móvil el expediente va fijo arriba y los pasos pasan por debajo. */
  .como-vista {
    order: -1;
    position: sticky;
    top: calc(var(--cabecera) + 8px);
    z-index: 2;
    background: var(--papel);
    padding-bottom: 12px;
  }

  .como-rejilla {
    gap: 0;
  }

  .como-texto h2 {
    margin-top: 40px;
  }

  .maqueta {
    position: static;
  }

  /* Expediente compacto: tiene que dejar sitio a los pasos que pasan por debajo. */
  .maqueta-barra {
    height: 44px;
    padding-inline: 14px;
  }

  .mq {
    min-height: 0;
    padding: 12px 16px 14px;
  }

  .mq-titulo {
    padding-bottom: 8px;
    font-size: 1.15rem;
  }

  .mq-d4, .mq-d5, .mq-c4, .mq-c5 {
    display: none !important;
  }

  .mq-docs li,
  .mq-campos div {
    padding-block: 6px;
  }

  .mq-opciones {
    margin-top: 12px;
    gap: 8px;
  }

  .mq-opciones li {
    padding: 8px 12px;
  }

  .mq-nota,
  .mq-boton {
    margin-top: 10px;
  }

  .mq-revision {
    margin-top: 12px;
  }

  .mq-firma {
    height: 54px;
    margin-top: 10px;
  }

  .paso {
    min-height: 44svh;
  }

  .apps-lista {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .quien-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aviso-legal {
    grid-column: auto;
  }

  .puntos-lista {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .anim {
    min-height: 380px;
  }

  .pie-rejilla {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pie-marca {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --cabecera: 64px;
  }

  .quien-lista,
  .garantias {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .app-fila {
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-areas:
      "glifo nombre"
      "glifo frase"
      "glifo estado";
    column-gap: 16px;
  }

  .app-estado {
    padding-top: 4px;
  }

  .app-sigue {
    grid-template-columns: minmax(0, 1fr);
  }

  .sigue-sig {
    text-align: left;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "rotulo rotulo"
      "glifo nombre";
  }

  .pie-rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anim {
    min-height: 330px;
    padding: 20px;
  }

  .a-exp {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
  }

  .a-exp-doc {
    width: 30px;
    height: 40px;
  }

  .a-esc {
    grid-template-columns: minmax(0, 1fr);
  }

  .a-esc-doc {
    max-width: 200px;
    justify-self: center;
  }

  .a-esc-marcas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Paso activo: solo con dos columnas y la sección en vista */
@media (min-width: 900px) {
  .como.en-vista .paso,
  .como.en-vista .paso p {
    color: var(--gris-claro);
  }

  .como.en-vista[data-paso="1"] .paso[data-paso="1"],
  .como.en-vista[data-paso="2"] .paso[data-paso="2"],
  .como.en-vista[data-paso="3"] .paso[data-paso="3"],
  .como.en-vista[data-paso="4"] .paso[data-paso="4"] {
    color: var(--tinta);
  }

  .como.en-vista[data-paso="1"] .paso[data-paso="1"] p,
  .como.en-vista[data-paso="2"] .paso[data-paso="2"] p,
  .como.en-vista[data-paso="3"] .paso[data-paso="3"] p,
  .como.en-vista[data-paso="4"] .paso[data-paso="4"] p {
    color: var(--grafito);
  }
}

@media (max-width: 899px) {
  .como.en-vista .paso {
    color: var(--gris-claro);
  }

  .como.en-vista[data-paso="1"] .paso[data-paso="1"],
  .como.en-vista[data-paso="2"] .paso[data-paso="2"],
  .como.en-vista[data-paso="3"] .paso[data-paso="3"],
  .como.en-vista[data-paso="4"] .paso[data-paso="4"] {
    color: var(--tinta);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}


/* ── Rediseño: quiénes somos, aplicaciones, relato y cierre ── */
.alt { background: var(--velo); }

.quienes-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px);
  align-items: start;
}

.quienes-texto { display: grid; gap: 18px; max-width: 38rem; }
.quienes-texto p:not(.entrada) { color: var(--grafito); }

/* Aplicaciones: la lista (enlaces de verdad) y, pegada, la placa con el glifo de la que se señala. */
.eco-rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.eco-texto h2 { max-width: 16ch; }
.eco-texto .entrada { margin-top: 18px; }

.eco-filas { margin-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--filete); }
.eco-filas li { border-bottom: 1px solid var(--filete); }

.eco-fila {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas: "glifo nombre estado" "glifo frase estado";
  align-items: center;
  column-gap: 18px;
  min-height: 64px;
  padding: 10px 6px;
  color: inherit;
  text-decoration: none;
}

.eco-fila-glifo { grid-area: glifo; width: 28px; height: 28px; justify-self: center; stroke: var(--tinta); fill: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eco-fila-glifo path { fill: none; }
.eco-fila-glifo circle:not(.oro) { stroke: none; }
.eco-fila-nombre { grid-area: nombre; font-weight: 500; font-size: 1.0625rem; color: var(--tinta); }
.eco-fila-nombre .sufijo { color: var(--gris); }
.eco-fila-frase { grid-area: frase; color: var(--grafito); font-size: 0.9375rem; line-height: 1.4; }
.eco-fila-estado { grid-area: estado; color: var(--gris); font-size: 0.8125rem; white-space: nowrap; }
.eco-fila-estado[data-estado="beta"] { color: var(--tinta); }
.eco-fila-estado[data-estado="beta"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--oro); vertical-align: 0.12em; }
.eco-fila:hover, .eco-fila:focus-visible { background: color-mix(in srgb, var(--tinta) 4%, transparent); }
.eco-fila:hover .eco-fila-nombre { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.eco-placa {
  position: sticky;
  top: calc(var(--cabecera) + 24px);
  height: min(560px, calc(100svh - var(--cabecera) - 48px));
  min-height: 360px;
}

/* Del encargo a la firma: pasos de ~60svh y la placa pegada, que reimprime sus puntos al bajar. */
.como-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); align-items: start; }
.paso { display: grid; padding-block: 28px; }
.paso h3 { display: flex; align-items: baseline; gap: 18px; font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem); font-weight: 500; line-height: 1.15; letter-spacing: var(--dt-ls-titulo); }
.paso-n { flex: none; width: 2.4rem; color: var(--gris); font-family: var(--sans); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.paso p { max-width: 40ch; margin-top: 12px; margin-left: calc(2.4rem + 18px); color: var(--grafito); }
.como h2 { max-width: 12ch; }
.pasos { margin-top: 40px; }
.paso { min-height: 60svh; align-content: center; border-top: 0; }
.como-vista { position: sticky; top: calc(var(--cabecera) + 24px); order: 2; }
.como-texto { order: 1; }
.como-placa { height: min(560px, calc(100svh - var(--cabecera) - 48px)); min-height: 340px; }

/* Cierre: la placa de seguridad (guilloche) con el texto a un lado. */
.cierre { background: none; color: inherit; padding-block: var(--seccion); }
.cierre-placa { padding: clamp(32px, 6vw, 88px); min-height: 340px; display: grid; align-items: center; }
.cierre-fila { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px 48px; }
.cierre h2 { max-width: 14ch; }
.cierre .entrada { margin-top: 18px; color: var(--grafito); max-width: 34rem; }

.anim figcaption { position: static; margin-top: 18px; color: var(--dt-suave); font-size: 0.8125rem; text-align: center; }

@media (max-width: 899px) {
  .quienes-rejilla, .eco-rejilla { grid-template-columns: minmax(0, 1fr); }
  .eco-placa { order: -1; position: relative; top: 0; height: min(64vw, 360px); min-height: 0; }
  .eco-fila { grid-template-columns: 32px minmax(0, 1fr); grid-template-areas: "glifo nombre" "glifo frase" "glifo estado"; row-gap: 2px; }
  .eco-fila-estado { margin-top: 2px; }
  .cierre-texto { max-width: none; }
  .cierre .cierre-placa.dt-trama { min-height: 700px; align-items: start; padding: 28px 22px; }
  .como-vista { order: 0; position: sticky; top: var(--cabecera); z-index: 2; margin-inline: calc(50% - 50vw); padding: 8px calc(50vw - 50%) 0; background: var(--papel); }
  .como-vista::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(var(--papel), transparent); pointer-events: none; }
  .como-texto { order: 1; }
  .como .como-placa.dt-trama { height: 26svh; min-height: 0; }
  .paso:last-child { min-height: 80svh; align-content: start; padding-top: 12svh; }
  .como-rejilla { display: flex; flex-direction: column; align-items: stretch; }
  .paso { min-height: 52svh; }
  .como h2 { margin-top: 8px; }
}

/* ── Portada: la trama a sangre y la escena en su sección ── */
.heroe {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(82svh, 760px);
  padding-block: clamp(56px, 8vw, 112px);
}

.heroe .heroe-fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  min-height: 0;
}

.heroe .heroe-texto {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  max-width: 34rem;
}

.heroe .heroe-texto h1 {
  font-size: clamp(2.7rem, 1.3rem + 3.9vw, 4.9rem);
}

.heroe-movil-caja {
  display: none;
}

/* Teléfono y tableta (hasta 1179): el texto arriba y el motivo de la trama debajo, en una placa, siempre entero. */
@media (max-width: 1179px) {
  .heroe {
    min-height: 0;
    align-items: start;
    padding-bottom: 32px;
  }
  .heroe .heroe-fondo {
    display: none;
  }
  .heroe-movil-caja {
    display: block;
    margin-top: 36px;
  }
  .heroe-movil {
    height: min(78vw, 420px);
  }
}

/* Móvil: el título va antes de la placa (la placa nunca llega sin su título). */
@media (max-width: 899px) {
  .eco-texto, .como-texto { display: contents; }
  .eco-rejilla, .como-rejilla { display: grid; grid-template-columns: minmax(0, 1fr); }
  .eco-texto > h2, .como-texto > h2 { order: -3; }
  .eco-rejilla .eco-placa { order: -2; }
  .como-rejilla .como-vista { order: -2; }
  .eco-texto > .entrada { order: -1; }
}

/* ── Interruptor de tema (Claro · Oscuro · Sistema) en el pie; sin JS no se enseña ── */
.dt-tema { display: inline-flex; align-self: center; padding: 3px; border-radius: var(--dt-r-lleno); background: var(--dt-superficie-2); box-shadow: inset 0 0 0 1px var(--dt-linea); }
.dt-tema button { min-width: 32px; height: 32px; padding: 0 12px; border: 0; border-radius: var(--dt-r-lleno); background: none; color: var(--gris); font: 500 .8125rem/1 var(--sans); cursor: pointer; }
:root:not([data-js]) .dt-tema { display: none; }
.dt-tema button[aria-pressed="true"] { background: var(--superficie); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--dt-borde-campo); }
.dt-tema button:focus-visible { outline-offset: 2px; border-radius: var(--dt-r-lleno); }
@media (pointer: coarse) { .dt-tema button { min-width: 44px; height: 44px; } }
.pie-base > p:first-child { margin-right: auto; }
.pie-base { align-items: center; }
@media (max-width: 359px) { .pie-rejilla { grid-template-columns: minmax(0, 1fr); } }

/* «Reclamaciones.app» en Inter es más ancha: por debajo de 420 px el nombre largo se ajusta para caber entero. */
@media (max-width: 420px) { .app-heroe h1.nombre-largo { font-size: clamp(1.75rem, 0.6rem + 6vw, 2.3rem); } }
