/* Open Data Deporte · opendata.portalgestiona.com
   Lenguaje de portalgestiona.com: pantallas completas con scroll por secciones,
   fondo #0a0e17, cian #00f2ea, fucsia #ff0050, morado #7b2cbf, Inter.
   Sin «tarjetas»: los datos van sobre fotografía con capa oscura, las esquinas
   se cortan en chaflán y las separaciones son líneas de luz, no bordes. */

:root {
  --bg: #0a0e17;
  --bg-2: #0c1220;
  --surface: #0f1524;
  --primary: #00f2ea;
  --secondary: #ff0050;
  --accent: #7b2cbf;
  --text: #f4f7fb;
  --text-2: #c6d2df;
  --muted: #8ea3bb;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --grad: linear-gradient(120deg, #00f2ea 0%, #4f8df5 45%, #7b2cbf 100%);
  --grad-hot: linear-gradient(120deg, #ff0050 0%, #7b2cbf 100%);
  --cut: 14px;                                  /* tamaño del chaflán */
  --head: 74px;                                 /* alto de la cabecera fija */
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  overflow: hidden;                              /* el scroll lo lleva .snap */
}
a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hot { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: min(1320px, 100% - 48px); margin: 0 auto; position: relative; z-index: 2; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ── Contenedor por pantallas ─────────────────────────────────────────── */
.snap {
  height: 100vh; height: 100svh; overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory; scroll-behavior: smooth; overscroll-behavior: contain;
}
.screen {
  position: relative; min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--head) + 24px) 0 48px; overflow: hidden; isolation: isolate;
}
.screen.fit { height: 100vh; height: 100svh; }      /* pantallas-herramienta: ocupan justo la pantalla */
.screen-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.screen-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s ease-out; filter: saturate(.9); }
.screen.active .screen-bg img { transform: scale(1); }
.screen-shade { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 20% 30%, rgba(10, 14, 23, .55) 0%, rgba(10, 14, 23, .92) 70%),
              linear-gradient(to bottom, rgba(10, 14, 23, .45) 0%, rgba(10, 14, 23, .2) 40%, var(--bg) 100%); }
