/* Coyuntura a agosto de 2026 · Análisis profundo — Observatorio Económico FCCAE-UC
   Concepto: el informe de coyuntura leído en pantalla, con la identidad de observa.top
   (azul institucional, dorado, la cinta de cifras) y gráficos que se leen con el cursor.
   Columna de lectura de ~70 caracteres; índice del capítulo al margen en pantallas anchas. */
:root {
  --papel: #F4F6F9;
  --superficie: #FFFFFF;
  --superficie-2: #EEF1F5;
  --tinta: #131A25;
  --tinta-2: #465264;
  --tinta-3: #677386;
  --azul: #1F3864;
  --azul-2: #2B4A7E;
  --azul-fondo: #1F3864;
  --dorado: #B0852F;
  --dorado-texto: #8A6620;
  --dorado-claro: #E2C48A;
  --regla: #D9DFE7;
  --rejilla: #E7EAEF;
  --eje: #AEB7C3;
  --sombra: 0 1px 2px rgba(19, 26, 37, .05), 0 6px 18px rgba(19, 26, 37, .06);
  /* series de los gráficos (validadas: banda de luminosidad, croma, daltonismo y contraste) */
  --s1: #2D4E8C; --s2: #B0852F; --s3: #4A90D0; --s4: #C8553D; --s5: #2A9D8F;
  --ctx: #A3ABB6; --banda: #E9EEF5;
  --f-titulo: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-texto: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-util: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --medida: 44rem;
  --ancho: 78rem;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --papel: #0B1016; --superficie: #121820; --superficie-2: #18202B;
    --tinta: #E5E9EF; --tinta-2: #AEB7C3; --tinta-3: #8B95A2;
    --azul: #9DB4E8; --azul-2: #B7C8EE; --azul-fondo: #14213A;
    --dorado: #CFA453; --dorado-texto: #D9B26A; --dorado-claro: #E2C48A;
    --regla: #263142; --rejilla: #1D2633; --eje: #3B4757;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
    --s1: #8C7CF0; --s2: #BA8B33; --s3: #0FA5C4; --s4: #D9654F; --s5: #24A08F;
    --ctx: #5F6A79; --banda: #1A2433;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --papel: #0B1016; --superficie: #121820; --superficie-2: #18202B;
  --tinta: #E5E9EF; --tinta-2: #AEB7C3; --tinta-3: #8B95A2;
  --azul: #9DB4E8; --azul-2: #B7C8EE; --azul-fondo: #14213A;
  --dorado: #CFA453; --dorado-texto: #D9B26A; --dorado-claro: #E2C48A;
  --regla: #263142; --rejilla: #1D2633; --eje: #3B4757;
  --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .35);
  --s1: #8C7CF0; --s2: #BA8B33; --s3: #0FA5C4; --s4: #D9654F; --s5: #24A08F;
  --ctx: #5F6A79; --banda: #1A2433;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.75rem; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--f-texto); font-size: 1.125rem; line-height: 1.66;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--dorado-texto); }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--dorado-claro); color: #131A25; }
.saltar { position: absolute; left: -999px; top: .5rem; background: var(--superficie); color: var(--tinta); padding: .4rem .8rem; z-index: 50; font-family: var(--f-util); font-size: .9rem; }
.saltar:focus { left: .5rem; }
.num, .tab { font-variant-numeric: tabular-nums; }

