/* ═══════════════════════════════════════════════════════════════
   Fuentes propias. Servirlas desde aquí en vez de Google evita dos
   conexiones externas, quita el salto de texto al cargar (CLS) y no
   filtra a los lectores a un tercero.
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fuentes/bodoni-700.woff2') format('woff2');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('/fuentes/bodoni-700-italica.woff2') format('woff2');
  font-weight: 700 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fuentes/serif.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('/fuentes/serif-italica.woff2') format('woff2');
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fuentes/inter.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* Respaldos con métricas ajustadas: mientras la fuente real viaja, el texto
   ocupa casi el mismo espacio y no da el brinco al llegar. */
@font-face {
  font-family: 'Bodoni respaldo';
  src: local('Didot'), local('Georgia'), local('Times New Roman');
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Serif respaldo';
  src: local('Iowan Old Style'), local('Georgia'), local('Times New Roman');
  size-adjust: 101%;
  ascent-override: 96%;
  descent-override: 28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter respaldo';
  src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
  size-adjust: 100%;
  ascent-override: 97%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* ═══════════════════════════════════════════════════════════════
   ¿Tan solo una opinión? — columna de Armando Castillo
   Diseño editorial: didone para titulares, serif de lectura para
   el cuerpo, retícula de periódico y reglas dobles.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Blanco y azul, nada más. El papel es blanco; el azul es la tinta y el
     detalle: filetes, rótulos, capitular y enlaces. */
  --papel:        #ffffff;
  --papel-hondo:  #f3f7fc;
  --papel-alto:   #e9f0f9;
  --tinta:        #0c1c33;
  --tinta-media:  #3d5677;
  --tinta-suave:  #556c8e;
  --tinta-tenue:  #5f7595;
  --acento:       #1a56a8;
  --acento-vivo:  #0f3d7d;
  --linea:        #d5e0ef;
  --linea-firme:  #0c1c33;

  /* Tipografía */
  --didone: 'Bodoni Moda', 'Bodoni respaldo', Didot, Georgia, serif;
  --lectura: 'Source Serif 4', 'Serif respaldo', 'Iowan Old Style', Georgia, serif;
  --ui: 'Inter', 'Inter respaldo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, sans-serif;

  /* Medidas */
  --ancho-texto: 40rem;
  --ancho-ancho: 68rem;
  --regla: 1px;
}

::selection { background: var(--acento); color: #fff; }

* { box-sizing: border-box; }
/* El clip va también en html: el navegador propaga el overflow del body a la
   raíz, así que ponerlo solo en body no recorta nada. */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  /* La marca de agua asoma hasta el borde de la pantalla y ahí se corta.
     `clip` en vez de `hidden` porque no rompe position: sticky. */
  overflow-x: clip;
  font-variant-numeric: oldstyle-num proportional-nums;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--lectura);
  font-size: 19px;
  line-height: 1.72;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; }

.envoltura { max-width: var(--ancho-ancho); margin: 0 auto; padding: 0 1.75rem; }
.angosto   { max-width: var(--ancho-texto); margin-left: auto; margin-right: auto; }

/* Rótulos: la voz de servicio del periódico. */
.rotulo {
  font-variant-numeric: lining-nums tabular-nums;
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tinta-tenue);
}
.rotulo .sep { margin: 0 0.55rem; opacity: 0.55; }
.rotulo .destacado { color: var(--acento); }

/* ─────────────── Cabecera ─────────────── */

.cabecera { padding-top: 1.7rem; margin-bottom: 2rem; }

.cabecera .filete {
  border-top: 2px solid var(--linea-firme);
  border-bottom: 1px solid var(--linea-firme);
  height: 4px;
  margin-bottom: 1.75rem;
}

/* El sello */
.sello { display: block; }
.sello-marca { display: block; color: var(--acento); margin: 0 auto 0.9rem; width: 34px; }
.sello-pie { display: block; color: var(--acento); margin: 0 auto 1rem; width: 26px; opacity: 0.9; }

/* El punto de los separadores */
.punto {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--acento);
  margin-right: 0.7rem;
  vertical-align: 0.15em;
}

.masthead { display: block; text-align: center; text-decoration: none; color: var(--tinta); }
.masthead:hover { color: var(--tinta); }

