@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fuentes/big-shoulders-display-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --laca: #a3121b;
  --oro: #f3c24f;
  --oro-claro: #ffd46e;
  --letrero-texto: #fff8ef;
  --tinta-fija: #2a1613;
  --tinta: #2a1613;
  --tinta-suave: #5c4641;
  --papel: #ffffff;
  --papel-tenue: #fbf2f0;
  --linea: #ecdcd8;
  --acento: #a3121b;
  --rotulo: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --laca: #8c0f17;
    --tinta: #f4e9e6;
    --tinta-suave: #cbb6b0;
    --papel: #170d0b;
    --papel-tenue: #231310;
    --linea: #3b2622;
    --acento: #ff9c90;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}

p,
li {
  overflow-wrap: break-word;
}

a {
  color: var(--acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

code {
  font-size: 0.95em;
  background: var(--papel-tenue);
  border: 1px solid var(--linea);
  border-radius: 4px;
  padding: 0 0.3em;
}

.contenedor {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.saltar {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10;
  background: var(--papel);
  color: var(--tinta);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.saltar:focus {
  left: 0.75rem;
}

/* El letrero de la portada */

.letrero {
  background: var(--laca);
  color: var(--letrero-texto);
  padding-block: clamp(1rem, 4vw, 2.5rem);
}

.letrero__marco {
  position: relative;
  border: 3px solid var(--oro);
  padding: clamp(1.75rem, 6vw, 3.75rem) clamp(1.25rem, 5vw, 3.75rem);
}

.letrero__marco::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--oro);
  opacity: 0.6;
  pointer-events: none;
}

.rotulo {
  margin: 0;
  font-family: var(--rotulo);
  font-weight: 800;
  line-height: 0.86;
}

.rotulo__menor {
  display: block;
  font-size: clamp(1.9rem, 7.5vw, 3.4rem);
  color: var(--letrero-texto);
}

.rotulo__mayor {
  display: block;
  font-size: clamp(4.25rem, 21vw, 12.5rem);
  color: var(--oro);
}

.letrero__lema {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.35;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.4rem, 3vw, 2.1rem);
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.boton--oro {
  background: var(--oro);
  color: var(--tinta-fija);
}

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

.boton--laca {
  background: var(--laca);
  color: var(--letrero-texto);
}

.boton--laca:hover {
  background: #861017;
}

.boton--borde {
  color: var(--letrero-texto);
  box-shadow: inset 0 0 0 2px var(--letrero-texto);
}

.boton--borde:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Portada: datos y bloques */

.datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.dato {
  border-top: 3px solid var(--laca);
  padding-top: 0.9rem;
}

.dato h2,
.bloque h2 {
  margin: 0 0 0.4rem;
  font-family: var(--rotulo);
  font-weight: 800;
  line-height: 1.05;
  color: var(--acento);
}

.dato h2 {
  font-size: 1.7rem;
}

.dato p {
  margin: 0;
}

.bloques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 2rem 4rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.bloque h2 {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
}

.bloque p {
  margin: 0 0 0.9rem;
  max-width: 62ch;
}

/* Páginas legales */

.franja {
  background: var(--laca);
  color: var(--letrero-texto);
}

.franja__contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.8rem;
}

.marca {
  font-family: var(--rotulo);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--oro);
  text-decoration: none;
}

.marca span {
  color: var(--letrero-texto);
}

.franja ul,
.pie ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.franja nav a {
  color: var(--letrero-texto);
  font-weight: 600;
  text-decoration: none;
}

.franja nav a:hover,
.franja nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--oro);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.35em;
}

.documento {
  max-width: 46rem;
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.documento h1 {
  margin: 0;
  font-family: var(--rotulo);
  font-weight: 800;
  font-size: clamp(2.7rem, 9vw, 4.4rem);
  line-height: 0.95;
  color: var(--acento);
}

.vigencia {
  margin: 1.1rem 0 1.6rem;
  color: var(--tinta-suave);
}

.documento h2 {
  margin: 2.6rem 0 0.7rem;
  font-family: var(--rotulo);
  font-weight: 800;
  font-size: clamp(1.65rem, 4.5vw, 2.05rem);
  line-height: 1.1;
  color: var(--acento);
  scroll-margin-top: 1rem;
}

.documento h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.documento p {
  margin: 0 0 0.9rem;
}

.documento ul,
.documento ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.documento li + li {
  margin-top: 0.45rem;
}

.resumen {
  margin: 1.75rem 0 0;
  padding: 1.1rem 1.25rem 0.4rem;
  background: var(--papel-tenue);
  border-left: 4px solid var(--laca);
  border-radius: 0 6px 6px 0;
}

.resumen h2 {
  margin-top: 0;
}

.indice ol {
  columns: 2 15rem;
  column-gap: 2.5rem;
}

.indice li {
  break-inside: avoid;
}

.nota {
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

/* Pie */

.pie {
  border-top: 1px solid var(--linea);
  background: var(--papel-tenue);
  color: var(--tinta-suave);
  font-size: 0.95rem;
}

.pie__contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.4rem;
}

.pie p {
  margin: 0;
}

@media print {
  .franja,
  .pie,
  .indice,
  .saltar {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: inherit;
  }
}