/* ---------- Franja del Observatorio y barra ---------- */
.franja-oe { background: #1F3864; color: #DCE4F2; font-family: var(--f-util); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.franja-in { max-width: var(--ancho); margin: 0 auto; padding: .42rem var(--gutter); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.franja-oe a { color: #DCE4F2; text-decoration: none; font-weight: 600; }
.franja-oe a:hover { color: #E2C48A; }
.barra {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--papel) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--regla);
}
.barra-in { max-width: var(--ancho); margin: 0 auto; padding: .55rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: .4rem 1.2rem; flex-wrap: wrap; }
.marca { font-family: var(--f-titulo); font-weight: 600; font-size: 1.05rem; color: var(--tinta); text-decoration: none; letter-spacing: -.005em; }
.marca em { font-style: normal; font-weight: 400; color: var(--tinta-3); }
.barra nav { display: flex; gap: .2rem 1.1rem; flex-wrap: wrap; font-family: var(--f-util); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.barra nav a { color: var(--tinta-2); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.barra nav a:hover { color: var(--azul); }
.barra nav a[aria-current="page"] { color: var(--azul); border-bottom-color: var(--dorado); }
@media (max-width: 640px) {
  .barra-in { flex-direction: column; align-items: flex-start; }
  .barra nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; gap: 1rem; padding-bottom: .1rem; }
  .barra nav::-webkit-scrollbar { display: none; }
  .barra nav a { white-space: nowrap; }
}

/* ---------- La cinta de cifras (eco de la cinta de observa.top) ---------- */
.cinta { background: #0F1B30; color: #E8EDF5; font-family: var(--f-mono); font-size: .8rem; border-bottom: 2px solid #B0852F; }
.cinta-in { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: stretch; }
.cinta-ventana { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 2rem, #000 calc(100% - 2rem), transparent); }
.cinta-pista { display: flex; width: max-content; animation: cinta 60s linear infinite; }
.cinta-copia { display: flex; }
.cinta:hover .cinta-pista, .cinta:focus-within .cinta-pista { animation-play-state: paused; }
@keyframes cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .cinta-pista { animation: none; }
  .cinta-copia { display: none; }
  .cinta-ventana { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.cinta-item { display: flex; align-items: baseline; gap: .55rem; padding: .62rem 1.1rem .62rem 0; margin-right: 1.1rem; border-right: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.cinta-item:last-child { border-right: 0; }
.cinta-item .k { color: #9FB0C9; letter-spacing: .04em; text-transform: uppercase; font-size: .72rem; }
.cinta-item .v { font-weight: 600; color: #FFFFFF; }
.cinta-item .d { color: #E2C48A; font-size: .74rem; }
.cinta-vivo { display: inline-flex; align-items: center; gap: .4rem; padding: .62rem 1rem .62rem 0; margin-right: 1rem; color: #E2C48A; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Portada ---------- */
.portada { max-width: var(--ancho); margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) var(--gutter) 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .portada { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 3rem; } }
.antetitulo { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 1.1rem; font-weight: 600; }
.antetitulo::after { content: ""; display: block; width: 7rem; height: 3px; background: var(--dorado); margin-top: .7rem; }
.portada h1 { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.03; letter-spacing: -.018em; margin: 0 0 1rem; text-wrap: balance; color: var(--tinta); }
.portada .pregunta { font-family: var(--f-texto); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--tinta-2); margin: 0 0 1.4rem; line-height: 1.4; max-width: 34ch; }
.tesis { font-family: var(--f-titulo); font-weight: 500; font-size: clamp(1.45rem, 3vw, 1.95rem); line-height: 1.2; color: var(--azul); margin: 0 0 1.2rem; padding-left: 1rem; border-left: 4px solid var(--dorado); }
.portada .bajada { font-size: 1.06rem; color: var(--tinta-2); margin: 0 0 1.2rem; max-width: 52ch; }
.datos-ed { font-family: var(--f-util); font-size: .82rem; color: var(--tinta-3); margin: 0; letter-spacing: .01em; }
.acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 0; }
.btn { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--f-util); font-weight: 600; font-size: .92rem; text-decoration: none; padding: .66rem 1.1rem; border-radius: 6px; border: 1.5px solid var(--dorado); background: var(--dorado); color: #fff; line-height: 1.2; }
.btn:hover { color: #fff; filter: brightness(1.07); }
.btn-linea { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-linea:hover { color: var(--azul); background: var(--superficie-2); filter: none; }

.tarjeta { background: var(--superficie); border: 1px solid var(--regla); border-radius: 8px; box-shadow: var(--sombra); padding: 1.1rem 1.1rem .9rem; }
.tarjeta-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-3); margin: 0 0 .3rem; }
.tarjeta figure.grafico { margin: 0; border: 0; box-shadow: none; padding: 0; background: transparent; }

.seccion { max-width: var(--ancho); margin: 0 auto; padding: 2.2rem var(--gutter); }
.seccion > h2, .titulo-sec { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.15; margin: 0 0 .4rem; letter-spacing: -.01em; }
.seccion > .intro-sec { font-family: var(--f-util); color: var(--tinta-2); font-size: .98rem; margin: 0 0 1.4rem; max-width: 70ch; }
.kicker-sec { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 .5rem; font-weight: 600; }

/* cifras en tarjetas */
.cifras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--regla); border: 1px solid var(--regla); border-radius: 8px; overflow: hidden; }
@media (min-width: 560px) { .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cifras { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cifra { background: var(--superficie); padding: 1.05rem 1.15rem 1rem; font-family: var(--f-util); }
.cifra .l { font-size: .8rem; color: var(--tinta-2); margin: 0 0 .35rem; line-height: 1.35; font-weight: 500; }
.cifra .v { font-size: 2.05rem; font-weight: 650; line-height: 1.05; margin: 0 0 .35rem; color: var(--tinta); letter-spacing: -.02em; }
.cifra .v small { font-size: .9rem; font-weight: 500; color: var(--tinta-3); letter-spacing: 0; margin-left: .15rem; }
.cifra .c { font-size: .82rem; color: var(--tinta-3); margin: 0; line-height: 1.4; }
.cifra .c b { color: var(--tinta-2); font-weight: 600; }
.cifra .marca-lectura { display: inline-block; margin-top: .55rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dorado-texto); }

/* ideas clave */
.ideas { list-style: none; counter-reset: idea; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 1rem 1.6rem; }
.ideas li { counter-increment: idea; position: relative; padding: .9rem 0 0 3rem; border-top: 1px solid var(--regla); }
.ideas li::before { content: counter(idea, decimal-leading-zero); position: absolute; left: 0; top: .95rem; font-family: var(--f-mono); font-weight: 600; font-size: .95rem; color: var(--dorado-texto); }
.ideas h3 { font-family: var(--f-titulo); font-weight: 600; font-size: 1.18rem; line-height: 1.25; margin: 0 0 .35rem; }
.ideas p { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.55; color: var(--tinta-2); }
.ideas a { font-family: var(--f-util); font-size: .82rem; font-weight: 600; text-decoration: none; }

/* índice por partes */
.partes { max-width: var(--ancho); margin: 0 auto; padding: .5rem var(--gutter) 3rem; display: grid; gap: 2.4rem; }
.parte-bloque h2 { font-family: var(--f-mono); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 .2rem; border-top: 2px solid var(--tinta); padding-top: .8rem; }
.parte-bloque h2 span { display: block; font-family: var(--f-titulo); font-size: 1.45rem; letter-spacing: -.005em; text-transform: none; color: var(--tinta); margin-top: .25rem; font-weight: 600; }
.caps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 2rem; }
.caps li { border-bottom: 1px solid var(--regla); }
.caps a { display: grid; grid-template-columns: 3.1rem minmax(0, 1fr); gap: .8rem; padding: 1rem 0; text-decoration: none; color: var(--tinta); }
.caps a:hover .t { color: var(--azul); text-decoration: underline; text-decoration-thickness: 1px; }
.caps .no { font-family: var(--f-mono); font-size: 1.35rem; font-weight: 600; color: var(--azul); line-height: 1.2; }
.caps .t { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 1.16rem; line-height: 1.25; margin-bottom: .25rem; }
.caps .r { display: block; font-size: .98rem; line-height: 1.5; color: var(--tinta-2); margin-bottom: .35rem; }
.caps .m { display: block; font-family: var(--f-util); font-size: .76rem; color: var(--tinta-3); letter-spacing: .02em; }

.dos-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
@media (min-width: 900px) { .dos-col { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2rem; } }
.caja { background: var(--superficie); border: 1px solid var(--regla); border-top: 3px solid var(--azul); border-radius: 8px; padding: 1.1rem 1.3rem 1rem; font-family: var(--f-util); font-size: .95rem; line-height: 1.55; color: var(--tinta-2); }
.caja h2, .caja h3 { font-family: var(--f-util); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); margin: 0 0 .7rem; font-weight: 700; }
.caja p { margin: 0 0 .7rem; }
.caja ul { margin: 0 0 .6rem; padding-left: 1.1rem; }
.caja li { margin: 0 0 .35rem; }
.caja-dorada { border-top-color: var(--dorado); }

/* ---------- Cabecera de capítulo ---------- */
.cabecera { max-width: var(--ancho); margin: 0 auto; padding: clamp(2rem, 5.5vw, 4rem) var(--gutter) 1.4rem; }
.parte { font-family: var(--f-util); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-3); margin: 0 0 1rem; font-weight: 600; }
.serie { display: inline-flex; align-items: baseline; gap: .55rem; font-family: var(--f-mono); font-weight: 600; color: var(--dorado-texto); letter-spacing: .12em; font-size: .85rem; margin: 0 0 .6rem; text-transform: uppercase; }
.serie b { font-size: 1.7rem; letter-spacing: .02em; color: var(--azul); }
h1.titulo { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.04; letter-spacing: -.017em; margin: 0 0 .9rem; max-width: 20ch; text-wrap: balance; }
.subtitulo { font-style: italic; font-size: clamp(1.12rem, 2.2vw, 1.38rem); color: var(--tinta-2); margin: 0; max-width: 46ch; text-wrap: balance; line-height: 1.42; }
.meta-lectura { font-family: var(--f-util); font-size: .78rem; letter-spacing: .05em; color: var(--tinta-3); margin: 1.15rem 0 0; text-transform: uppercase; font-weight: 500; }
.regla-oro { display: block; width: 100%; height: 2px; margin: 1.5rem 0 0; background: linear-gradient(90deg, var(--dorado) 0 7rem, var(--regla) 7rem 100%); border: 0; }

/* ---------- Cuerpo: columna + índice al margen ---------- */
.cuerpo { max-width: var(--ancho); margin: 0 auto; padding: .6rem var(--gutter) 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1120px) {
  .cuerpo { grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 3rem; }
  .indice-cap { grid-column: 2; grid-row: 1; }
  .texto { grid-column: 1; grid-row: 1; }
}
.texto { min-width: 0; max-width: var(--medida); }
@media (min-width: 1120px) { .texto { margin-left: clamp(0rem, 4vw, 4.5rem); } }
.indice-cap { min-width: 0; font-family: var(--f-util); font-size: .86rem; line-height: 1.4; }
.indice-cap details { border-top: 2px solid var(--tinta); border-bottom: 1px solid var(--regla); padding: .6rem 0; }
.indice-cap summary { cursor: pointer; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado-texto); list-style: none; font-weight: 700; }
.indice-cap summary::-webkit-details-marker { display: none; }
.indice-cap summary::after { content: " +"; }
.indice-cap details[open] summary::after { content: " −"; }
.indice-cap ol { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.indice-cap a { color: var(--tinta-2); text-decoration: none; display: block; padding-left: .7rem; border-left: 2px solid transparent; }
.indice-cap a:hover { color: var(--azul); }
.indice-cap a.activo { color: var(--tinta); border-left-color: var(--dorado); }
.indice-cap .otros { margin-top: 1rem; font-size: .8rem; color: var(--tinta-3); }
@media (min-width: 1120px) { .indice-cap > div { position: sticky; top: 5.2rem; max-height: calc(100vh - 6.5rem); overflow: auto; padding-right: .3rem; } }

/* tres ideas al comienzo del capítulo */
.claves { background: var(--superficie); border: 1px solid var(--regla); border-left: 4px solid var(--dorado); border-radius: 6px; padding: .95rem 1.2rem .6rem; margin: 0 0 2rem; font-family: var(--f-util); }
.claves h2 { font-family: var(--f-util) !important; font-size: .72rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--dorado-texto); margin: 0 0 .6rem !important; font-weight: 700 !important; }
.claves h2::before { display: none !important; }
.claves ol { margin: 0; padding-left: 1.2rem; }
.claves li { font-size: .97rem; line-height: 1.5; margin: 0 0 .5rem; color: var(--tinta); }
.claves li::marker { font-family: var(--f-mono); font-weight: 600; color: var(--dorado-texto); }

/* ---------- Tipografía del texto ---------- */
.texto p { margin: 0 0 1.05em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 560px) { .texto p { text-align: left; } body { font-size: 1.0625rem; } }
.texto p.entrada { font-size: 1.2em; line-height: 1.55; text-align: left; hyphens: manual; margin-bottom: 1.4em; }
.texto h2 { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.17; margin: 2.4em 0 .75em; text-wrap: balance; letter-spacing: -.008em; }
.texto h2::before { content: ""; display: block; width: 2.5rem; height: 3px; background: var(--dorado); margin-bottom: .75rem; }
.texto h2 .sec-no { font-family: var(--f-mono); font-size: .62em; font-weight: 600; color: var(--azul); letter-spacing: .02em; margin-right: .45em; vertical-align: .12em; }
.texto h3 { font-family: var(--f-util); font-weight: 700; font-size: 1rem; letter-spacing: .02em; margin: 1.8em 0 .5em; }
.texto ul, .texto ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.texto li { margin: 0 0 .5em; }
.texto strong { font-weight: 650; }
.texto a.ref-int { text-decoration-style: dotted; }
.cita { font-family: var(--f-util); font-size: .88rem; color: var(--tinta-2); background: var(--superficie-2); border-radius: 6px; padding: .8rem 1rem; }
.palabras { font-family: var(--f-util); font-size: .88rem; color: var(--tinta-3); }

/* ---------- Gráficos ---------- */
figure.grafico, figure.cuadro { margin: 2rem 0 2.2rem; background: var(--superficie); border: 1px solid var(--regla); border-radius: 8px; box-shadow: var(--sombra); padding: 1rem 1.1rem .8rem; }
@media (max-width: 560px) { figure.grafico, figure.cuadro { margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); padding: .85rem .7rem .7rem; } }
figure.grafico figcaption, figure.cuadro figcaption { font-family: var(--f-util); font-weight: 650; font-size: 1rem; line-height: 1.35; color: var(--tinta); margin: 0 0 .7rem; text-wrap: balance; }
figcaption .fig-no { display: block; font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado-texto); margin-bottom: .25rem; }
.oe-lienzo { position: relative; min-height: 120px; }
.oe-lienzo svg { display: block; max-width: 100%; height: auto; overflow: hidden; touch-action: pan-y; }
.oe-lienzo svg:focus-visible { outline: 2px solid var(--dorado); outline-offset: 4px; }
.fuente { font-family: var(--f-util); font-size: .8rem !important; line-height: 1.5 !important; color: var(--tinta-3); margin: .75rem 0 0 !important; text-align: left !important; hyphens: manual !important; }
.ayuda-lectura { font-family: var(--f-util); font-size: .74rem; color: var(--tinta-3); margin: .35rem 0 0; }
figure.grafico noscript img { width: 100%; border-radius: 4px; }
.ver-cap { font-family: var(--f-util); font-size: .82rem; font-weight: 600; text-decoration: none; display: inline-block; margin-top: .6rem; }