.masthead .nombre {
  font-family: var(--didone);
  font-weight: 900;
  font-size: clamp(2.2rem, 7.6vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.signo { color: var(--acento); font-style: normal; margin-left: 0.04em; }

.credencial {
  margin: 0.9rem auto 0;
  max-width: 34rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.credencial::before, .credencial::after {
  content: ''; flex: 1; height: 1px; background: var(--linea);
}

.navegacion {
  margin-top: 1.15rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--linea);
  border-bottom: 2px solid var(--linea-firme);
  display: flex;
  gap: 2.25rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--ui);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.navegacion a { color: var(--tinta-media); text-decoration: none; position: relative; padding-bottom: 2px; }
.navegacion a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--acento); transition: right 0.25s ease;
}
.navegacion a:hover { color: var(--acento); }
.navegacion a:hover::after { right: 0; }
.navegacion a[aria-current] { color: var(--acento); }
.navegacion a[aria-current]::after { right: 0; }

/* ─────────────── Hero: el manifiesto ─────────────── */

.manifiesto {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 1.9rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--linea);
}

.manifiesto .frase {
  font-family: var(--didone);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.15rem);
  line-height: 1.26;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 1.15rem;
}

/* El eco del título, en azul: ata el hero al encabezado. */
.manifiesto .eco { color: var(--acento); }

@media (max-width: 640px) {
  .manifiesto { margin-bottom: 2.5rem; padding-bottom: 1.9rem; }
}

/* ─────────────── Portada: la edición del día ─────────────── */

/* Todas las columnas del día pesan lo mismo y se alinean a la izquierda:
   son una edición, no una destacada con satélites. */
.edicion { max-width: 44rem; margin: 0 0 1rem; }

.entrada {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--linea);
}
.entrada:first-child { padding-top: 0; }
.entrada:last-child { border-bottom: none; }

.entrada .titular {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0.55rem 0 0.9rem;
}
.entrada .titular a { color: var(--tinta); text-decoration: none; }
.entrada .titular a:hover { color: var(--acento); }

.entrada .sumario {
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--tinta-media);
  margin: 0 0 0.7rem;
  text-wrap: pretty;
}

.entrada .firma-entrada { margin: 0 0 1.1rem; color: var(--tinta); }

.entrada .lamina { margin: 1.25rem 0; aspect-ratio: 16 / 9; }

.entrada p:last-child { margin-bottom: 0; }

.lamina {
  width: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.02);
  background: var(--papel-hondo);
}

.entrar-columna {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--acento);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.entrar-columna .flecha { transition: transform 0.22s ease; }
.entrar-columna:hover .flecha { transform: translateX(4px); }
.centrado { text-align: center; }

/* La firma con filete a los lados, que sigue usándose en las columnas */
.firma-linea {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  max-width: 26rem; margin: 0 auto;
}
.firma-linea::before, .firma-linea::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.firma-linea .autor {
  font-family: var(--ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--tinta);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .entrada { padding: 2rem 0; }
}

.division {
  display: flex; align-items: center; gap: 1.1rem;
  margin: 3.25rem 0 2rem;
}
.division::before, .division::after { content: ''; flex: 1; height: 1px; background: var(--linea); }
.division span {
  font-family: var(--ui); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--acento);
  white-space: nowrap;
}

.reticula {
  /* Retícula de periódico: los filetes son el fondo asomando por los huecos,
     así ninguna línea queda suelta al final de una fila incompleta. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1px;
  background: var(--linea);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  list-style: none;
  margin: 0 -1.6rem;
  padding: 0;
}

.reticula li {
  background: var(--papel);
  padding: 1.6rem 1.6rem 1.9rem;
}

.reticula .titulo {
  font-family: var(--didone);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0.5rem 0 0.6rem;
}
.reticula .titulo a { color: var(--tinta); text-decoration: none; }
.reticula .titulo a:hover { color: var(--acento); }
.reticula .resumen { margin: 0; font-size: 0.98rem; line-height: 1.6; color: var(--tinta-media); }

@media (max-width: 640px) {
  .reticula { margin: 0 -1.25rem; }
  .reticula li { padding: 1.4rem 1.25rem 1.5rem; }
}

/* ─────────────── La columna ─────────────── */

.progreso {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--acento); z-index: 50; transition: width 0.08s linear;
}

.columna {
  margin-bottom: 4rem;
  position: relative;
}

