/* Sitio del Distrito 5 · base común
   Pliego: papel, tintas planas, sin degradados. Las tintas vienen de cada manual de identidad. */

@font-face { font-family: "Jakarta"; src: url("/fuentes/jakarta.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; src: url("/fuentes/jakarta-ext.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; src: url("/fuentes/jakarta-italica.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Mano"; src: url("/fuentes/mano.woff2") format("woff2"); font-display: swap; }

:root {
  /* Distrito 5 */
  --azul: #133C68;
  --hueso: #F1EADB;
  --tinta: #0E1626;
  /* Abrigo Solidario (manual de identidad v1.0) */
  --noche: #172238;
  --brasa: #B5532F;
  --brasa-viva: #D9774E;
  --ambar: #E2A03F;
  --ambar-hondo: #B9761C;
  --lana: #F4EEE4;
  --escarcha: #7D93AE;

  /* tema por omisión: el del Distrito */
  --papel: var(--hueso);
  --texto: var(--tinta);
  --apagado: #47515D; /* la tinta del Distrito rebajada sobre el papel, con una parte del azul del logotipo (antes #4A5568, gris de catálogo) */
  --acento: var(--azul);
  --linea: color-mix(in srgb, var(--texto) 18%, transparent);

  --margen: clamp(20px, 5.5vw, 84px);
  --ancho: 1240px;
  --sangre: max(var(--margen), calc((100vw - var(--ancho)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--papel); color: var(--texto);
  font: 400 1.0625rem/1.6 "Jakarta", ui-sans-serif, sans-serif;
  font-feature-settings: "ss01" 0, "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* grano de papel: una sola textura fija, sin degradados */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .32; mix-blend-mode: multiply;
  background-image: url("/marca/grano.png"); background-size: 220px 220px;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--ambar); color: var(--noche); }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -.028em; line-height: .98; text-wrap: balance; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--noche); color: var(--lana); padding: 10px 16px; font-weight: 700; }
.saltar:focus { top: 12px; }

/* ---------- voces ---------- */
.rotulo {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55em 1em;
  font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; line-height: 1.3; max-width: none;
}
.rotulo i { width: 34px; height: 1.5px; background: currentColor; opacity: .55; }
.rotulo .tenue { font-weight: 700; opacity: .7; }
.mano { font-family: "Mano", cursive; font-weight: 400; letter-spacing: 0; line-height: 1; color: var(--acento); }
.nota-mano { display: inline-block; font-family: "Mano", cursive; font-size: 1.9rem; line-height: .95; color: var(--acento); transform: rotate(-5deg); }
.cifra { font-weight: 800; letter-spacing: -.045em; line-height: .85; font-variant-numeric: tabular-nums lining-nums; }
.voz-chica { font-size: .9rem; line-height: 1.5; color: var(--apagado); }
.pie-imprenta { font-size: .66rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }

/* ---------- marco ---------- */
.ancho { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }
.pliego { position: relative; padding-block: clamp(72px, 11vw, 148px); }
.pliego + .pliego:not(.pleno) { border-top: 1.5px solid var(--linea); }
/* marcas de registro de imprenta en las esquinas de cada pliego */
.registro::before, .registro::after {
  content: ""; position: absolute; width: 15px; height: 15px; top: 22px; opacity: .45;
  border: 0; background: currentColor;
  -webkit-mask: url("/marca/registro.svg") center / contain no-repeat; mask: url("/marca/registro.svg") center / contain no-repeat;
}
.registro::before { left: 22px; }
.registro::after { right: 22px; }
.folio { position: absolute; right: var(--margen); bottom: 22px; }
.folio-izq { position: absolute; left: var(--margen); bottom: 22px; }

/* ---------- cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50; background: var(--papel);
  border-bottom: 1.5px solid var(--linea);
}
.cabecera .ancho { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.marca-d5 { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marca-d5 b { font-size: .78rem; font-weight: 800; letter-spacing: .32em; }
.marca-d5 img { height: 26px; width: auto; }
.marca-d5 .barra { width: 1.5px; height: 26px; background: currentColor; opacity: .35; }
.navegacion { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: .92rem; font-weight: 600; }
.navegacion a { text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.navegacion a:hover, .navegacion a[aria-current="page"] { border-bottom-color: currentColor; }
.navegacion .boton { padding: 10px 16px; border-bottom: 0; }
.navegacion .destacado { color: var(--acento); font-weight: 700; }
@media (max-width: 760px) {
  .navegacion .ocultable { display: none; }
  .marca-d5 .barra, .marca-d5 img[src*="id7"] { display: none; }
  .rotulo { letter-spacing: .2em; gap: .4em .8em; }
  .navegacion .boton { white-space: nowrap; padding: 10px 13px; font-size: .9rem; min-height: 44px; }
  .rotulo i { width: 22px; }
}

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 13px 22px;
  border: 2px solid var(--texto); background: var(--texto); color: var(--papel);
  font: 700 1rem/1 "Jakarta", sans-serif; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  border-radius: 2px; transition: transform .12s steps(2), background-color .12s;
}
.boton:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--acento); }
.boton:active { transform: none; box-shadow: none; }
.boton.secundario { background: transparent; color: var(--texto); }
.boton.acento { background: var(--acento); border-color: var(--acento); color: var(--papel); }
.boton.acento:hover { box-shadow: 4px 4px 0 var(--texto); }
.boton .flecha { width: 1.1em; height: 1.1em; }
.boton[disabled] { opacity: .5; cursor: progress; transform: none; box-shadow: none; }

/* ---------- pie ---------- */
.pie { padding-block: 64px 40px; border-top: 1.5px solid var(--linea); position: relative; }
.pie .ancho { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
.pie .firma { display: grid; gap: 14px; }
.pie .firma b { font-size: .82rem; font-weight: 800; letter-spacing: .34em; }
.pie .firma img { height: 54px; width: auto; }
.pie h2 { font-size: .72rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 16px; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pie .redes a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.pie .redes { display: flex; gap: 6px; }
.pie .redes a { justify-content: center; width: 48px; height: 48px; margin-left: -12px; margin-right: 0; }
.pie .redes li + li a { margin-left: 0; }
.pie .redes svg { width: 26px; height: 26px; flex: none; transition: color .15s; }
.pie .redes a:hover svg { color: var(--red); }
.pie .base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; border-top: 1.5px solid var(--linea); }
@media (max-width: 820px) { .pie .ancho { grid-template-columns: 1fr; } }

/* ---------- bloques de pliego ---------- */
/* ---------- pliego de cita + datos ---------- */
.dos-columnas { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
@media (max-width: 900px) { .dos-columnas { grid-template-columns: 1fr; } }
.cita { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.02; margin: 26px 0 22px; text-wrap: balance; }
.cita .acento { color: var(--acento); }
.encabezado-pliego { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
.encabezado-pliego h1, .encabezado-pliego h2 { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.045em; }
.encabezado-pliego > p { font-size: 1.12rem; max-width: 52ch; margin: 0; }
/* ---------- utilidades de pliego ---------- */
.mt-0 { margin-top: 0; }
.columna-texto { max-width: 60ch; }
.columna-texto p { font-size: 1.08rem; }

/* ---------- ilustraciones vivas ---------- */
.lienzo { position: relative; }
.lienzo svg { width: 100%; height: 100%; overflow: visible; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