/* clases de color de las marcas (SVG) */
.f-s1 { fill: var(--s1); } .f-s2 { fill: var(--s2); } .f-s3 { fill: var(--s3); } .f-s4 { fill: var(--s4); } .f-s5 { fill: var(--s5); } .f-ctx { fill: var(--ctx); }
.k-s1 { stroke: var(--s1); } .k-s2 { stroke: var(--s2); } .k-s3 { stroke: var(--s3); } .k-s4 { stroke: var(--s4); } .k-s5 { stroke: var(--s5); } .k-ctx { stroke: var(--ctx); }
.b-s1 { background: var(--s1); } .b-s2 { background: var(--s2); } .b-s3 { background: var(--s3); } .b-s4 { background: var(--s4); } .b-s5 { background: var(--s5); } .b-ctx { background: var(--ctx); } .b-banda { background: var(--banda); border: 1px solid var(--eje); }
.oe-svg text { font-family: var(--f-util); }
.eje-t { font-size: 11.5px; fill: var(--tinta-3); font-variant-numeric: tabular-nums; }
.eje-nombre { font-size: 12.5px; fill: var(--tinta-2); }
.eje-sangria { fill: var(--tinta-3); font-style: italic; }
.eje-titulo { font-size: 11.5px; fill: var(--tinta-2); font-weight: 500; }
.rejilla { stroke: var(--rejilla); stroke-width: 1; }
.eje-cero { stroke: var(--eje); stroke-width: 1.2; }
.eje-marca { stroke: var(--eje); stroke-width: 1; }
.ref { stroke: var(--tinta-3); stroke-width: 1.2; fill: none; }
.ref-guion { stroke-dasharray: 5 4; }
.ref-punto { stroke-dasharray: 1.5 3.5; stroke-linecap: round; }
.ref.k-s2 { stroke: var(--s2); }
.etq-ref { font-size: 11px; fill: var(--tinta-3); }
.banda { fill: var(--banda); }
.traza { fill: none; stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.traza-fina { stroke-width: 1.6px; opacity: .9; }
.traza-guion { stroke-dasharray: 6 4; }
.anillo { stroke: var(--superficie); stroke-width: 2px; }
.marca { transition: opacity .12s; }
.error { stroke-width: 2px; stroke-linecap: round; }
.rombo-hueco { fill: var(--superficie); stroke-width: 2px; }
.etq-dato { font-size: 11.5px; fill: var(--tinta-2); font-variant-numeric: tabular-nums; }
.etq-chica { font-size: 10.5px; }
.etq-fuerte { font-weight: 650; fill: var(--tinta); }
.etq-punto { font-size: 11px; fill: var(--tinta-2); }
.etq-serie { font-size: 11.5px; font-weight: 650; fill: var(--tinta); paint-order: stroke; stroke: var(--superficie); stroke-width: 3px; stroke-linejoin: round; }
.cuadrante { font-size: 12px; font-weight: 700; fill: var(--tinta-3); opacity: .75; }
.guia { stroke: var(--tinta-3); stroke-width: 1; opacity: .7; }
.cruz { stroke: var(--tinta-3); stroke-width: 1; }
.foco-banda { fill: var(--tinta); opacity: .045; }
.foco-anillo { fill: none; stroke: var(--tinta); stroke-width: 1.5px; }

/* leyenda */
.oe-ley { margin: 0 0 .5rem; }
.oe-leyenda { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-family: var(--f-util); font-size: .8rem; color: var(--tinta-2); line-height: 1.3; }
.oe-leyenda li { display: inline-flex; align-items: center; gap: .45rem; }
.ley-k { display: inline-block; flex: none; }
.ley-linea { width: 18px; height: 3px; border-radius: 2px; }
.ley-linea-punto { width: 18px; height: 3px; border-radius: 2px; position: relative; }
.ley-linea-punto::after { content: ""; position: absolute; left: 5px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: inherit; box-shadow: 0 0 0 1.5px var(--superficie); }
.ley-guion { background: transparent !important; border-top: 3px dashed; height: 0; }
.ley-guion.b-s3 { border-color: var(--s3); } .ley-guion.b-s1 { border-color: var(--s1); }
.ley-barra { width: 12px; height: 12px; border-radius: 3px; }
.ley-punto, .ley-circulo { width: 10px; height: 10px; border-radius: 50%; }
.ley-cuadrado { width: 10px; height: 10px; border-radius: 2px; }
.ley-triangulo { width: 12px; height: 11px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ley-rombo { width: 11px; height: 11px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ley-cruz { width: 11px; height: 11px; clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.ley-rombo.b-s1 { background: var(--s1); }
.oe-ley-nota { font-family: var(--f-util); font-size: .76rem; color: var(--tinta-3); margin: .35rem 0 0 !important; text-align: left !important; }

/* globo de lectura */
.oe-globo { position: absolute; z-index: 60; pointer-events: none; background: var(--superficie); color: var(--tinta); border: 1px solid var(--regla); border-radius: 8px; box-shadow: 0 6px 24px rgba(10, 16, 24, .18); padding: .55rem .7rem .5rem; font-family: var(--f-util); font-size: .8rem; line-height: 1.35; max-width: 19rem; }
.oe-globo .g-t { font-weight: 600; color: var(--tinta-2); margin-bottom: .3rem; font-size: .76rem; }
.oe-globo .g-f { display: flex; align-items: baseline; gap: .45rem; margin: .12rem 0; }
.oe-globo .g-k { flex: none; width: 12px; height: 3px; border-radius: 2px; align-self: center; }
.oe-globo .g-kb { height: 10px; width: 10px; border-radius: 2px; }
.oe-globo b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tinta); white-space: nowrap; }
.oe-globo .g-n { color: var(--tinta-3); }

/* tabla de datos del gráfico */
.oe-datos { margin-top: .7rem; border-top: 1px solid var(--regla); padding-top: .45rem; font-family: var(--f-util); }
.oe-datos summary { cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--azul); }
.oe-datos-nota { font-size: .76rem !important; color: var(--tinta-3); margin: .4rem 0 0 !important; text-align: left !important; }
.tabla-desliza { overflow-x: auto; margin-top: .5rem; max-height: 22rem; overflow-y: auto; }
.tabla-datos { border-collapse: collapse; font-size: .78rem; width: 100%; }
.tabla-datos caption { text-align: left; font-size: .74rem; color: var(--tinta-3); padding-bottom: .3rem; }
.tabla-datos th, .tabla-datos td { padding: .3rem .55rem; border-bottom: 1px solid var(--rejilla); text-align: left; white-space: nowrap; }
.tabla-datos thead th { position: sticky; top: 0; background: var(--superficie); color: var(--tinta-2); font-weight: 600; border-bottom: 1px solid var(--eje); white-space: normal; min-width: 5rem; vertical-align: bottom; }
.tabla-datos .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Cuadros del estudio ---------- */
figure.cuadro .tabla-desliza { max-height: none; }
table.tabla { border-collapse: collapse; width: 100%; font-family: var(--f-util); font-size: .84rem; line-height: 1.4; }
table.tabla th, table.tabla td { padding: .45rem .6rem; border-bottom: 1px solid var(--rejilla); vertical-align: top; text-align: left; }
table.tabla thead th { font-weight: 650; color: var(--tinta-2); border-bottom: 1.5px solid var(--eje); vertical-align: bottom; background: var(--superficie); }
table.tabla thead th strong { font-weight: 650; }
table.tabla td.num, table.tabla th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tabla tbody tr:hover { background: var(--superficie-2); }
table.tabla tbody tr.total td { font-weight: 650; border-top: 1.5px solid var(--eje); }
table.tabla td:first-child { color: var(--tinta); }
@media (max-width: 560px) { table.tabla { font-size: .8rem; } table.tabla th, table.tabla td { padding: .4rem .45rem; } }

/* ---------- Recuadros ---------- */
aside.recuadro { background: var(--superficie-2); border-radius: 8px; padding: 1.1rem 1.3rem .5rem; margin: 2rem 0; border-left: 4px solid var(--azul); }
aside.recuadro h3 { font-family: var(--f-util); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); margin: 0 0 .7rem; font-weight: 700; }
aside.recuadro p { font-size: 1rem; line-height: 1.58; }
aside.recuadro p.fuente { margin-bottom: .7rem !important; }