/* Marca de agua del sitio: el logo, enorme y apenas presente, anclado al
   fondo de la ventana. Acompaña al lector en todas las páginas sin estorbar
   la lectura, y desaparece al imprimir. */
.marca-agua {
  position: fixed;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: -1;
  color: var(--acento);
  /* Tan tenue que no compite con el texto: se nota al mirarla, no al leer. */
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}
.marca-agua .sello { width: 15rem; height: 15rem; }

@media (max-width: 900px) {
  .marca-agua { right: 1.25rem; bottom: 1.25rem; opacity: 0.05; }
  .marca-agua .sello { width: 9rem; height: 9rem; }
}

@media print { .marca-agua { display: none; } }

.columna > header { text-align: center; margin-bottom: 2.5rem; }

.columna h1 {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(2.1rem, 6.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.024em;
  text-wrap: balance;
  margin: 0.9rem auto 1.1rem;
  max-width: 20ch;
}

.columna .sumario {
  font-family: var(--lectura);
  font-style: italic;
  font-size: 1.26rem;
  line-height: 1.55;
  color: var(--tinta-media);
  max-width: 42ch;
  margin: 0 auto 1.9rem;
  text-wrap: pretty;
}

.cuerpo { max-width: var(--ancho-texto); margin: 0 auto; }
.cuerpo > *:first-child { margin-top: 0; }
.cuerpo p { margin: 0 0 1.4rem; text-wrap: pretty; hyphens: auto; }

/* Capitular: la marca de que aquí empieza a hablar el columnista. */
.cuerpo > p:first-of-type::first-letter {
  font-family: var(--didone);
  float: left;
  font-size: 4.4rem;
  line-height: 0.78;
  font-weight: 700;
  padding: 0.14em 0.09em 0 0;
  margin-right: 0.04em;
  color: var(--acento);
}
.cuerpo > p:first-of-type { }

.cuerpo h2, .cuerpo h3, .cuerpo h4 {
  font-family: var(--didone);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 2.6rem 0 0.95rem;
  text-wrap: balance;
}
.cuerpo h2 { font-size: 1.72rem; }
.cuerpo h3 { font-size: 1.4rem; }
.cuerpo h4 { font-size: 1.16rem; }

.cuerpo blockquote {
  margin: 2.4rem 0;
  padding: 0;
  border: none;
  text-align: center;
}
.cuerpo blockquote p {
  font-family: var(--didone);
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--tinta);
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
  text-wrap: balance;
}
.cuerpo blockquote p::before { content: '«'; color: var(--acento); margin-right: 0.12em; }
.cuerpo blockquote p::after  { content: '»'; color: var(--acento); margin-left: 0.12em; }

.cuerpo ul, .cuerpo ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.cuerpo li { margin-bottom: 0.55rem; }
.cuerpo ul li::marker { color: var(--acento); }
.cuerpo ol li::marker { color: var(--acento); font-family: var(--ui); font-size: 0.85em; }

.cuerpo img { display: block; margin: 2rem auto; }

.cuerpo hr {
  border: none;
  margin: 2.75rem auto;
  text-align: center;
  height: 1rem;
}
.cuerpo hr::before {
  content: '❦';
  color: var(--acento);
  font-size: 1.1rem;
}

.cuerpo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: var(--papel-hondo);
  padding: 0.12em 0.38em;
  border-radius: 3px;
}

.cuerpo a { text-decoration-color: color-mix(in srgb, var(--acento) 45%, transparent); }
.cuerpo a:hover { text-decoration-color: currentColor; }

/* Final de columna: el punto de la marca cierra cada texto. */
.remate { text-align: center; margin: 2.75rem 0 0; line-height: 1; }
.remate::before {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--acento);
}

.pie-columna {
  max-width: var(--ancho-texto);
  margin: 3rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linea);
}

.compartir {
  display: flex;
  align-items: baseline;
  gap: 0.5rem 1.1rem;
  flex-wrap: wrap;
  margin: 0;
}
.compartir a {
  font-family: var(--ui);
  font-size: 0.78rem;
  color: var(--tinta-media);
  text-decoration: none;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.compartir a:hover { color: var(--acento); border-color: var(--acento); }

.pie-columna .rotulo { margin: 0; }

.vecinas {
  max-width: var(--ancho-texto);
  margin: 2.75rem auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--linea);
  border: 1px solid var(--linea);
}
.vecinas a {
  background: var(--papel);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--tinta);
  transition: background 0.18s ease;
}
.vecinas a:hover { background: var(--papel-alto); }
.vecinas a:hover .t { color: var(--acento); }
.vecinas .siguiente { text-align: right; }
.vecinas .t {
  font-family: var(--didone); font-weight: 700; font-size: 1.06rem;
  line-height: 1.25; display: block; margin-top: 0.35rem; text-wrap: balance;
}
.vecinas .sola { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .vecinas { grid-template-columns: 1fr; }
  .vecinas .siguiente { text-align: left; }
}