.screen-shade.left { background: linear-gradient(90deg, rgba(10, 14, 23, .97) 0%, rgba(10, 14, 23, .88) 42%, rgba(10, 14, 23, .68) 100%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.screen-shade.right { background: linear-gradient(270deg, rgba(10, 14, 23, .97) 0%, rgba(10, 14, 23, .88) 42%, rgba(10, 14, 23, .68) 100%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
@media (max-width: 900px) { .screen-shade.left, .screen-shade.right { background: linear-gradient(to bottom, rgba(10, 14, 23, .95), rgba(10, 14, 23, .82) 50%, rgba(10, 14, 23, .95)); } }
.screen-shade.heavy { background: linear-gradient(to bottom, rgba(10, 14, 23, .9), rgba(10, 14, 23, .96)); }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .35; z-index: -1; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.glow.c { background: #00b8b2; width: 46vw; height: 46vw; right: -16vw; bottom: -20vw; }
.glow.p { background: var(--accent); width: 40vw; height: 40vw; left: -14vw; top: -16vw; animation-delay: -6s; }
@keyframes drift { to { transform: translate(4vw, -3vw) scale(1.1); } }

/* Aparición escalonada al entrar en pantalla */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.screen.active .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .screen-bg img, .glow { transition: none; animation: none; transform: none; }
}

/* Puntos de navegación entre pantallas (como en portalgestiona.com) */
.dots { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 60; display: flex; flex-direction: column; gap: 14px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); cursor: pointer; position: relative; transition: transform .25s, background .25s; }
.dots button.on { background: var(--primary); transform: scale(1.45); box-shadow: 0 0 12px rgba(0, 242, 234, .8); }
.dots button span { position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(0, 0, 0, .75); padding: 4px 9px; opacity: 0; transition: .25s; pointer-events: none; color: #fff; }
.dots button:hover span { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 760px) { .dots { right: 8px; gap: 10px; } .dots button { width: 7px; height: 7px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; font-size: .66rem; letter-spacing: .26em;
  color: rgba(255, 255, 255, .55); display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--primary), transparent); animation: cue 2s ease-in-out infinite; }
@media (max-height: 760px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── Cabecera fija y menú a pantalla completa ────────────────────────── */
.od-top { position: fixed; inset: 0 0 auto 0; height: var(--head); z-index: 70; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; background: linear-gradient(to bottom, rgba(10, 14, 23, .85), rgba(10, 14, 23, 0)); pointer-events: none; }
.od-top > * { pointer-events: auto; }
.od-brand { display: flex; align-items: center; gap: 14px; }
.od-brand img { height: 40px; width: auto; }
.od-brand b { font: 700 .68rem/1 var(--display); letter-spacing: .3em; color: var(--primary); padding-left: 14px; border-left: 1px solid var(--line-2); text-transform: uppercase; }
.od-links { display: flex; gap: 26px; align-items: center; }
.od-links a { color: var(--text-2); font-size: .88rem; font-weight: 600; position: relative; padding: 6px 0; }
.od-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); transition: right .3s; }
.od-links a:hover, .od-links a.on { color: #fff; }
.od-links a:hover::after, .od-links a.on::after { right: 0; }
.od-burger { display: none; width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, .06); cursor: pointer; backdrop-filter: blur(10px);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.od-burger i { display: block; width: 20px; height: 2px; background: #fff; margin: 5px auto; transition: .3s; }
.od-burger.x i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.od-burger.x i:nth-child(2) { opacity: 0; }
.od-burger.x i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.od-menu { position: fixed; inset: 0; z-index: 65; background: rgba(8, 11, 19, .97); backdrop-filter: blur(16px); display: flex; flex-direction: column;
  justify-content: center; padding: 90px 32px 40px; gap: 6px; clip-path: circle(0 at calc(100% - 55px) 37px); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1); }
.od-menu.open { clip-path: circle(150% at calc(100% - 55px) 37px); }
.od-menu a { font: 700 clamp(1.8rem, 8vw, 3rem)/1.15 var(--display); color: var(--text); letter-spacing: -.02em; }
.od-menu a:hover { color: var(--primary); }
.od-menu a small { display: block; font: 500 .8rem 'Inter'; color: var(--muted); letter-spacing: 0; margin: 2px 0 14px; }
@media (max-width: 1060px) { .od-links { display: none; } .od-burger { display: block; } .od-top { padding: 0 16px; } }
@media (max-width: 420px) { .od-brand img { height: 32px; } .od-brand b { display: none; } }

/* ── Tipografía ───────────────────────────────────────────────────────── */
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 700 .72rem/1 var(--display); letter-spacing: .28em; text-transform: uppercase; color: var(--primary); margin-bottom: 18px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--grad); }
.display { font: 700 clamp(2.3rem, 6.4vw, 5.6rem)/.98 var(--display); letter-spacing: -.035em; }
.h2 { font: 700 clamp(1.9rem, 4.2vw, 3.4rem)/1.02 var(--display); letter-spacing: -.03em; }
.h3 { font: 700 clamp(1.3rem, 2.4vw, 1.9rem)/1.1 var(--display); letter-spacing: -.02em; }
.lead { font-size: clamp(1rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 680px; margin-top: 20px; }

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn { --c: var(--cut); position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-weight: 700; font-size: .92rem;
  letter-spacing: .02em; cursor: pointer; border: 0; color: var(--bg); background: var(--primary); overflow: hidden; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: transform .25s, filter .25s; }
.btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 0 14px rgba(0, 242, 234, .45)); }
.btn:hover::before { left: 130%; }
.btn svg { width: 17px; height: 17px; }
.btn-hot { background: var(--grad-hot); color: #fff; }
.btn-hot:hover { filter: drop-shadow(0 0 16px rgba(255, 0, 80, .5)); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(0, 242, 234, .16); }
.btn-sm { --c: 9px; padding: 9px 15px; font-size: .8rem; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: #fff; background: none; border: 0; cursor: pointer; padding: 6px 0; position: relative; }
.link-arrow::after { content: "→"; color: var(--primary); transition: transform .3s; }
.link-arrow::before { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--grad); transform: scaleX(.3); transform-origin: left; transition: transform .35s; }
.link-arrow:hover::after { transform: translateX(6px); }
.link-arrow:hover::before { transform: scaleX(1); }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 34px; }

/* ── Controles de formulario: subrayados, sin cajas ─────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font: 700 .66rem/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.select, .input { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 9px 26px 9px 0; font-size: .95rem; font-weight: 600; color: #fff; border-radius: 0; transition: border-color .25s; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 9px) 52%, calc(100% - 4px) 52%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.input { padding-right: 0; }
.select:focus, .input:focus { outline: none; border-bottom-color: var(--primary); box-shadow: 0 1px 0 var(--primary); }
.select option, .select optgroup { background: #0d1322; color: #fff; }
.input::placeholder { color: rgba(198, 210, 223, .45); font-weight: 500; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; color: var(--text-2); user-select: none; }
.switch input { appearance: none; width: 38px; height: 20px; background: rgba(255, 255, 255, .14); position: relative; cursor: pointer; transition: background .25s; flex: none;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.switch input::after { content: ""; position: absolute; top: 4px; left: 4px; width: 12px; height: 12px; background: #fff; transition: left .25s; }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { left: 22px; background: var(--bg); }
.switch input:disabled { opacity: .35; }

/* Selector de opciones: texto con subrayado de luz en la activa */
.seg { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; }
.seg button { background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--muted); font-size: .84rem; font-weight: 700; display: inline-flex; gap: 7px;
  align-items: center; position: relative; transition: color .2s; }