/* ---------- Navegación entre capítulos y pie ---------- */
.siguiente { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter) 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.siguiente a { display: block; text-decoration: none; color: var(--tinta); border-top: 2px solid var(--tinta); padding-top: .8rem; }
.siguiente a.der { text-align: right; }
.siguiente .d { display: block; font-family: var(--f-util); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dorado-texto); font-weight: 700; margin-bottom: .3rem; }
.siguiente .t { display: block; font-family: var(--f-titulo); font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
.siguiente a:hover .t { color: var(--azul); }
@media (max-width: 560px) { .siguiente { grid-template-columns: 1fr; } .siguiente a.der { text-align: left; } }
.pie { background: #0F1B30; color: #C9D3E2; font-family: var(--f-util); font-size: .86rem; line-height: 1.55; }
.pie-in { max-width: var(--ancho); margin: 0 auto; padding: 2.2rem var(--gutter) 2.4rem; display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .pie-in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.pie p { margin: 0 0 .5rem; }
.pie strong { color: #FFFFFF; }
.pie a { color: #E2C48A; text-decoration: none; }
.pie a:hover { text-decoration: underline; color: #F0D9A8; }
.pie nav { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-family: var(--f-mono); font-size: .82rem; }

/* galería de gráficos */
.galeria-cap { font-family: var(--f-titulo); font-weight: 600; font-size: 1.35rem; margin: 2.4rem 0 .2rem; }
.galeria-cap a { text-decoration: none; color: inherit; }
.lista-cuadros { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 2rem; font-family: var(--f-util); font-size: .9rem; }
.lista-cuadros li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--regla); }
.lista-cuadros a { text-decoration: none; }
.lista-cuadros b { font-family: var(--f-mono); font-weight: 600; color: var(--dorado-texto); margin-right: .4rem; font-size: .82rem; }

@media print {
  .franja-oe, .barra, .indice-cap, .siguiente, .oe-datos summary, .cinta, .acciones { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  figure.grafico, figure.cuadro { box-shadow: none; break-inside: avoid; }
  .oe-datos { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .traza { stroke: CanvasText; } .marca { fill: CanvasText; } }
.cuadrante-chico { font-size: 10.5px; }
.texto li, .texto li p { text-align: left; hyphens: manual; }
.indice-cap .otros a { display: inline; padding: 0; border: 0; }
@media (max-width: 640px) {
  .marca em, .m-ocultar { display: none; }
  .franja-oe { font-size: .66rem; letter-spacing: .03em; }
  .franja-oe a { white-space: nowrap; }
  .franja-in { flex-wrap: nowrap; padding-top: .38rem; padding-bottom: .38rem; }
  .cinta-vivo { display: none; }
  .parte { font-size: .7rem; }
}
@media (max-width: 640px) { .barra nav { gap: .85rem; font-size: .74rem; } }
