@font-face { font-family: "Montserrat"; src: url("/fuentes/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fuentes/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fuentes/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #0b2a3c;
  --navy: #0e3a54;
  --blue: #16709a;
  --sky: #2191b8;
  --mint: #5be0a8;
  --green: #14805a;
  --orange: #e08a2b;
  --amber: #ffa63d;
  --paper: #f6f8f9;
  --white: #ffffff;
  --rule: #d2dde3;
  --muted: #4c626e;
  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.salto { position: absolute; left: -999rem; }
.salto:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }

h1, h2, h3, .marca, .nav, .boton, .dato, .meta, th, .fecha, .pie, figcaption, .nota-tipo {
  font-family: var(--display);
}
h1, h2, h3 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.22; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; max-width: 68ch; }

/* Cabecera */
.cabecera { background: var(--navy); color: var(--white); }
.cabecera .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.marca { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--white); text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.marca svg { width: 2.4rem; height: 2.4rem; flex: none; }
.marca span span { display: block; color: var(--mint); }
.marca:hover { color: var(--white); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2.6rem); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; flex-wrap: wrap; }
.nav a { color: var(--white); text-decoration: none; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* Portada del sitio */
.inicio { background: linear-gradient(160deg, var(--sky) 0%, var(--blue) 42%, var(--navy) 100%); color: var(--white); overflow: hidden; }
.inicio .wrap { padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.inicio h1 { font-size: clamp(2.3rem, 6.6vw, 5.2rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; max-width: 15ch; }
.inicio .bajada { font-size: clamp(1.15rem, 2vw, 1.4rem); max-width: 46ch; margin: 1.6rem 0 0; color: #e6f2f7; }
.curva { position: relative; margin-top: clamp(1.5rem, 4vw, 3rem); height: clamp(13rem, 34vw, 24rem); }
.curva svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.curva .trazo { clip-path: inset(0 100% 0 0); animation: revelar 1.8s cubic-bezier(0.3, 0.1, 0.2, 1) 0.2s forwards; }
@keyframes revelar { to { clip-path: inset(0 0 0 0); } }
.curva .marca-dato { position: absolute; transform: translate(-50%, -100%); font-family: var(--display); font-size: clamp(0.72rem, 1.5vw, 0.95rem); font-weight: 600; line-height: 1.15; white-space: nowrap; padding-bottom: 0.6rem; text-align: center; color: #e6f2f7; }
.curva .marca-dato b { display: block; font-size: 1.5em; font-weight: 700; color: var(--white); }
.curva .marca-dato.abajo { transform: translate(-50%, 0); padding: 0.6rem 0 0; }
.curva .marca-dato.izq { transform: translate(0, -100%); text-align: left; }
.curva .marca-dato.der { transform: translate(-100%, -100%); text-align: right; }
.curva .marca-dato.der b { color: var(--amber); }
.inicio .fuente { font-family: var(--display); font-size: 0.85rem; color: #cfe4ee; margin: 0; padding: 0.7rem 0 1.1rem; max-width: none; }
@media (prefers-reduced-motion: reduce) {
  .curva .trazo { animation: none; clip-path: none; }
  html { scroll-behavior: auto; }
}

/* Secciones */
.seccion { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.seccion + .seccion { border-top: 1px solid var(--rule); }
.seccion.blanca { background: var(--white); }
.titulo-seccion { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.titulo-seccion a { font-family: var(--display); font-weight: 600; font-size: 1rem; }

.destacado { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.destacado .tapa { box-shadow: 0 1.2rem 2.6rem -1rem rgba(11, 42, 60, 0.55); border-radius: 3px; }
.destacado .numero { font-family: var(--display); font-weight: 700; color: var(--green); margin: 0 0 0.6rem; font-size: 1rem; }
.destacado h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.destacado .sub { font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 500; color: var(--muted); margin: 0.6rem 0 1.4rem; }
@media (max-width: 46rem) {
  .destacado { grid-template-columns: 1fr; }
  .destacado .tapa { max-width: 15rem; }
}

.hallazgos { list-style: none; padding: 0; margin: 1.5rem 0 2rem; border-top: 2px solid var(--ink); }
.hallazgos li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0.4rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.hallazgos .dato { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.hallazgos .detalle { font-size: 1.05rem; line-height: 1.45; color: #23404f; }
@media (max-width: 40rem) { .hallazgos li { grid-template-columns: 1fr; } }

.botones { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.boton { display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none; padding: 0.8rem 1.35rem; border-radius: 4px; background: var(--navy); color: var(--white); border: 2px solid var(--navy); }
.boton:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.boton.claro { background: transparent; color: var(--navy); }
.boton.claro:hover { background: var(--navy); color: var(--white); }

/* Listado de notas */
.notas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.notas li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.3rem 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.notas .fecha { font-weight: 600; font-size: 0.95rem; color: var(--muted); padding-top: 0.3rem; }
.notas h3 a { color: var(--ink); text-decoration: none; }
.notas h3 a:hover { color: var(--blue); text-decoration: underline; }
.notas p { margin: 0.45rem 0 0; font-size: 1.08rem; line-height: 1.5; color: #23404f; }
.nota-tipo { display: block; font-size: 0.85rem; font-weight: 600; color: var(--green); margin-top: 0.15rem; }
@media (max-width: 40rem) { .notas li { grid-template-columns: 1fr; } }
.vacio { font-family: var(--display); color: var(--muted); padding: 1.5rem 0; }

/* Reglas del método */
.reglas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem 3rem; margin: 0; }
.reglas dt { font-family: var(--display); font-weight: 600; font-size: 1.12rem; border-top: 3px solid var(--orange); padding-top: 0.7rem; }
.reglas dd { margin: 0.35rem 0 0; font-size: 1.08rem; line-height: 1.5; }

/* Páginas interiores */
.encabezado { background: var(--white); border-bottom: 1px solid var(--rule); padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(1.75rem, 4vw, 3rem); }
.encabezado .sub { font-family: var(--display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 500; color: var(--muted); margin: 0.7rem 0 0; }
.encabezado .entrada { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; margin: 1.5rem 0 0; max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 2.2rem; margin: 1.6rem 0 0; padding: 0; font-size: 0.98rem; }
.meta div { display: flex; gap: 0.45rem; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; }

.prosa { max-width: 46rem; }
.prosa h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 2.6rem 0 1rem; }
.prosa h2:first-child { margin-top: 0; }
.prosa ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prosa li { margin-bottom: 0.55em; max-width: 66ch; }
.prosa .fuente-nota { font-family: var(--display); font-size: 0.98rem; border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 2.2rem; color: var(--muted); }

figure { margin: 0 0 2.2rem; }
figure img { background: var(--white); border: 1px solid var(--rule); border-radius: 3px; width: 100%; }
figcaption { font-size: 0.9rem; line-height: 1.4; color: var(--muted); margin-top: 0.55rem; }
.figuras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr)); gap: 0.5rem 2.2rem; }

.tabla { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.4; }
.tabla th { text-align: left; font-weight: 700; font-size: 0.95rem; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.tabla td { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tabla td:first-child { font-family: var(--display); font-weight: 700; }
.tabla-marco { overflow-x: auto; }

.archivos { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.archivos li { display: flex; justify-content: space-between; gap: 0.4rem 1.5rem; flex-wrap: wrap; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
.archivos a { font-family: var(--display); font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }

.cita { background: var(--white); border-left: 4px solid var(--orange); padding: 1.1rem 1.4rem; font-size: 1.05rem; max-width: 46rem; }
.cita p { margin: 0; }

/* Pie */
.pie { background: var(--navy); color: #d6e6ee; padding: 3rem 0 2.2rem; font-size: 0.98rem; line-height: 1.5; }
.pie .wrap { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.pie .lema { font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.18; letter-spacing: -0.015em; color: var(--white); margin: 0 0 0.8rem; max-width: 16ch; }
.pie p { margin: 0 0 0.4rem; max-width: 40ch; }
.pie ul { list-style: none; padding: 0; margin: 0; }
.pie li { margin-bottom: 0.45rem; }
.pie a { color: var(--white); }
.pie .titulo-pie { font-weight: 700; color: var(--mint); margin: 0 0 0.7rem; }
.pie .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1.2rem; margin: 0.5rem 0 0; max-width: none; color: #b9d0db; }
@media (max-width: 46rem) { .pie .wrap { grid-template-columns: 1fr; } }

/* Datos que rotan en la portada */
.rotador { position: relative; height: 4.4rem; margin-top: 1.8rem; font-family: var(--display); }
.rotador .cifra { position: absolute; inset: 0; display: flex; align-items: baseline; gap: 0.9rem; opacity: 0; transform: translateY(0.7rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.rotador .cifra.activa { opacity: 1; transform: none; }
.rotador b { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 700; color: var(--amber); letter-spacing: -0.02em; white-space: nowrap; }
.rotador span { font-size: clamp(0.98rem, 1.7vw, 1.2rem); font-weight: 500; color: #e6f2f7; line-height: 1.25; max-width: 24ch; }

/* Vista previa del informe */
.previa { background: var(--navy); color: var(--white); padding: clamp(2.75rem, 7vw, 5rem) 0; }
.previa .titulo-seccion h2 { color: var(--white); }
.previa .titulo-seccion a { color: var(--mint); }
.pase { max-width: 58rem; margin: 0 auto; }
.pase .marco { position: relative; background: var(--white); border-radius: 6px; overflow: hidden; aspect-ratio: 1344 / 720; box-shadow: 0 1.6rem 3rem -1.2rem rgba(0, 0, 0, 0.6); }
.pase .lamina { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.015); transition: opacity 0.7s ease, transform 0.9s ease; pointer-events: none; display: flex; align-items: center; justify-content: center; padding: 0.6rem; }
.pase .lamina.activa { opacity: 1; transform: none; pointer-events: auto; }
.pase .lamina img { width: 100%; height: 100%; object-fit: contain; border: 0; }
.pase .avance { height: 3px; background: rgba(255, 255, 255, 0.18); margin-top: 0.9rem; border-radius: 2px; overflow: hidden; }
.pase .avance span { display: block; height: 100%; width: 0; background: var(--amber); }
@keyframes avance { from { width: 0; } to { width: 100%; } }
.pase .pie-pase { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.9rem; font-family: var(--display); }



.pase .controles { display: flex; align-items: center; gap: 0.5rem; }
.pase button { font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--white); background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 4px; padding: 0.5rem 0.9rem; cursor: pointer; }
.pase button:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.pase .puntos { display: flex; gap: 0.45rem; justify-content: center; margin-top: 1.1rem; }
.pase .punto { width: 0.7rem; height: 0.7rem; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.6); background: transparent; }
.pase .punto[aria-current="true"] { background: var(--amber); border-color: var(--amber); }
.pase figcaption { display: none; }

/* Aparición única de las secciones */
.espera { opacity: 0; transform: translateY(1.2rem); transition: opacity 0.7s ease, transform 0.7s ease; }
.espera.visto { opacity: 1; transform: none; }

/* Servicios y boletín */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 3rem; margin: 0; padding: 0; list-style: none; }
.servicios li { border-top: 3px solid var(--blue); padding-top: 0.9rem; }
.servicios h3 { margin-bottom: 0.5rem; }
.servicios p { font-size: 1.08rem; line-height: 1.5; margin: 0; }
.llamado { background: linear-gradient(160deg, var(--sky), var(--blue) 45%, var(--navy)); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.llamado h2 { color: var(--white); max-width: 22ch; }
.llamado p { color: #e6f2f7; margin: 1rem 0 0; max-width: 54ch; }
.llamado .boton { background: var(--white); color: var(--navy); border-color: var(--white); }
.llamado .boton:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.llamado .correo { font-family: var(--display); font-weight: 600; color: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .rotador .cifra, .pase .lamina, .pase .rotulo, .espera { transition: none; }
  .espera { opacity: 1; transform: none; }
}