/* ─────────────── Miembros ─────────────── */

.miembros + .division { margin-top: 2.75rem; }

.miembros {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--linea);
  border-top: 1px solid var(--linea);
  border-bottom: 1px solid var(--linea);
}
.miembros li { background: var(--papel); }
.miembros a {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  color: var(--tinta);
  transition: background 0.18s ease;
}
.miembros a:hover { background: var(--papel-hondo); }
.miembros a:hover .miembro-nombre { color: var(--acento); }

.miembro-foto {
  flex: 0 0 auto;
  width: 4.2rem; height: 4.2rem;
  border-radius: 50%;
  background: var(--papel-hondo);
  display: grid; place-items: center;
  overflow: hidden;
}
.miembro-foto img { width: 100%; height: 100%; object-fit: cover; }
.miembro-foto .iniciales {
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--acento);
}
.miembro-datos { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.miembro-nombre {
  font-family: var(--didone);
  font-weight: 700;
  font-size: 1.24rem;
  line-height: 1.15;
  text-wrap: balance;
}

/* La ficha individual: el retrato a la derecha sobre un óvalo, el nombre
   enorme a la izquierda y la trama de puntos en dos esquinas. */
.ficha {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 1rem 0 2rem;
}

.ficha .trama { position: absolute; color: var(--acento); opacity: 0.85; pointer-events: none; }
.ficha .trama.arriba { top: 0; right: 0; }
.ficha .trama.abajo { bottom: 0; left: -0.5rem; }

.ficha h1 {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--acento);
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

.ficha-regla { display: block; width: 4.5rem; height: 2px; background: var(--tinta); margin-bottom: 1.75rem; }

.ficha-rotulo {
  font-family: var(--ui);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--tinta);
  margin: 0 0 0.9rem;
}

.ficha-titulo {
  font-family: var(--ui);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--tinta);
  margin: 0 0 1.4rem;
}

.ficha-texto p {
  font-family: var(--ui);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--tinta-media);
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

.ficha-retrato { position: relative; display: grid; place-items: end center; min-height: 22rem; }
.ficha-retrato .ovalo {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-46%);
  width: 116%;
  aspect-ratio: 1 / 1.12;
  border-radius: 50%;
  background: var(--papel-hondo);
  z-index: 0;
}
.ficha-retrato img { position: relative; z-index: 1; width: 100%; max-width: 26rem; height: auto; }

/* Los retratos vienen con su propio fondo claro: no hace falta el óvalo debajo. */
.ficha-retrato.con-foto { place-items: start center; min-height: 0; }
.ficha-retrato.con-foto img { max-width: 23rem; }
.ficha-retrato .iniciales {
  position: relative; z-index: 1;
  align-self: center;
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6rem);
  color: var(--acento);
  opacity: 0.28;
  letter-spacing: 0.02em;
}

@media (max-width: 820px) {
  .ficha { grid-template-columns: 1fr; gap: 1.5rem; }
  .ficha .trama.arriba { top: -0.5rem; right: -0.5rem; }
  .ficha .trama.abajo { display: none; }
  .ficha-retrato { order: -1; min-height: 15rem; }
  .ficha-retrato img { max-width: 18rem; }
}

.legal-nota {
  font-family: var(--ui);
  font-size: 0.82rem;
  color: var(--tinta-tenue);
  border-top: 1px solid var(--linea);
  padding-top: 1.1rem;
  margin-top: 1.75rem;
}

/* ─────────────── Apoyar ─────────────── */

.apoyo-botones { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; }

.apoyo-boton {
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--linea);
  color: var(--tinta);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.apoyo-boton:hover { border-color: var(--acento); color: var(--acento); }