.seg button svg { width: 19px; height: 19px; }
.seg button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s; }
.seg button:hover { color: #fff; }
.seg button.on { color: var(--primary); }
.seg button.on::after { transform: scaleX(1); }
.seg button:disabled { opacity: .25; cursor: not-allowed; }
.seg .lbl-sm { display: none; }
@media (min-width: 1500px) { .seg .lbl-sm { display: inline; } }

/* ── PORTADA ─────────────────────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: end; }
.hero-side { justify-self: end; text-align: right; display: flex; flex-direction: column; gap: 22px; padding-bottom: 8px; }
.hero-side .n { font: 700 clamp(2.4rem, 4.6vw, 3.8rem)/1 var(--display); letter-spacing: -.03em; }
.hero-side .l { font-size: .8rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-side { justify-self: start; text-align: left; flex-direction: row; gap: 26px; } .hero-side .n { font-size: 2rem; } }

/* Cifras: cuatro paneles fotográficos, sin recuadros. Al pasar el ratón el
   panel se abre; en móvil son cuatro franjas que llenan la pantalla. */
.screen.flush { padding: 0; }
.panels { display: flex; height: 100vh; height: 100svh; width: 100%; }
.panel-img { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3vw 9vh;
  transition: flex .7s cubic-bezier(.2, .7, .2, 1); color: #fff; isolation: isolate; }
.panel-img:hover { flex: 1.6; }
.panel-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.15); transition: transform 1.2s; filter: grayscale(.25); }
.panel-img:hover img { transform: scale(1.04); filter: none; }
.panel-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 14, 23, .97) 8%, rgba(10, 14, 23, .55) 55%, rgba(10, 14, 23, .75) 100%); }
.panel-img::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: linear-gradient(transparent, rgba(0, 242, 234, .5), transparent); }
.panel-img:last-child::after { display: none; }
.panel-img .pi-k { font: 700 .66rem/1.3 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.panel-img .pi-n { font: 700 clamp(2.2rem, 4.4vw, 4.4rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel-img .pi-t { font-size: .95rem; color: var(--text-2); margin-top: 10px; max-width: 300px; }
.panel-img .pi-t b { color: #fff; }
.panel-img .pi-s { font-size: .78rem; color: var(--muted); margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 300px;
  opacity: 0; transform: translateY(10px); transition: .5s .1s; }
.panel-img:hover .pi-s, .screen.active .panel-img .pi-s { opacity: 1; transform: none; }
.panels-title { position: absolute; top: calc(var(--head) + 12px); left: 0; right: 0; z-index: 3; pointer-events: none; }
@media (max-width: 860px) {
  .panels { flex-direction: column; }
  .panel-img { padding: 0 20px 14px; justify-content: flex-end; }
  .panel-img:first-child { padding-top: calc(var(--head) + 40px); }
  .panel-img:hover { flex: 1; }
  .panel-img::after { top: auto; left: 0; width: auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 242, 234, .5), transparent); }
  .panel-img .pi-n { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .panel-img .pi-k { margin-bottom: 6px; }
  .panel-img .pi-t { margin-top: 4px; font-size: .84rem; max-width: none; }
  .panel-img .pi-s { display: none; }
  .panels-title { display: none; }
}

/* Temas: mosaico fotográfico con esquinas cortadas */
/* Rellena exactamente lo que queda de pantalla bajo el título. */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 30px;
  height: max(360px, calc(100vh - var(--head) - 230px)); height: max(360px, calc(100svh - var(--head) - 230px)); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; isolation: isolate; text-align: left;
  border: 0; cursor: pointer; background: #111; clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .6s; filter: grayscale(.35) brightness(.85); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 14, 23, .96) 10%, rgba(10, 14, 23, .35) 70%); transition: background .5s; }
.tile:hover img { transform: scale(1.08); filter: none; }
.tile:hover::before { background: linear-gradient(to top, rgba(10, 14, 23, .95) 0%, rgba(0, 120, 116, .35) 100%); }
.tile .t-n { position: absolute; top: 20px; right: 24px; font: 700 .72rem var(--display); letter-spacing: .2em; color: var(--primary); }
.tile h3 { font: 700 clamp(1.15rem, 2vw, 1.6rem)/1.1 var(--display); letter-spacing: -.02em; }
.tile p { font-size: .85rem; color: var(--text-2); margin-top: 6px; max-width: 360px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .5s; }
.tile:hover p, .tile:focus-visible p { max-height: 80px; opacity: 1; }
.tile .t-go { margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--primary); letter-spacing: .06em; }
.tile.w2 { grid-column: span 2; } .tile.h2 { grid-row: span 2; }
@media (max-width: 860px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px;
    height: max(330px, calc(100svh - var(--head) - 170px)); }
  .tile.w2 { grid-column: span 1; } .tile.h2 { grid-row: span 1; } .tile.wide-m { grid-column: span 2; }
  .tile { padding: 14px; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
  .tile p { display: none; }
}

/* Historias de datos: una pantalla por gráfico */
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 50px; align-items: center; }
.story .big { font: 700 clamp(3.4rem, 8vw, 7rem)/.9 var(--display); letter-spacing: -.05em; margin: 18px 0 8px; }
.story .big small { font-size: .38em; letter-spacing: -.01em; }
.story .txt { color: var(--text-2); font-size: 1.02rem; max-width: 470px; }
.story .txt b { color: #fff; }
.story .src { font-size: .74rem; color: var(--muted); margin-top: 22px; letter-spacing: .04em; }
.story .viz { height: min(64vh, 560px); width: 100%; }
.story.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.story.rev .story-txt { order: 2; }
@media (max-width: 900px) {
  .story, .story.rev { grid-template-columns: 1fr; gap: 10px; }
  .story.rev .story-txt { order: 0; }
  .story .big { font-size: clamp(2.6rem, 14vw, 3.6rem); margin: 8px 0 4px; }
  .story .txt { font-size: .9rem; }
  .story .src { margin-top: 8px; }
  .story .viz { height: 46svh; }
}

/* Catálogo: carril horizontal con desplazamiento por tarjetas */
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 22px 40px; }
.cat-tools { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: end; flex: 1 1 520px; justify-content: flex-end; }
.cat-tools .field { flex: 1 1 160px; max-width: 280px; }
.cat-tools .field.q { flex: 2 1 260px; max-width: 360px; }
.rail-wrap { position: relative; margin-top: 30px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; scrollbar-width: thin; scrollbar-color: rgba(0, 242, 234, .4) transparent; }
.rail::-webkit-scrollbar { height: 4px; } .rail::-webkit-scrollbar-thumb { background: rgba(0, 242, 234, .4); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 46px; height: 46px; border: 0; cursor: pointer; background: rgba(255, 255, 255, .07); color: #fff; font-size: 1.1rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .25s; }
.rail-nav button:hover { background: var(--primary); color: var(--bg); }
.dcard { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; height: clamp(340px, calc(100svh - var(--head) - 240px), 500px); padding: 0; isolation: isolate;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); transition: transform .4s, background .4s; }
.dcard:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(0, 242, 234, .1), rgba(123, 44, 191, .06)); }
.dcard .dc-img { height: clamp(70px, 14svh, 130px); flex: none; position: relative; overflow: hidden; }
.dcard .dc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.7); transition: transform 1s, filter .5s; }
.dcard:hover .dc-img img { transform: scale(1.08); filter: none; }
.dcard .dc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgba(14, 19, 32, 1)); }
.dcard .dc-body { padding: 0 22px 22px; display: flex; flex-direction: column; flex: 1; margin-top: -26px; position: relative; }
.dcard .dc-tags { display: flex; gap: 12px; flex-wrap: wrap; font: 700 .64rem/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.dcard .dc-tags .and { color: #6ff3b9; } .dcard .dc-tags .es { color: #ff7aa2; } .dcard .dc-tags span { color: var(--muted); }
.dcard h3 { font: 700 1.16rem/1.22 var(--display); margin-top: 12px; letter-spacing: -.01em; }
.dcard p { font-size: .84rem; color: var(--muted); margin-top: 10px; flex: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
@media (max-height: 760px) { .dcard p { -webkit-line-clamp: 2; } .dcard h3 { font-size: 1.02rem; } }
.dcard .dc-num { display: flex; gap: 26px; margin-top: auto; padding-top: 16px; }
.dcard .dc-num div { font: 700 1.25rem/1 var(--display); }
.dcard .dc-num div small { display: block; font: 500 .68rem 'Inter'; color: var(--muted); margin-top: 5px; letter-spacing: .04em; }
.dcard .dc-act { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.dcard .dc-act a.fmt { font: 700 .72rem var(--display); letter-spacing: .14em; color: var(--text-2); }
.dcard .dc-act a.fmt:hover { color: var(--primary); }
.dcard .dc-act .btn { margin-right: auto; }
.empty { padding: 50px 10px; color: var(--muted); }
@media (max-width: 640px) { .rail { grid-auto-columns: 84%; } .dcard { height: clamp(320px, calc(100svh - var(--head) - 300px), 480px); } .cat-tools { justify-content: flex-start; } .cat-tools .field { max-width: none; } }

/* API */
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: start; margin-top: 30px; }
.term { position: relative; background: rgba(4, 7, 13, .78); backdrop-filter: blur(8px); padding: 44px 24px 22px; font: 500 .8rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a9f6f2; white-space: pre; overflow-x: auto; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.term::before { content: "● ● ●"; position: absolute; top: 14px; left: 22px; color: rgba(255, 255, 255, .25); letter-spacing: 3px; font-size: .62rem; }
.term .c { color: #5f7690; }
.dl-list { display: flex; flex-direction: column; max-height: max(220px, calc(100svh - var(--head) - 330px)); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: rgba(0, 242, 234, .3) transparent; }
.dl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.dl-row b { font-weight: 600; color: var(--text); }
.dl-row span { color: var(--muted); font-size: .76rem; }
.dl-row a { font: 700 .7rem var(--display); letter-spacing: .14em; }
@media (max-width: 900px) { .api-grid { grid-template-columns: 1fr; gap: 18px; } .term { font-size: .7rem; padding: 38px 16px 16px; } .dl-list { max-height: 30svh; } }

/* Fuentes y pie */
.src-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; margin-top: 30px; }
.src-list a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); color: #fff; font-weight: 600; font-size: .95rem; }
.src-list a span { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; margin-top: 3px; }
.src-list a:hover { color: var(--primary); }
.od-foot { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .78rem; color: #6d8099; }
.od-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.od-foot a { color: #8ea3bb; }
.od-foot a:hover { color: #fff; }

/* ── HERRAMIENTAS (explorador, encuesta, buscador) ─────────────────────── */
.tool-hero .facts { display: flex; flex-wrap: wrap; gap: 26px 56px; margin-top: 40px; }
.facts .f-n { font: 700 clamp(1.8rem, 3.6vw, 3rem)/1 var(--display); letter-spacing: -.03em; }
.facts .f-l { font-size: .74rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.picker { display: flex; flex-wrap: wrap; gap: 22px 30px; align-items: end; margin-top: 34px; max-width: 960px; }
.picker .field { flex: 1 1 360px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.chips-pick button { background: none; border: 0; color: var(--text-2); font-size: .84rem; font-weight: 600; cursor: pointer; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .25); }
.chips-pick button:hover, .chips-pick button.on { color: var(--primary); border-bottom-color: var(--primary); }

/* Pantalla de trabajo: ocupa exactamente la ventana; dentro, cada zona hace su propio scroll */
.work { padding: calc(var(--head) + 6px) 0 16px; justify-content: flex-start; }
.work-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; height: 100%; min-height: 0; flex: 1; }
.work-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: end; }
.toolbar .field { flex: 1 1 160px; }
.toolbar .field.grow { flex: 2 1 220px; }
.toolbar-2 { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.chart-area { position: relative; flex: 1; min-height: 260px; }
.chart-area .chart { position: absolute; inset: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 10px 18px; }
.chart-head h2 { font: 700 clamp(1.05rem, 1.8vw, 1.35rem)/1.2 var(--display); letter-spacing: -.01em; }
.chart-head .sub { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.chart-head .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Cifras de la selección: en línea, separadas por un trazo de luz */
.statline { display: flex; flex-wrap: wrap; gap: 8px 0; }
.statline .st { padding: 2px 26px 2px 0; margin-right: 26px; position: relative; min-width: 0; }
.statline .st::after { content: ""; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, rgba(0, 242, 234, .6), transparent); }
.statline .st:last-child::after { display: none; }
.statline .st b { display: block; font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.statline .st span { font-size: .72rem; color: var(--muted); }
.statline .st em { font-style: normal; color: var(--text-2); }

/* Panel lateral de filtros / preguntas */
.side { display: flex; flex-direction: column; min-height: 0; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.side-head h2 { font: 700 .72rem var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--primary); }
.side-body { overflow-y: auto; flex: 1; min-height: 0; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.fdim { border-bottom: 1px solid var(--line); }
.fdim > summary { list-style: none; cursor: pointer; padding: 13px 0; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.fdim > summary::-webkit-details-marker { display: none; }
.fdim > summary::after { content: "+"; margin-left: auto; color: var(--primary); font-weight: 400; font-size: 1.2rem; line-height: 1; transition: transform .3s; }
.fdim[open] > summary::after { transform: rotate(45deg); }
.fdim .cnt { font: 700 .66rem var(--display); color: var(--bg); background: var(--primary); padding: 3px 7px; letter-spacing: .04em; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fdim .cnt.all { background: none; color: var(--muted); padding: 0; }
.fdim .fbody { padding: 0 0 14px; }
.fdim .ftools { display: flex; gap: 12px; margin-bottom: 8px; align-items: end; }
.fdim .ftools .input { font-size: .84rem; padding: 6px 0; }
.fdim .ftools button { background: none; border: 0; font-size: .72rem; font-weight: 700; color: var(--primary); cursor: pointer; white-space: nowrap; padding: 6px 0; }
.fdim .flist { max-height: 240px; overflow: auto; display: flex; flex-direction: column; }
.fdim label { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; padding: 5px 0; cursor: pointer; color: var(--text-2); transition: color .2s, padding .2s; }
.fdim label:hover { color: #fff; padding-left: 4px; }
.fdim input[type=checkbox], .fdim input[type=radio] { appearance: none; width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, .35); margin-top: 3px; flex: none; cursor: pointer; transition: .2s; }
.fdim input[type=radio] { border-radius: 50%; }
.fdim input:checked { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 242, 234, .6); }
.fdim .more { font-size: .76rem; color: var(--muted); padding: 6px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.chip { font-size: .76rem; color: #bff9f6; display: inline-flex; gap: 6px; align-items: center; }
.chip button { background: none; border: 0; color: var(--secondary); cursor: pointer; font-size: .95rem; line-height: 1; }

.drawer-btn { display: none; }
.drawer-close { display: none; }
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(88vw, 360px); z-index: 80; background: rgba(9, 13, 22, .98); backdrop-filter: blur(16px);
    padding: 22px 18px; transform: translateX(-104%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); box-shadow: 30px 0 80px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .drawer-btn { display: inline-flex; }
  .drawer-close { display: inline-block; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
  .toolbar { gap: 10px 16px; }
  .toolbar .field { flex: 1 1 130px; }
  .statline .st { padding-right: 14px; margin-right: 14px; }
}
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 75; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }

/* Pantalla de tabla */
.tabs { display: flex; gap: 26px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 12px 0; font: 700 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; position: relative; white-space: nowrap; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s; }
.tabs button.on { color: #fff; }
.tabs button.on::after { transform: scaleX(1); }
.tab-body { flex: 1; min-height: 0; overflow: auto; margin-top: 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.tablewrap { overflow: auto; max-height: 100%; }
table.dt { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
table.dt th, table.dt td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .06); }
table.dt th:first-child, table.dt td:first-child { text-align: left; white-space: normal; min-width: 160px; padding-left: 0; }
table.dt td.txt, table.dt th.txt { text-align: left; white-space: normal; }
table.dt thead th { position: sticky; top: 0; z-index: 1; background: var(--bg); color: var(--muted); font: 700 .68rem var(--display); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; user-select: none; border-bottom: 1px solid var(--line-2); }
table.dt thead th:hover { color: var(--primary); }
table.dt thead th.sorted { color: var(--primary); }
table.dt thead th.sorted::after { content: " ↓"; }
table.dt thead th.sorted.asc::after { content: " ↑"; }
table.dt tbody tr { transition: background .2s; }
table.dt tbody tr:hover { background: linear-gradient(90deg, rgba(0, 242, 234, .07), transparent); }
table.dt tfoot td { font-weight: 800; position: sticky; bottom: 0; background: var(--bg); border-top: 1px solid var(--line-2); }
table.dt .bar { display: inline-block; height: 3px; background: var(--grad); vertical-align: middle; margin-right: 10px; }
.pager { display: flex; gap: 18px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.note { font-size: .82rem; color: var(--text-2); padding-left: 14px; border-left: 2px solid var(--accent); }
.note b { color: #fff; }
.api-box { font: 500 .8rem/1.7 ui-monospace, Menlo, monospace; color: #a9f6f2; white-space: pre; overflow-x: auto; margin-top: 8px; }

/* Menú de descargas */
.dl { position: relative; }
.dl-menu { position: absolute; right: 0; top: calc(100% + 8px); background: rgba(10, 14, 23, .98); backdrop-filter: blur(14px); padding: 10px; min-width: 250px; z-index: 50;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: none; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); border-top: 2px solid var(--primary); }
.dl.open .dl-menu { display: block; animation: drop .25s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.dl-menu button { display: flex; width: 100%; gap: 12px; align-items: center; background: none; border: 0; padding: 8px 8px; cursor: pointer; font-size: .85rem; color: var(--text-2); text-align: left; transition: .2s; }
.dl-menu button:hover { color: #fff; background: rgba(0, 242, 234, .08); padding-left: 12px; }
.dl-menu .sep { height: 1px; background: var(--line); margin: 6px 0; }
.dl-menu .lbl { font: 700 .62rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 8px 8px 4px; }

/* Encuesta */
.qblock { font: 700 .64rem var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.qitem { text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: .85rem; color: var(--text-2); display: flex; gap: 10px; line-height: 1.35; width: 100%; transition: color .2s, padding .2s; }
.qitem:hover { color: #fff; padding-left: 4px; }
.qitem.on { color: var(--primary); }
.qitem code { font: 700 .68rem var(--display); color: var(--muted); flex: none; min-width: 38px; padding-top: 2px; }
.qitem.on code { color: var(--primary); }
.qhead h2 { font: 700 clamp(1.1rem, 2vw, 1.5rem)/1.2 var(--display); }
.qtext { font-size: .82rem; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.anslist { display: flex; flex-wrap: wrap; gap: 4px 16px; max-height: 64px; overflow: auto; }
.ans { font-size: .78rem; padding: 3px 0; border: 0; background: none; cursor: pointer; color: var(--text-2); display: inline-flex; gap: 7px; align-items: center; }
.ans i { width: 9px; height: 9px; display: inline-block; flex: none; }
.ans.off { opacity: .38; }
.ans.off i { background: transparent !important; outline: 1px solid var(--muted); }
.ans.all { color: var(--primary); font-weight: 700; }

.fold > summary { list-style: none; cursor: pointer; font: 700 .66rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: " +"; color: var(--primary); }
.fold[open] > summary::after { content: " −"; }
.fold > summary b { color: var(--primary); }
.fold .anslist { margin-top: 6px; }
/* Pantallas bajas: el enunciado completo queda en el título emergente */
@media (max-height: 820px) { .qtext { display: none; } .work-main { gap: 8px; } .anslist { max-height: 46px; } }

/* Avisos y carga */
.loading { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); z-index: 90; background: var(--bg); transition: opacity .5s; }
.loading.done { opacity: 0; pointer-events: none; }
.spinner { width: 48px; height: 48px; margin: 0 auto 14px; position: relative; }
.spinner::before, .spinner::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.spinner::after { inset: 8px; border-top-color: var(--secondary); animation-duration: .7s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: rgba(10, 14, 23, .96); border-left: 3px solid var(--primary);
  padding: 12px 20px; font-size: .88rem; opacity: 0; transition: all .3s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  :root { --head: 64px; }
  .scroll-cue { display: none; }
  /* Pantalla de trabajo en móvil: lo justo para que el gráfico tenga sitio */
  .work .toolbar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 14px; }
  .work .toolbar .field.grow { grid-column: 1 / -1; }
  .work .toolbar .field { flex: none; }
  .work .toolbar .field > span { font-size: .58rem; }
  .work .select { padding: 6px 22px 6px 0; font-size: .86rem; }
  .statline .st:nth-child(n+3) { display: none; }
  .chart-head .sub { display: none; }
  .chart-head h2 { font-size: .98rem; }
  .work-main { gap: 8px; }
  .seg button svg { width: 17px; height: 17px; }
  .seg { gap: 2px 12px; }
  .screen { padding: calc(var(--head) + 14px) 0 30px; }
  .work { padding: calc(var(--head) + 4px) 0 10px; }
  .tool-hero .facts { gap: 18px 30px; margin-top: 26px; }
  .actions { margin-top: 24px; }
}
@media print { .od-top, .dots, .side, .toolbar, .dl { display: none !important; } body { overflow: visible; } .snap { height: auto; overflow: visible; } }

/* ── Generar informe ─────────────────────────────────────────────────── */
.fab-report { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 13px 20px 13px 16px; font: 700 .86rem 'Inter'; color: #fff; background: var(--grad-hot); box-shadow: 0 14px 40px rgba(255, 0, 80, .35);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); transition: transform .25s, filter .25s; }
.fab-report:hover { transform: translateY(-3px); filter: brightness(1.12); }
.fab-report svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .fab-report { right: 14px; bottom: 14px; padding: 12px; } .fab-report span { display: none; } }
.od-links .btn { color: #fff; padding: 9px 15px; }
.od-links .btn::after { display: none; }

.rp-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(4, 6, 12, .78); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 24px; }
.rp-overlay.open { display: flex; animation: drop .3s ease; }
.rp-modal { width: min(1080px, 100%); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); display: flex; flex-direction: column; background: #0c111d;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); border-top: 2px solid var(--primary); }
.rp-wide { width: min(1280px, 100%); }
.rp-head { display: flex; gap: 24px; align-items: flex-start; padding: 22px 28px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rp-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.rp-x { background: none; border: 0; color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.rp-x:hover { color: var(--secondary); }
.rp-steps { display: flex; gap: 18px; font: 700 .7rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; }
.rp-steps .on { color: var(--primary); }
.rp-body { overflow-y: auto; padding: 22px 28px; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
.rp-foot { display: flex; gap: 14px; justify-content: flex-end; align-items: center; padding: 16px 28px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.rp-progress { margin-right: auto; font-size: .82rem; color: var(--primary); }
.rp-sec { margin-bottom: 26px; }
.rp-sec h3 { font: 700 .74rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.rp-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: end; }
.rp-row > .field { flex: 1 1 150px; }
.rp-cover { font-size: .8rem; color: var(--muted); margin-top: 14px; line-height: 1.7; }
.rp-cover b { color: var(--text-2); font-weight: 600; }
.rp-cover em { color: #ffb3c7; font-style: normal; }
.rp-fed { margin-top: 22px; }
.rp-fed-head { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; margin-bottom: 10px; }
.rp-fed-head .input { max-width: 260px; }
.rp-fed-head b, .rp-count { font: 700 .74rem var(--display); color: var(--primary); letter-spacing: .06em; }
.rp-fed-list { columns: 4 190px; column-gap: 24px; max-height: 210px; overflow-y: auto; padding-right: 6px; }
.rp-fed-list label, .rp-item { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--text-2); padding: 4px 0; cursor: pointer; break-inside: avoid; }
.rp-fed-list label:hover, .rp-item:hover { color: #fff; }
.rp-fed-list input, .rp-item input { appearance: none; width: 15px; height: 15px; border: 1px solid rgba(255, 255, 255, .35); margin-top: 2px; flex: none; cursor: pointer; transition: .2s; }
.rp-fed-list input:checked, .rp-item input:checked { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 242, 234, .5); }
.rp-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px 28px; margin-top: 18px; }
.rp-g-head { position: relative; height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 14px; margin-bottom: 8px; overflow: hidden; isolation: isolate;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.rp-g-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.55) grayscale(.2); }
.rp-g-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 14, 23, .92), rgba(10, 14, 23, .35)); }
.rp-g-head b { font: 700 1rem var(--display); flex: 1; }
.rp-g-head span { font: 700 .72rem var(--display); color: var(--primary); }
.rp-g-head .link-arrow { font-size: .74rem; }
.rp-item span small { display: block; color: var(--muted); font-size: .74rem; margin-top: 1px; }
.rp-meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.rv-acts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; align-self: center; }

.rv-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rv-toc a { font-size: .78rem; color: var(--text-2); }
.rv-toc a:hover { color: var(--primary); }
.rv-block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.rv-block h3 { display: flex; gap: 14px; align-items: baseline; font: 700 clamp(1.15rem, 2vw, 1.5rem) var(--display); letter-spacing: -.01em; }
.rv-block h3 span { font-size: .75rem; color: var(--primary); letter-spacing: .1em; }
.rv-note { font-size: .8rem; color: var(--muted); margin-top: 8px; max-width: 900px; }
.rv-kpis { display: flex; flex-wrap: wrap; gap: 14px 0; margin: 18px 0 16px; }
.rv-kpis div { padding: 0 26px 0 0; margin-right: 26px; position: relative; }
.rv-kpis div::after { content: ""; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: linear-gradient(transparent, rgba(0, 242, 234, .6), transparent); }
.rv-kpis div:last-child::after { display: none; }
.rv-kpis b { display: block; font: 700 clamp(1.25rem, 2.4vw, 1.9rem)/1.1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rv-kpis span { font-size: .74rem; color: var(--muted); }
.rv-table { max-height: 420px; }
.rv-chart { width: 100%; margin-top: 8px; }
@media (max-width: 640px) {
  .rp-overlay { padding: 0; }
  .rp-modal { max-height: 100svh; height: 100svh; clip-path: none; }
  .rp-head, .rp-body, .rp-foot { padding-left: 16px; padding-right: 16px; }
  .rp-steps { display: none; }
  .rp-fed-list { columns: 1; }
  .rv-kpis div { padding-right: 14px; margin-right: 14px; }
}
.od-menu { overflow-y: auto; }
.od-menu a { font-size: clamp(1.5rem, 7vw, 2.6rem); }
.od-menu a.hot { color: #ff4f7b; }
@media (max-width: 1320px) { .od-links a[target] { display: none; } .od-links { gap: 20px; } }
