/* IDENTIDAD: modifica estos valores para cambiar los colores del sitio. */
:root {
  --verde: #0b7764;
  --dorado: #ae8421;
  --azul: #004878;
  --texto: #222;
  --fondo-suave: #f7f9f9;
  --borde: #dce5e4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--texto); background: white; font-family: Montserrat, Arial, sans-serif; line-height: 1.65; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; overflow-wrap: break-word; }
a { color: var(--verde); text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
iframe { border: 0; max-width: 100%; }
button, summary { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 5px; }
.saltar { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: white; }
.saltar:focus { top: 10px; }
.cabecera { position: sticky; top: 0; z-index: 20; background: white; box-shadow: 0 1px 6px #0000000c; }
.navegacion { max-width: 1280px; margin: auto; padding: 18px 28px; display: flex; align-items: center; gap: 28px; }
.marca { display: block; flex-shrink: 0; }
.marca img { display: block; width: 268px; }
.enlaces { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.enlaces a { font-size: 14px; text-decoration: none; font-weight: 600; }
.enlaces a[aria-current], .enlaces a:hover { color: var(--dorado); }
.enlaces .contacto { text-transform: uppercase; font-size: 13px; }
.menu-boton { display: none; border: 1px solid var(--borde); background: white; color: var(--verde); border-radius: 8px; padding: 10px 14px; }
.fila { display: flex; flex-wrap: wrap; }
.columna { min-width: 0; width: 100%; flex: 0 0 auto; }
.tarjeta { border-radius: 8px; background: white; color: var(--texto); overflow: hidden; }
.tarjeta-contenido { padding: 16px; }
.papel { border-radius: 4px; background: white; color: var(--texto); }
.titulo-1 { font-size: 4.5rem; font-weight: 900; }
.titulo-2 { font-size: 3.5rem; font-weight: 800; }
.titulo-3 { font-size: 3rem; font-weight: 800; }
.titulo-4 { font-size: 2.125rem; font-weight: 800; }
.titulo-5 { font-size: 1.5rem; font-weight: 700; }
.titulo-6 { font-size: 1.25rem; font-weight: 700; }
.texto { font-size: 1rem; line-height: 1.65; }
.texto-pequeno { font-size: .9rem; }
.uso-responsable-bloque-3 iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.etiqueta { display: block; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; }
.pie-nota { font-size: .875rem; }
.pregunta { color: var(--texto); margin-bottom: 16px; border-bottom: 1px solid var(--borde); }
.pregunta summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 700; }
.pregunta[open] summary { color: var(--verde); }
.respuesta { padding: 0 0 22px; white-space: pre-line; }
.respuesta p { color: var(--texto); }
.pregunta summary p { display: inline; }
.bloque { padding: 72px 24px; }
.contenedor { max-width: 1120px; margin: auto; }
.bloque h2 { color: var(--verde); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 12px 0 24px; font-weight: 800; }
.bloque h3 { color: var(--azul); font-size: 1.25rem; margin: 0 0 14px; }
.bloque p + p { margin-top: 16px; }
.suave { background: var(--fondo-suave); }
.borde-superior { border-top: 2px solid var(--dorado); }
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.dos-columnas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ficha { padding: 28px; border: 1px solid var(--borde); border-radius: 12px; background: white; }
.ficha .numero { color: var(--verde); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 800; display: block; margin-bottom: 12px; }
.ficha ul { padding-left: 20px; }
.ficha a { font-weight: 600; }
.boton { display: inline-block; padding: 12px 22px; border: 1px solid var(--verde); border-radius: 6px; text-decoration: none; font-weight: 700; color: white; background: var(--verde); margin-top: 22px; }
.boton:hover { background: var(--azul); border-color: var(--azul); }
.portada-avances { background: linear-gradient(100deg, #004878f2, #0b7764db), url('../assets/img/portada-inicio.png') center/cover; color: white; padding: 80px 24px; }
.portada-avances h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); text-transform: uppercase; font-weight: 900; max-width: 850px; margin: 12px 0 24px; }
.portada-avances p { max-width: 760px; }
.indice-avances { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.indice-avances a { color: white; text-decoration: none; border: 1px solid #ffffff70; padding: 8px 16px; border-radius: 6px; }
.tabla-contenedor { overflow-x: auto; margin-top: 28px; border: 1px solid var(--borde); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
caption { text-align: left; padding: 16px; font-weight: 600; }
th { background: var(--azul); color: white; font-weight: 700; }
tbody th { background: transparent; color: var(--texto); }
th, td { padding: 20px; border-bottom: 1px solid var(--borde); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--fondo-suave); }
.tabla-contenedor table { min-width: 640px; }
.tabla-contenedor + .ficha { margin-top: 24px; }
.cronologia { list-style: none; margin: 28px 0 0; padding: 0; }
.cronologia li { display: grid; grid-template-columns: 130px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--borde); }
.cronologia time { color: var(--verde); font-weight: 800; }
.cronologia h3 { margin-bottom: 8px; }
.nota-estado { border-left: 5px solid var(--dorado); background: var(--fondo-suave); padding: 28px; }
.progreso { width: 100%; height: 14px; accent-color: var(--verde); margin-top: 16px; }
.grafica-anillo { display: block; width: 220px; height: 220px; margin: 20px auto; transform: rotate(-90deg); }
.grafica-anillo circle { fill: none; stroke-width: 16; }
.leyenda { list-style: none; padding: 0; text-align: left; font-size: .9rem; }
.leyenda li { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.muestra { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; background: var(--serie); }
.grafica-poblacion { display: block; width: 100%; height: auto; min-width: 620px; }
.grafica-desplazable { overflow-x: auto; }
.grafica-interactiva { position: relative; width: 100%; }
.grafica-interactiva-anillo { height: 240px; margin: 20px auto; }
.grafica-interactiva-poblacion { height: 400px; min-width: 620px; }
.leyenda-boton { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; padding: 6px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.leyenda-boton:hover, .leyenda-boton:focus-visible { color: var(--verde); }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.datos-grafica { margin-top: 20px; }
.datos-grafica summary { cursor: pointer; color: var(--verde); font-weight: 600; }
.boletines { padding: 48px 24px; background: #f9f9f9; }
.boletines-cabecera { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.boletines h2 { color: var(--verde); font-size: 1.2rem; margin: 14px 0 24px; }
.boletines-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.boletin { background: white; border-radius: 8px; overflow: hidden; }
.boletin img { width: 100%; height: 190px; object-fit: cover; }
.boletin-cuerpo { padding: 18px; }
.boletin h3 { font-size: 1rem; margin-bottom: 18px; }
.boletin a { color: var(--texto); text-decoration: none; }
.boletin a:hover { color: var(--verde); }
.boletin-pie { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .8rem; }
.volver-arriba { position: fixed; bottom: 24px; right: 24px; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; background: black; color: white; text-decoration: none; z-index: 10; }
.volver-arriba[hidden] { display: none; }
.footer { padding: 24px; text-align: center; border-top: 1px solid var(--borde); font-size: .875rem; }
@media (max-width: 1100px) {
  .navegacion { gap: 16px; padding: 16px 20px; }
  .marca img { width: 220px; }
  .enlaces { gap: 16px; }
  .enlaces a { font-size: 13px; }
}
@media (max-width: 899px) {
  .menu-boton { display: block; margin-left: auto; }
  .enlaces { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 24px; border-bottom: 2px solid var(--dorado); }
  .enlaces.abierto { display: flex; flex-direction: column; align-items: stretch; }
  .enlaces a { padding: 8px; font-size: 1rem; }
  .rejilla, .dos-columnas { grid-template-columns: 1fr; }
  .boletines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titulo-3 { font-size: 2rem; }
  .bloque { padding: 48px 24px; }
}
@media (max-width: 599px) {
  .marca img { width: 200px; }
  .navegacion { padding: 14px 16px; }
  .menu-boton { padding: 8px; }
  .cronologia li { grid-template-columns: 1fr; gap: 8px; }
  .boletines-grid { grid-template-columns: 1fr; }
  .boletines-cabecera { align-items: flex-start; flex-direction: column; gap: 0; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
