:root {
  color-scheme: light;
  --ink: #102b33;
  --muted: #4d626a;
  --teal: #006b60;
  --line: #cbdad9;
  --surface: #fff;
  --mist: #eef5f3;
  --paper: #f6f9f8;
  --deep: #103c3c;
  --rust: #a64f32;
  --radius: 1rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #178878;
  outline-offset: 4px;
}
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; left: 1rem; top: .5rem; padding: .5rem 1rem; background: #fff; z-index: 3; }
.contenedor { width: min(100% - 4.5rem, 78rem); margin-inline: auto; }
.numerica, .tabla-contenedor td:not(:first-child) { font-variant-numeric: tabular-nums; }
.cabecera { background: var(--surface); border-bottom: 1px solid var(--line); }
.cabecera-contenido { min-height: 4.6rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.identidad { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-size: .98rem; font-weight: 720; }
.sigla { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .55rem; background: var(--deep); color: white; font-size: .8rem; letter-spacing: .04em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.45rem; }
nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 620; }
nav a:hover, nav a[aria-current="page"] { color: var(--teal); text-underline-offset: .3em; text-decoration: underline; }
.principal { padding-block: 2rem 4rem; }
.encabezado-operativo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.encabezado-operativo h1 { font-size: clamp(1.95rem, 4vw, 3.15rem); letter-spacing: -.045em; }
.corte-operativo { margin-bottom: .35rem; color: var(--teal); font-size: .88rem; font-weight: 710; }
.subtitulo-operativo { margin-top: .4rem; color: var(--muted); }
.enlace-corte { color: var(--teal); font-weight: 670; text-underline-offset: .2em; }
.corte-secundario { margin-top: 1rem; }
.corte-secundario > summary { cursor: pointer; font-weight: 710; color: var(--teal); }
.corte-secundario[open] > summary { margin-bottom: 1rem; }
.corte-secundario .panel-explorar { padding: 0; border: 0; }
.corte-secundario .portada { margin-top: 1rem; }
.fuentes-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
[id] { scroll-margin-top: 1.25rem; }
.portada { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.4rem, 5vw, 5rem); padding: clamp(1.55rem, 4.15vw, 3.65rem); border-radius: 1.35rem; color: #f8fffd; background: var(--deep); }
.portada-corte { font-size: .94rem; color: #c2dfd9; font-weight: 530; margin-bottom: .65rem; }
.portada h1 { font-size: clamp(2.2rem, 4vw, 4.25rem); letter-spacing: -.048em; }
.gran-cifra { font-size: clamp(3.8rem, 8vw, 7rem); line-height: 1; font-weight: 760; letter-spacing: -.085em; margin-top: clamp(.95rem, 3vw, 1.85rem); }
.gran-etiqueta { color: #d2e7e3; font-size: clamp(.9rem, 2vw, 1.12rem); margin-top: .55rem; }
.gran-etiqueta strong { color: #f8fffd; letter-spacing: .035em; font-size: .91em; }
.portada-edad { align-self: stretch; display: grid; align-content: center; border-left: 1px solid #56817b; padding-left: clamp(1.1rem, 3.5vw, 3.1rem); }
.portada-edad h2 { font-size: clamp(1.1rem, 2vw, 1.43rem); }
.portada-hallazgo { font-size: clamp(1.2rem, 2.4vw, 1.77rem); font-weight: 710; line-height: 1.17; margin-top: .5rem; letter-spacing: -.026em; }
.edad-barra { min-height: 1.25rem; display: flex; gap: 3px; border-radius: .24rem; overflow: hidden; margin-top: 1.55rem; }
.edad-0 { background: #a5d9c9; }
.edad-1 { background: #56b6a4; }
.edad-2 { background: #ffc194; }
.edad-leyenda { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem .5rem; margin-top: .65rem; }
.edad-leyenda dt { font-size: .84rem; color: #d5e9e5; line-height: 1.25; }
.edad-leyenda dd { font-size: clamp(1rem, 2.3vw, 1.4rem); line-height: 1.25; font-weight: 720; margin-top: .2rem; }
.edad-leyenda .marca { display: inline-block; width: .47rem; height: .47rem; margin-right: .26rem; vertical-align: .1rem; border-radius: .065rem; }
.nota-portada { color: #c2dfd9; font-size: .87rem; margin-top: 1.2rem; }
.panel { padding: clamp(1rem, 2.5vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.panorama-datos { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; }
.panel-encabezado { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .75rem; margin-bottom: 1.2rem; }
.panel-encabezado h2 { font-size: clamp(1.2rem, 2.1vw, 1.55rem); letter-spacing: -.023em; }
.panel-encabezado p, .seccion-encabezado p { margin-top: .35rem; color: var(--muted); }
.panel-encabezado p { font-size: .91rem; }
.segmentado { display: inline-flex; max-width: 100%; gap: .2rem; margin: 0; min-inline-size: 0; padding: .2rem; border: 0; background: var(--mist); border-radius: .52rem; }
.segmentado input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmentado span { display: block; padding: .38rem .63rem; border-radius: .4rem; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 650; font-size: .84rem; }
.segmentado input:checked + span { background: var(--surface); color: var(--teal); box-shadow: 0 0 0 1px var(--line); }
.segmentado input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.barras-tipo { display: grid; gap: .35rem; min-width: 0; }
.barra-tipo { display: grid; grid-template-columns: minmax(8.5rem, 1fr) minmax(4rem, 1.5fr) minmax(3.1rem, auto); align-items: center; gap: .45rem .8rem; padding: .38rem .2rem; border: 0; border-radius: .4rem; background: transparent; color: var(--ink); text-align: left; min-height: 2.32rem; }
.barra-tipo:hover { background: var(--mist); }
.barra-tipo strong { text-align: right; font-weight: 710; }
.barra-tipo .tipo-nombre, .ranking-nombre { overflow-wrap: anywhere; }
.barra-tipo .tipo-nombre { font-size: .91rem; }
.barra-pista { background: var(--mist); height: .62rem; border-radius: .14rem; overflow: hidden; }
.barra-relleno { height: 100%; display: block; min-width: 0; background: var(--teal); border-radius: .14rem; }
.barra-relleno.antiguo { background: var(--rust); }
.ranking { list-style: none; margin: 0; padding: 0; }
.ranking li + li { border-top: 1px solid var(--line); }
.ranking button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; justify-content: space-between; align-items: center; gap: .55rem; padding: .68rem .28rem; border: 0; color: var(--ink); background: transparent; text-align: left; min-height: 2.75rem; }
.ranking button:hover { background: var(--mist); }
.ranking small { display: block; color: var(--muted); font-size: .86rem; }
.ranking strong { color: var(--rust); font-weight: 750; }
.perfil { margin-top: 1rem; padding-block: .85rem; }
.perfil summary { color: var(--teal); cursor: pointer; font-weight: 700; }
.perfil-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 1.2rem 0 .45rem; }
.perfil h3 { font-size: 1.04rem; }
.perfil-cifras { margin: .4rem 0 .6rem; font-size: .92rem; }
.perfil-cifras div { display: flex; justify-content: space-between; gap: .4rem; border-bottom: 1px solid var(--line); padding-block: .3rem; }
.perfil-cifras dd { font-weight: 720; }
.perfil-grid p { font-size: .87rem; color: var(--muted); }
.seccion { margin-top: clamp(2.4rem, 6vw, 4.6rem); }
.seccion-encabezado { margin-bottom: 1rem; }
.seccion-encabezado h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.seccion-encabezado p { max-width: 52rem; }
.filtros { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr); gap: .8rem; margin-bottom: 1.15rem; }
.filtros label { display: block; color: var(--ink); font-size: .88rem; font-weight: 670; margin-bottom: .28rem; }
.filtros input, .filtros select { width: 100%; min-width: 0; background: var(--surface); border: 1px solid #94afad; min-height: 2.75rem; border-radius: .42rem; color: var(--ink); padding: .48rem .65rem; }
.filtros select { appearance: none; padding-right: 2.1rem; background-image: linear-gradient(45deg, transparent 50%, #426664 50%), linear-gradient(135deg, #426664 50%, transparent 50%); background-position: calc(100% - 1.12rem) 50%, calc(100% - .8rem) 50%; background-size: .32rem .32rem; background-repeat: no-repeat; }
.explorar-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 1rem; }
.explorar-lista { min-width: 0; }
.tabla-contenedor { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { text-align: left; font-size: .84rem; color: var(--muted); font-weight: 680; }
th, td { border-bottom: 1px solid var(--line); padding: .64rem .38rem; }
th:first-child { width: 52%; }
th:not(:first-child), td:not(:first-child) { text-align: right; white-space: nowrap; }
td { font-size: .92rem; }
td .abrir-fila { display: grid; gap: .05rem; text-align: left; border: 0; color: var(--ink); background: transparent; padding: .18rem .2rem; border-radius: .3rem; line-height: 1.28; width: 100%; overflow-wrap: anywhere; font-weight: 670; }
td .abrir-fila span { display: block; font-size: .84rem; color: var(--muted); font-weight: 470; }
td .abrir-fila:hover { color: var(--teal); }
tr.activo td { background: var(--mist); }
td.izquierda { text-align: left !important; white-space: normal !important; }
.paginacion { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.paginacion p { font-size: .88rem; color: var(--muted); }
.paginacion div { display: flex; gap: .35rem; }
.paginacion button { padding: .45rem .65rem; color: var(--teal); background: var(--surface); border: 1px solid var(--line); border-radius: .36rem; font-size: .9rem; }
.paginacion button:hover:not(:disabled) { background: var(--mist); }
.paginacion button:disabled { color: var(--muted); opacity: .63; }
.detalle { border-left: 1px solid var(--line); padding: .2rem 0 0 1rem; min-width: 0; overflow-wrap: anywhere; }
.detalle h3 { font-size: 1.29rem; margin: .12rem 0 .58rem; }
.detalle-tipo { color: var(--teal); font-weight: 660; font-size: .91rem; }
.detalle-metrica { color: var(--muted); font-size: .91rem; }
.detalle-atributos { margin-block: 1rem; display: grid; gap: .6rem; }
.detalle-atributos dt, .fuentes dt { font-weight: 710; }
.detalle-atributos dd, .fuentes dd { margin-top: .16rem; }
.detalle-atributos dd { font-size: .96rem; }
.detalle-estados { display: flex; flex-wrap: wrap; gap: .45rem .85rem; padding: .55rem 0; border-block: 1px solid var(--line); }
.detalle-estados dt { color: var(--muted); font-size: .84rem; }
.detalle-estados dd { font-weight: 680; }
.detalle details { margin-top: .8rem; }
.detalle summary { cursor: pointer; color: var(--teal); font-weight: 650; }
.detalle-codigos { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .9rem; }
.detalle-codigos li + li { margin-top: .45rem; }
.fuentes-grid { border-top: 1px solid var(--line); padding-top: 1.1rem; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem 1.6rem; }
.fuentes dd { color: var(--muted); }
.pie { background: var(--surface); border-top: 1px solid var(--line); padding: 1.15rem 0; color: var(--muted); font-size: .88rem; }
.error { padding: 1rem; color: #8e3321; border: 1px solid #c27761; background: #fff4ee; border-radius: .6rem; margin: 1rem 0; }
@media (max-width: 960px) {
  .contenedor { width: min(100% - 2.5rem, 78rem); }
  .panel-encabezado { align-items: flex-start; }
}
@media (max-width: 760px) {
  .cabecera-contenido { min-height: 0; padding-block: .72rem; flex-wrap: wrap; }
  .portada, .panorama-datos, .explorar-grid, .perfil-grid { grid-template-columns: minmax(0,1fr); }
  .portada-edad { border-left: 0; border-top: 1px solid #56817b; padding: 1.15rem 0 0; }
  .detalle { border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
}
@media (max-width: 540px) {
  .contenedor { width: calc(100% - 1.35rem); }
  .principal { padding-top: 1rem; }
  .cabecera nav { gap: .35rem .88rem; }
  nav a { font-size: .87rem; }
  .portada { padding: 1.2rem; gap: 1.35rem; }
  .gran-cifra { font-size: clamp(3.1rem, 15vw, 5.35rem); }
  .filtros, .fuentes-grid { grid-template-columns: minmax(0,1fr); }
  .filtros { gap: .55rem; }
  .barra-tipo { grid-template-columns: minmax(7.3rem,1fr) minmax(2rem,.85fr) minmax(2.8rem,auto); gap: .35rem .52rem; }
  .barra-tipo .tipo-nombre { font-size: .87rem; }
  table { min-width: 22rem; }
  .ranking button, .barra-tipo { min-height: 2.75rem; }
}