.apoyo-boton.principal { background: var(--acento); border-color: var(--acento); color: #fff; }
.apoyo-boton.principal:hover { background: var(--acento-vivo); border-color: var(--acento-vivo); color: #fff; }

.apoyo-nota { font-size: 0.88rem; color: var(--tinta-suave); margin-bottom: 2rem; }

/* ─────────────── Archivo ─────────────── */

.cabecera-seccion { text-align: center; margin-bottom: 1rem; }
.cabecera-seccion h1 {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.anio {
  font-family: var(--didone);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--linea);
  margin: 3rem 0 1rem;
  border-bottom: 1px solid var(--linea);
  padding-bottom: 0.4rem;
}

.indice { list-style: none; margin: 0; padding: 0; }
.indice li { border-bottom: 1px solid var(--linea); }
.indice a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.15rem 0.5rem 1.15rem 0;
  text-decoration: none;
  color: var(--tinta);
  transition: padding 0.2s ease, background 0.2s ease;
}
.indice a:hover { background: var(--papel-alto); padding-left: 0.6rem; }
.indice a:hover .t { color: var(--acento); }
.indice .f {
  font-family: var(--ui); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--tinta-tenue);
}
.indice .t {
  font-family: var(--didone); font-weight: 700; font-size: 1.28rem;
  line-height: 1.22; text-wrap: balance;
}
.indice .d { display: block; font-family: var(--lectura); font-size: 0.95rem; color: var(--tinta-suave); margin-top: 0.3rem; font-weight: 400; }
@media (max-width: 620px) {
  .indice a { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ─────────────── Sobre mí y avisos ─────────────── */

.aviso { text-align: center; padding: 5rem 0; color: var(--tinta-media); }
.aviso h1 { font-family: var(--didone); font-size: clamp(1.9rem, 5vw, 2.6rem); margin: 0 0 0.75rem; font-weight: 700; }

.borrador {
  display: inline-block;
  font-family: var(--ui); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--acento); color: #fff;
  padding: 0.18rem 0.5rem; margin-left: 0.5rem; vertical-align: middle;
}

/* ─────────────── Aviso de cookies ─────────────── */

.cookies {
  position: fixed;
  left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  max-width: 30rem;
  margin: 0 auto;
  background: var(--papel);
  border: 1px solid var(--linea-firme);
  padding: 1.25rem 1.4rem;
  z-index: 60;
  box-shadow: 0 6px 28px rgba(12, 28, 51, 0.13);
}
.cookies[hidden] { display: none; }
.cookies p { font-family: var(--ui); font-size: 0.85rem; line-height: 1.5; color: var(--tinta-media); margin: 0 0 1rem; }
.cookies-botones { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.cookies button {
  font-family: var(--ui); font-size: 0.8rem; font-weight: 500;
  padding: 0.55rem 1.1rem; border: 1px solid var(--linea);
  background: transparent; color: var(--tinta); cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.cookies button:hover { border-color: var(--acento); color: var(--acento); }
.cookies button.principal { background: var(--acento); border-color: var(--acento); color: #fff; }
.cookies button.principal:hover { background: var(--acento-vivo); border-color: var(--acento-vivo); color: #fff; }
.cookies > a { font-family: var(--ui); font-size: 0.75rem; color: var(--tinta-tenue); }

/* ─────────────── Pie ─────────────── */

.pie {
  border-top: 3px double var(--linea-firme);
  margin-top: 5rem;
  padding: 2.25rem 0 3.5rem;
  text-align: center;
}
.pie .lema-pie {
  font-family: var(--didone); font-weight: 700; font-style: italic;
  font-size: 1.3rem; color: var(--tinta); margin: 0 0 1.1rem;
}
.pie .enlaces { display: flex; gap: 1.6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pie .enlaces a {
  font-family: var(--ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--tinta-media); text-decoration: none;
}
.pie .enlaces a:hover { color: var(--acento); }
.pie .legal { font-family: var(--ui); font-size: 0.73rem; color: var(--tinta-tenue); margin: 0; }

/* ─────────────── Ajustes finos ─────────────── */

@media (max-width: 640px) {
  body { font-size: 18px; }
  .envoltura { padding: 0 1.25rem; }
  .cabecera { padding-top: 1.5rem; margin-bottom: 2.25rem; }
  .cuerpo > p:first-of-type::first-letter { font-size: 3.6rem; }
  .navegacion { gap: 1.25rem; font-size: 0.7rem; }
}

@media print {
  .navegacion, .compartir, .vecinas, .progreso, .pie .enlaces { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
