/* All In Arg · capítulos de color: cada sección es un campo plano que baja del celeste a la noche,
   como el degradé de la marca. Un solo tipo (Albert Sans), una sola grilla. */

:root {
  --m: clamp(16px, 2.2vw, 32px);
  --step-small: 1rem;
  --step-body: 1.125rem;
  --step-lead: 1.5rem;
  --step-head: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem);
  --step-xl: clamp(2.75rem, 0.8rem + 8.4vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --seam: 50svh;
  --hero: clamp(96px, 17vw, 280px);
  font-family: 'Albert Sans', system-ui, sans-serif;
}

/* Modo oscuro (por defecto): el celeste de arriba baja al negro, como la tapa de la marca */
:root, :root[data-theme="dark"] {
  --ground: #14191d;
  --hero-grad: linear-gradient(180deg, #4ab8e0 0%, #3d8bb8 28%, #2d6486 52%, #1f3846 76%, #1a1c1e 100%);
  --hero-fg: #ffffff;
  --hero-mark: #ffffff;
  --hero-arg: #1c8bef;
  --shape-hero: rgba(255, 255, 255, .09);
  --shape: rgba(74, 184, 224, .09);
  --sky-bg: #14191d;   --sky-fg: #ffffff;
  --deep-bg: #172633;  --deep-fg: #ffffff;
  --night-bg: #14191d; --night-fg: #ffffff;
  --who-bg: #14191d;   --who-fg: #ffffff;
  --quote-bg: #0066c0; --quote-fg: #ffffff;
  --panel: linear-gradient(165deg, #2f7fb0 0%, #1c4d6e 55%, #14324a 100%);
  --cta-grad: linear-gradient(180deg, #14191d 0%, #1f5a82 62%, #4ab8e0 100%);
  --cta-fg: #ffffff;
  --foot-bg: #0a0d0f;
  --btn-bg: #0066c0;   --btn-fg: #ffffff;
  --accent: #4ab8e0;
}
/* Modo claro: del blanco de arriba al celeste de abajo */
:root[data-theme="light"] {
  --ground: #eef6fc;
  --hero-grad: linear-gradient(180deg, #ffffff 0%, #e4f1fa 24%, #b4d9ee 50%, #7cb8e0 76%, #4fa0d0 100%);
  --hero-fg: #0a1b27;
  --hero-mark: #000000;
  --hero-arg: #0055ff;
  --shape-hero: rgba(255, 255, 255, .55);
  --shape: rgba(0, 85, 255, .06);
  --sky-bg: #eef6fc;   --sky-fg: #0a1b27;
  --deep-bg: #dcecf7;  --deep-fg: #0a1b27;
  --night-bg: #eef6fc; --night-fg: #0a1b27;
  --who-bg: #0a1b27;   --who-fg: #ffffff;
  --quote-bg: #0055ff; --quote-fg: #ffffff;
  --panel: linear-gradient(165deg, #3b8fe0 0%, #0055ff 100%);
  --cta-grad: linear-gradient(180deg, #eef6fc 0%, #8fc6e8 60%, #4fa0d0 100%);
  --cta-fg: #0a1b27;
  --foot-bg: #0a1b27;
  --btn-bg: #0055ff;   --btn-fg: #ffffff;
  --accent: #0055ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--who-fg);
  font-size: var(--step-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] body { color: #0a1b27; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); z-index: 100; background: var(--btn-bg); color: var(--btn-fg); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 12px 16px; left: var(--m); top: 12px; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }

/* ───────── Tipografía ───────── */
.h-xl { font-size: var(--step-xl); line-height: .92; font-weight: 600; letter-spacing: -.04em; }
.h-lg { font-size: var(--step-head); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.side { font-size: var(--step-body); line-height: 1.5; max-width: 34ch; }
.fig { font-variant-numeric: tabular-nums; }

/* ───────── Botones: planos, rectangulares ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: var(--step-small); font-weight: 500; text-decoration: none; letter-spacing: 0;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 24%, transparent); }
.btn-accent { background: #fff; color: #07202d; }
.btn-lg { min-height: 64px; padding: 0 36px; font-size: var(--step-lead); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: var(--step-small); }

/* ───────── Barra ───────── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: var(--m);
  pointer-events: none; transition: transform .35s var(--ease);
}
.bar.hide { transform: translateY(-100%); }
.bar > * { pointer-events: auto; }
.brand { color: var(--hfg-l, #fff); display: flex; align-items: center; gap: 10px; text-decoration: none; transition: color .3s; }
.brand-mark { width: 44px; height: 32px; }
.brand-name { white-space: nowrap; font-size: var(--step-lead); font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.brand-name b { font-weight: 800; }
.nav { display: flex; gap: 28px; margin-left: auto; color: var(--hfg-r, #fff); transition: color .3s; }
.nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; padding: 8px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bar-end { display: flex; align-items: center; gap: 16px; color: var(--hfg-r, #fff); transition: color .3s; }
.theme { background: none; border: 0; padding: 8px 0; font-size: var(--step-small); font-weight: 500; }
.theme:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-bar { min-height: 44px; }
.menu-btn { display: none; min-height: 44px; padding: 0 16px; background: var(--btn-bg); color: var(--btn-fg); border: 0; font-weight: 500; }

/* ───────── Hero: la tapa de la marca ───────── */
.shapes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; color: var(--shape); }
.ch > .wrap { position: relative; z-index: 1; }
.hero { position: relative; min-height: 100svh; padding: 72px var(--m) 32px; display: flex; flex-direction: column; align-items: center; background: var(--hero-grad); color: var(--hero-fg); overflow: hidden; --fg: #07202d; }
:root[data-theme="light"] .hero { --fg: #0a1b27; }
.hero .shapes { color: var(--shape-hero); }
.hero-brand { position: relative; z-index: 1; margin-block: auto; display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 36px); text-align: center; }
.hero-mark { width: min(36vw, 480px); height: auto; aspect-ratio: 635 / 460; color: var(--hero-mark); animation: rise 1s var(--ease) both; }
.hero-h { font-size: clamp(3.25rem, 9.5vw, 9rem); line-height: 1; font-weight: 300; letter-spacing: -.02em; white-space: nowrap; animation: rise 1s .12s var(--ease) both; }
.hero-h .l2 { font-weight: 800; color: var(--hero-arg); letter-spacing: -.01em; }
.hero-sub { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; animation: rise 1s .24s var(--ease) both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-live {
  position: relative; z-index: 1; width: min(920px, 100%); display: flex; gap: 14px; align-items: baseline; justify-content: center;
  color: inherit; text-decoration: none; font-size: var(--step-body); line-height: 1.3; font-weight: 500; text-align: center;
  animation: rise 1s .4s var(--ease) both;
}
.hero-live:hover .hero-live-text { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hero-live-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.live-dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: currentColor; position: relative; top: 1px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.6); opacity: .5; } }

/* ───────── Campos ───────── */
.ch { position: relative; min-height: 90svh; padding-block: clamp(96px, 12vw, 168px); background: var(--bg); color: var(--fg); }
.ch-sky { --bg: var(--sky-bg); --fg: var(--sky-fg); }
.ch-deep { --bg: var(--deep-bg); --fg: var(--deep-fg); }
.ch-night { --bg: var(--night-bg); --fg: var(--night-fg); }
.muted { opacity: .8; }

/* Mercado */
#mercado .grid { row-gap: clamp(56px, 8vw, 120px); align-items: start; }
#mercado .h-xl { grid-column: 1 / span 8; }
#mercado .side { grid-column: 9 / -1; padding-top: .6em; }
.m-main { grid-column: 1 / span 7; }
.m-label { font-size: var(--step-lead); font-weight: 500; position: relative; z-index: 2; }
.m-fig { color: var(--accent); font-size: clamp(8.75rem, 17vw, 17rem); line-height: .82; font-weight: 800; letter-spacing: -.05em; margin-top: 8px; }
.fig-unit { font-size: 3rem; letter-spacing: 0; font-weight: 500; margin-left: .25em; }
.m-delta { font-size: var(--step-lead); margin-top: 24px; font-weight: 500; }
.m-dollars { grid-column: 8 / -1; align-self: end; }
.m-list { display: grid; gap: 6px; }
.m-note { font-size: var(--step-small); margin-top: 16px; }
.m-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 96px; padding: 20px 24px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); transition: background-color .25s; }
.m-list li:nth-child(even) { background: color-mix(in srgb, var(--fg) 14%, var(--bg)); }
.m-list li:hover { background: color-mix(in srgb, var(--fg) 22%, var(--bg)); }
.m-name { font-size: var(--step-lead); font-weight: 600; }
.m-val { font-size: 3rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }

/* Noticias */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(48px, 6vw, 88px); }
.status { display: flex; align-items: center; gap: 12px; font-size: var(--step-body); font-weight: 500; }
.news { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: var(--m); align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: 88px; }
.tab {
  min-height: 56px; padding: 0 16px; text-align: left; border: 0; border-radius: 0;
  background: color-mix(in srgb, var(--fg) 12%, var(--bg)); color: var(--fg);
  font-size: var(--step-small); font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.tab span { font-size: var(--step-small); font-weight: 400; font-variant-numeric: tabular-nums; }
.tab:hover { background: color-mix(in srgb, var(--fg) 22%, var(--bg)); transform: translateX(3px); }
.tab[aria-pressed="true"] { background: var(--fg); color: var(--bg); transform: none; }
.rows { display: grid; gap: 4px; }
.row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 84px; padding: 14px 24px; background: color-mix(in srgb, var(--fg) 7%, var(--bg)); text-decoration: none; transition: background-color .25s, padding .25s var(--ease); }
.row:nth-child(even) { background: color-mix(in srgb, var(--fg) 12%, var(--bg)); }
.row:hover { background: color-mix(in srgb, var(--fg) 22%, var(--bg)); padding-left: 32px; }
.row-time { font-size: var(--step-body); font-variant-numeric: tabular-nums; font-weight: 500; }
.row-title { font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.row-src { display: block; font-size: var(--step-small); font-weight: 400; margin-top: 4px; opacity: .85; }
.row-flag { font-size: var(--step-small); font-weight: 600; text-align: right; }
#more { margin-top: 20px; }
.empty { padding: 32px 24px; font-size: var(--step-lead); background: color-mix(in srgb, var(--fg) 7%, var(--bg)); }

/* Rumores */
#rumores { min-height: 0; }
#rumores .grid { row-gap: 64px; }
.r-head { grid-column: 1 / span 5; align-self: start; display: grid; gap: 32px; }
.rumors { grid-column: 6 / -1; display: grid; gap: clamp(36px, 5vw, 64px); }
.rumor a { text-decoration: none; display: block; }
.rumor-t { font-size: 2.25rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; transition: transform .3s var(--ease); }
.rumor a:hover .rumor-t { transform: translateX(8px); }
.rumor-s { margin-top: 12px; font-size: var(--step-body); }

/* Citas */
.quote { display: grid; grid-template-columns: 5fr 7fr; min-height: 80svh; }
.quote-who { background: var(--who-bg); color: var(--who-fg); padding: 96px var(--m) 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; --fg: var(--who-fg); }
.quote-who h2 { font-size: var(--step-head); }
.who-name { font-size: var(--step-lead); font-weight: 600; }
.who-role { font-size: var(--step-small); opacity: .85; margin-top: 4px; min-height: 1.5em; }
.q-ctrl { display: flex; gap: 6px; margin-top: 32px; }
.quote-body { background: var(--quote-bg); color: var(--quote-fg); padding: 96px clamp(24px, 4vw, 64px) 48px; --fg: var(--quote-fg); }
.q-text p { font-size: 2.25rem; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; max-width: 34ch; transition: opacity .35s; }
.q-text.swap p { opacity: 0; }

/* Sectores */
.sector { position: relative; height: 100svh; min-height: 640px; background: var(--sector-bg); color: #fff; overflow: hidden; --fg: #fff; }
.js .sector { clip-path: inset(20px); transition: clip-path .8s var(--ease); }
.js .sector.in { clip-path: inset(0); }
.sector-h { position: absolute; left: 32px; top: 32px; font-size: 2.25rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; z-index: 2; }
.sector-fig { position: absolute; left: 50%; top: 112px; height: calc(100svh - 224px); aspect-ratio: 3 / 4; transform: translateX(-50%) scale(1); transition: transform .8s var(--ease); }
.js .sector:not(.in) .sector-fig { transform: translateX(-50%) scale(.92); }
.sector-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sector:hover .sector-fig img { transform: scale(1.04); }
.sector-fig { overflow: hidden; }
.sector-copy { position: absolute; left: 32px; bottom: 32px; width: min(360px, 28vw); display: grid; gap: 16px; font-size: var(--step-body); z-index: 2; }
.sector-latest { font-size: var(--step-small); }
.sector-latest a { text-decoration: none; display: block; }
.sector-latest a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sector-link { position: absolute; right: 32px; bottom: 32px; z-index: 2; min-height: 48px; padding: 0 24px; background: #fff; color: #07202d; border: 0; font-weight: 500; transition: transform .25s var(--ease); }
.sector-link:hover { transform: translateY(-2px); }
.sector-credit { position: absolute; right: 32px; top: 36px; font-size: var(--step-small); z-index: 2; max-width: 30ch; text-align: right; }
.sector-credit a { text-decoration: none; opacity: .85; }
.sector-credit a:hover { text-decoration: underline; }

/* Acerca */
.about-wrap { background: var(--ground); padding: 20px; }
.about { position: relative; background: var(--panel); color: #fff; min-height: 110svh; padding: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); overflow: hidden; align-content: start; }
.about .h-lg { grid-column: 1 / span 7; font-size: var(--step-head); }
.about-cols { grid-column: 8 / -1; grid-row: 1 / span 2; padding-top: 12px; display: grid; gap: 40px; justify-items: start; align-content: start; }
.about-cols h3 { font-size: var(--step-lead); font-weight: 600; margin-bottom: 8px; }
.about-cols p { font-size: var(--step-body); max-width: 40ch; }
.about-fig { grid-column: 1 / span 7; grid-row: 2; align-self: end; margin-top: 56px; margin-bottom: 0; position: static; }
.about-fig img { width: 100%; aspect-ratio: 635 / 460; object-fit: cover; object-position: 50% 72%; clip-path: url(#lens); }
.about-fig figcaption { position: absolute; right: 56px; bottom: 20px; font-size: var(--step-small); }
.about-fig figcaption a { text-decoration: none; opacity: .9; }

/* CTA */
.cta { background: var(--cta-grad); color: var(--cta-fg); --fg: var(--cta-fg); --bg: transparent; min-height: 80svh; display: flex; align-items: center; overflow: hidden; }
.cta-mark { position: absolute; right: var(--m); top: 50%; transform: translateY(-50%); width: min(42vw, 640px); aspect-ratio: 635 / 460; height: auto; color: color-mix(in srgb, var(--cta-fg) 12%, transparent); }
.cta .wrap { width: 100%; position: relative; z-index: 1; }
.cta-row { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Pie */
.foot { background: var(--foot-bg); color: #fff; padding-block: 72px 32px; }
.foot-mark { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 48px); height: 34svh; min-height: 220px; }
.foot-mark svg { height: 100%; aspect-ratio: 635 / 460; color: #fff; }
.foot-word { font-size: var(--step-xl); line-height: .8; font-weight: 300; letter-spacing: -.045em; white-space: nowrap; }
.foot-word b { font-weight: 800; color: var(--hero-arg); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--m); margin-top: 72px; }
.foot-cols h3 { font-size: var(--step-body); font-weight: 600; margin-bottom: 12px; }
.foot-cols a { display: block; padding: 5px 0; font-size: var(--step-small); text-decoration: none; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: 56px; max-width: 70ch; font-size: var(--step-small); }
.foot-last { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }
.foot .btn { background: #fff; color: #07202d; }

/* ───────── Entrada de las partes ───────── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in, .js.rv-all .rv { opacity: 1; transform: none; }

/* ───────── Pantallas chicas ───────── */
@media (max-width: 980px) {
  .nav { display: none; position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: var(--who-bg); color: var(--who-fg); padding: 8px var(--m) 24px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 0; font-size: var(--step-body); }
  .menu-btn { display: inline-flex; align-items: center; }
  .btn-bar { display: none; }
  .quote { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-h { font-size: 15vw; }
  .hero-mark { width: 62vw; }
  .hero-sub { font-size: var(--step-body); }
  #mercado .h-xl, #mercado .side, .m-main, .m-dollars { grid-column: 1 / -1; }
  .m-fig { font-size: 30vw; }
  .news { grid-template-columns: 1fr; }
  .tabs { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .tab { min-height: 48px; gap: 12px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .row-flag { text-align: left; }
  #rumores .grid { display: block; }
  .r-head { position: static; margin-bottom: 48px; }
  .quote-who { padding-top: 88px; min-height: 340px; }
  .quote-body { order: -1; padding: 96px var(--m) 72px; min-height: 0; }
  .quote-who h2 { position: static; }
  .sector-fig { width: auto; max-width: calc(100% - 2 * var(--m)); height: calc(100svh - 400px); min-height: 280px; top: 92px; aspect-ratio: 3 / 4; }
  .sector-copy { width: calc(100% - 64px); bottom: 96px; }
  .sector-link { left: 32px; right: auto; }
  .sector-credit { top: 36px; max-width: 18ch; }
  .about { padding: 28px 20px; display: block; min-height: 0; }
  .about-cols { margin-top: 36px; }
  .rumor-t { font-size: 1.5rem; }
  .q-text p { font-size: 1.5rem; }
  .about .h-lg { font-size: 2.5rem; }
  .about-fig { width: 92%; margin: 48px auto 0; }
  .about-fig figcaption { right: 20px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-mark { height: 22svh; min-height: 150px; flex-direction: column; align-items: flex-start; height: auto; }
  .foot-mark svg { height: 22svh; }
  .foot-word { font-size: 17vw; }
}
@media (max-width: 520px) {
  .bar { gap: 12px; }
  .brand-name { font-size: var(--step-body); }
  .theme { max-width: 96px; text-align: right; line-height: 1.15; }
  .brand-mark { width: 36px; height: 26px; }
  .sector-credit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { transform: none; }
  .js .sector { clip-path: none; }
  .js .sector:not(.in) .sector-fig { transform: translateX(-50%); }
}

/* ═════════ Sitio de varias páginas ═════════ */
.lead { font-size: var(--step-lead); line-height: 1.3; font-weight: 500; max-width: 40ch; margin-top: 24px; }
.h-sm { font-size: var(--step-lead); line-height: 1.2; font-weight: 600; margin-bottom: 12px; }
.band { min-height: 0; padding-block: clamp(64px, 8vw, 112px); }
.band .h-lg + .stats, .band .h-lg + .rows, .band .h-lg + .tiles { margin-top: 40px; }
.band .lead + .btn, .band .lead + .rows { margin-top: 32px; }
.page-head { min-height: 0; padding-top: clamp(128px, 14vw, 176px); padding-bottom: clamp(56px, 8vw, 104px); }
.back { display: inline-block; margin-bottom: 28px; font-size: var(--step-small); font-weight: 500; text-decoration: none; padding: 8px 0; }
.back:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.cry { min-height: 70svh; display: flex; align-items: center; }
.cry .wrap { width: 100%; }
.cry .lead { max-width: 34ch; }
.cry .btn { margin-top: 32px; }
.note { margin-top: 32px; }

/* Datos */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 48px; }
.stat { display: grid; gap: 10px; align-content: start; padding: 24px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); text-decoration: none; transition: background-color .25s, transform .3s var(--ease); }
.stat:hover { background: color-mix(in srgb, var(--fg) 16%, var(--bg)); transform: translateY(-3px); }
.stat-big { grid-column: span 2; }
.stat-name { font-size: var(--step-body); font-weight: 500; }
.stat-val { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.stat-big .stat-val { font-size: 4.5rem; }
.stat-unit { font-size: var(--step-small); font-weight: 500; letter-spacing: 0; margin-left: .5em; color: var(--fg); }
.stat-cmp { font-size: var(--step-small); line-height: 1.4; }
.spark { width: 100%; max-width: 220px; height: 44px; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--accent); }

/* Detalle de un dato / provincia */
.detail-fig { font-size: var(--step-xl); line-height: .9; font-weight: 800; letter-spacing: -.04em; color: var(--accent); margin-top: 16px; }
.detail-fig .stat-unit { font-size: var(--step-lead); }
.detail-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; }
.detail-side { display: grid; gap: 8px; align-content: start; }
.detail-side p { margin-bottom: 20px; }
.chart { margin-top: 24px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-area { fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.chart-line { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--accent); }
.chart-tick { fill: currentColor; font-size: 14px; font-family: inherit; }
.chart-end { fill: currentColor; font-size: 15px; font-weight: 600; font-family: inherit; }
.mini-table li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: color-mix(in srgb, var(--fg) 7%, var(--bg)); font-size: var(--step-small); }
.mini-table li:nth-child(even) { background: color-mix(in srgb, var(--fg) 13%, var(--bg)); }

/* Provincias y sectores */
.prov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 40px; }
.prov { display: grid; gap: 8px; align-content: start; padding: 24px; min-height: 220px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); text-decoration: none; transition: background-color .25s, transform .3s var(--ease); }
.prov:hover { background: color-mix(in srgb, var(--fg) 16%, var(--bg)); transform: translateY(-3px); }
.prov-name { font-size: var(--step-lead); font-weight: 600; line-height: 1.15; }
.prov-fig { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.prov-cmp, .prov-motor { font-size: var(--step-small); line-height: 1.4; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tab-chip { min-height: 44px; padding: 0 16px; flex: none; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; margin-top: 40px; }
.tile { display: grid; gap: 10px; align-content: start; text-decoration: none; overflow: hidden; }
.tile img, .tile-mark { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); transition: transform .5s var(--ease); }
.tile-mark { padding: 22%; height: auto; color: color-mix(in srgb, var(--fg) 24%, var(--bg)); }
.tile:hover img { transform: scale(1.03); }
.tile-name { font-size: var(--step-lead); font-weight: 600; }
.tile-count { font-size: var(--step-small); }
.sector-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sector-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector-photo figcaption { font-size: var(--step-small); margin-top: 10px; }

/* Notas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; background: color-mix(in srgb, var(--fg) 14%, transparent); font-size: var(--step-small); font-weight: 500; text-decoration: none; }
a.chip:hover { background: color-mix(in srgb, var(--fg) 24%, transparent); }
.article-head .btn { margin-top: 8px; }
.article-title { font-size: 2.25rem; line-height: 1.15; max-width: 60ch; margin-top: 16px; }
.also { display: grid; gap: 4px; margin-top: 32px; }
.also li { display: grid; gap: 4px; padding: 16px 24px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.also li:nth-child(even) { background: color-mix(in srgb, var(--fg) 13%, var(--bg)); }
.also-src { font-size: var(--step-small); font-weight: 600; }
.quote-single { min-height: 0; }
.quote-single .quote-who { padding-top: 56px; min-height: 0; }
.quote-single .quote-body { padding-top: 56px; }
.voices { columns: 2; column-gap: 6px; margin-top: 40px; }
.voices li { break-inside: avoid; margin-bottom: 6px; }
.voices a { display: block; padding: 24px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); text-decoration: none; transition: background-color .25s; }
.voices a:hover { background: color-mix(in srgb, var(--fg) 16%, var(--bg)); }
.voice-q { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; }
.voice-s { font-size: var(--step-small); margin-top: 12px; }
.rumors-list { display: grid; gap: 40px; max-width: 70ch; margin-top: 40px; }
.rumors-list .rumor-t { font-size: var(--step-lead); }
.about-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.about-page p { max-width: 52ch; }
.about-lens { min-height: 0; padding-bottom: 56px; }
.about-lens .about-fig { grid-column: 1 / span 6; margin-bottom: 0; }
.foot-cry { margin-top: 40px; font-size: var(--step-head); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.foot-cols p { font-size: var(--step-small); max-width: 38ch; }

@media (max-width: 980px) {
  .stats, .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-cols, .sector-head, .about-page { grid-template-columns: 1fr; }
  .voices { columns: 1; }
  .article-title { font-size: 1.5rem; }
  .stat-big .stat-val { font-size: 3rem; }
  .about-lens .about-fig { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .stats, .prov-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .tile-name { font-size: var(--step-body); }
  .stat-big { grid-column: auto; }
  .detail-fig { font-size: 4.5rem; }
}

@media (max-width: 520px) {
  .lead { font-size: var(--step-body); }
}

/* ═════════ Movimiento: sutil y liviano (solo opacity y transform) ═════════ */
.js .rv { transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.view-in { animation: view-in .3s var(--ease) both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
.rows > li { animation: row-in .45s var(--ease) both; animation-delay: calc(min(var(--n, 0), 8) * 45ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.js .chart-line, .js .spark-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .chart-area, .js .spark-dot { opacity: 0; }
.js .in .chart-line, .js.rv-all .chart-line { animation: draw 1.1s .15s var(--ease) forwards; }
.js .in .spark-line, .js.rv-all .spark-line { animation: draw .9s .2s var(--ease) forwards; }
.js .in .chart-area, .js.rv-all .chart-area { animation: show .8s .4s var(--ease) forwards; }
.js .in .spark-dot, .js.rv-all .spark-dot { animation: show .4s .9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes show { to { opacity: 1; } }
.still .rows > li, .still .chart-line, .still .spark-line, .still .chart-area, .still .spark-dot { animation: none !important; }
.still .chart-line, .still .spark-line { stroke-dashoffset: 0; }
.still .chart-area, .still .spark-dot { opacity: 1; }
.still .rv { transition: none; }
.chip, .voices a, .tab, .back { transition: background-color .25s, transform .25s var(--ease), color .25s; }
.chip:hover { transform: translateY(-1px); }
.q-text p { transition: opacity .3s var(--ease); }
@media (max-width: 980px) {
  .nav { display: flex; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .js .chart-line, .js .spark-line { stroke-dashoffset: 0; }
  .js .chart-area, .js .spark-dot { opacity: 1; }
}

/* ═════════ Invertir, resúmenes y páginas legales ═════════ */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 40px; }
.facts li { display: grid; gap: 8px; align-content: start; padding: 24px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.fact-big { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.summary { max-width: 68ch; margin-top: 32px; display: grid; gap: 16px; }
.summary p { font-size: var(--step-lead); line-height: 1.4; }
.summary .note { font-size: var(--step-small); margin-top: 8px; }
.prose { max-width: 72ch; display: grid; gap: 32px; }
.prose p { margin-top: 12px; }
.prose p:first-of-type { margin-top: 0; }
.warn { padding: 16px 20px; margin-bottom: 40px; background: #ffd24a; color: #2a2000; font-weight: 600; max-width: 72ch; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.foot-legal-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; }
.foot-legal-nav a { font-size: var(--step-small); font-weight: 500; text-decoration: none; padding: 6px 0; }
.foot-legal-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { margin-top: 24px; }
@media (max-width: 980px) { .facts { grid-template-columns: 1fr; } }

.official-h { margin-top: 56px; }
.summary.official p { font-size: var(--step-body); line-height: 1.6; }

/* ═════════ Comunidad ═════════ */
.poll { max-width: 52rem; }
.poll-q { margin-top: 0; max-width: none; }
.poll-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.poll-opt { min-height: 52px; }
.poll-rows { display: grid; gap: 10px; margin-top: 24px; }
.poll-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 3.5rem; gap: 16px; align-items: center; }
.poll-label { font-weight: 500; }
.poll-row.mine .poll-label { font-weight: 800; }
.poll-bar { display: block; height: 14px; background: color-mix(in srgb, var(--fg) 14%, transparent); overflow: hidden; }
.poll-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--s, 0)); animation: grow .8s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.poll-pct { text-align: right; font-weight: 600; }
.share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 28px; }
.share-l { font-size: var(--step-small); font-weight: 600; margin-right: 8px; }
button.chip { border: 0; color: inherit; cursor: pointer; font-family: inherit; }
.like { gap: 10px; }
.like-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.like[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.form { display: grid; gap: 12px; max-width: 40rem; margin-top: 24px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form input[type="text"], .form input[type="email"], .form textarea { font: inherit; width: 100%; padding: 14px 16px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--fg) 12%, var(--bg)); color: var(--fg); }
.form-row input[type="email"] { flex: 1 1 16rem; width: auto; }
.form textarea { resize: vertical; min-height: 96px; }
.form input::placeholder, .form textarea::placeholder { color: color-mix(in srgb, var(--fg) 70%, var(--bg)); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-small); line-height: 1.4; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.comments { display: grid; gap: 4px; margin-top: 32px; max-width: 52rem; }
.comment { padding: 16px 20px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }
.comment-h { font-size: var(--step-small); }
.comment-t { margin-top: 6px; overflow-wrap: anywhere; }
.comment-a { display: flex; gap: 16px; margin-top: 8px; }
.comment.empty { background: none; padding-left: 0; }
.replies { margin: 12px 0 0 16px; padding-left: 16px; }
.reply-slot .form { margin-top: 12px; }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: var(--step-small); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }
.link-btn:disabled { text-decoration: none; opacity: .8; cursor: default; }
.form-h { margin-top: 40px; }
@media (max-width: 700px) { .poll-row { grid-template-columns: 1fr 3.5rem; } .poll-label { grid-column: 1 / -1; } }

.tile img, .sector-photo img { height: auto; }

/* Con "reducir movimiento" activado en el sistema se mantiene solo el fundido (sin desplazamientos ni trazos). */
@media (prefers-reduced-motion: reduce) {
  .js .rv { transition: opacity .45s ease !important; transition-delay: calc(var(--i, 0) * 50ms) !important; transform: none !important; }
  .view-in { animation: view-in .3s ease both !important; }
  .rows > li { animation: view-in .4s ease both !important; animation-delay: calc(min(var(--n, 0), 8) * 35ms) !important; }
  .hero-mark, .hero-h, .hero-sub, .hero-live { animation: view-in .6s ease both !important; }
  .poll-bar i { animation: none !important; }
}

/* ═════════ Gráficos interactivos, mapa, barras y páginas ampliadas ═════════ */
:root, :root[data-theme="dark"] { --m0: #234a66; --m1: #2b6b95; --m2: #3489bd; --m3: #45a8dc; --m4: #7bd3f2; --mnone: #2d3338; }
:root[data-theme="light"] { --m0: #cfe4f5; --m1: #9ccbee; --m2: #66b0e8; --m3: #3a8fdc; --m4: #0a5fe0; --mnone: #d6dce2; }

.chart-ranges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chart-ranges .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chart-stage { position: relative; }
.chart-svg:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.chart-gridline { stroke: color-mix(in srgb, currentColor 16%, transparent); stroke-width: 1; }
.chart-cross { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .7; }
.chart-hot { fill: var(--bg); stroke: var(--accent); stroke-width: 3.5; }
.chart-marker { stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .55; }
.chart-hit { cursor: crosshair; touch-action: pan-y; }
.chart-tip { position: absolute; transform: translateX(-50%); display: grid; gap: 2px; padding: 8px 12px; background: var(--fg); color: var(--bg); font-size: var(--step-small); line-height: 1.3; pointer-events: none; white-space: nowrap; z-index: 4; animation: view-in .15s ease both; }
.chart-tip[hidden] { display: none; }
.chart-tip b { font-weight: 600; }
.chart-tip small { font-size: var(--step-small); opacity: .85; }

.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.chart-card { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 24px; background: color-mix(in srgb, var(--fg) 7%, var(--bg)); }
.chart-card-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; text-decoration: none; }
.chart-card-h:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.chart-card-h h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.2; }
.chart-card-v { font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.chart-card-c { font-size: var(--step-small); line-height: 1.4; }

.bars { display: grid; gap: 4px; margin-top: 16px; max-width: 54rem; }
.bar-row { display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) 4.5rem; gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; }
.bar-track { display: block; height: 16px; background: color-mix(in srgb, var(--fg) 12%, transparent); overflow: hidden; }
.bar-track i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--s, 0)); animation: grow .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 50ms); transition: filter .2s; }
a.bar-row:hover .bar-track i { filter: brightness(1.25); }
a.bar-row:hover .bar-label { text-decoration: underline; text-underline-offset: 4px; }
.bar-label { font-weight: 500; }
.bar-val { text-align: right; font-weight: 600; }
.rank-h { margin-top: 56px; }

.map-block { margin-top: 24px; }
.map-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: start; margin-top: 16px; }
.map-stage { position: relative; }
.map-svg { width: 100%; height: auto; max-height: 82svh; display: block; }
.prov-path { stroke: var(--bg); stroke-width: 1.5; cursor: pointer; transition: opacity .2s; animation: pop .6s var(--ease) both; animation-delay: calc(var(--n, 0) * 25ms); transform-box: fill-box; transform-origin: center; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.prov-path:hover, .prov-path:focus { opacity: .82; stroke: var(--fg); stroke-width: 3; outline: none; }
.prov-path.m0, .legend-step.m0 i { fill: var(--m0); background: var(--m0); }
.prov-path.m1, .legend-step.m1 i { fill: var(--m1); background: var(--m1); }
.prov-path.m2, .legend-step.m2 i { fill: var(--m2); background: var(--m2); }
.prov-path.m3, .legend-step.m3 i { fill: var(--m3); background: var(--m3); }
.prov-path.m4, .legend-step.m4 i { fill: var(--m4); background: var(--m4); }
.prov-path.m-none, .legend-step.m-none i { fill: var(--mnone); background: var(--mnone); }
.map-legend { display: grid; gap: 16px; align-content: start; }
.legend-steps { display: grid; gap: 8px; }
.legend-step { display: flex; gap: 12px; align-items: center; }
.legend-step i { display: inline-block; width: 36px; height: 16px; }
.legend-step small { font-size: var(--step-small); }

.search { font: inherit; width: 100%; max-width: 34rem; padding: 14px 16px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--fg) 12%, var(--bg)); color: var(--fg); }
.search::placeholder { color: color-mix(in srgb, var(--fg) 70%, var(--bg)); }
.econ-tools { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin: 24px 0; }
.econ-group { margin-top: 56px; }
.econ-group .h-lg { font-size: var(--step-head); }
.data-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav-data { max-width: 100%; text-align: left; padding-block: 10px; height: auto; }

.invest { scroll-margin-top: 72px; }
.invest-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.invest-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.invest-top.flip .invest-text { order: 2; }
.invest-photos { display: grid; gap: 16px; }
.invest-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.invest-photo figcaption, .gallery-item figcaption { font-size: var(--step-small); margin-top: 6px; }
.invest .facts { grid-template-columns: 1fr; margin-top: 32px; }
.invest .stats, .invest .chart-grid { margin-top: 48px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.gallery-item { overflow: hidden; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.rigi-h { margin-top: 64px; }

@media (max-width: 980px) {
  .chart-grid, .map-grid, .invest-top { grid-template-columns: 1fr; }
  .invest-top.flip .invest-text { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-svg { max-height: 70svh; max-width: 320px; margin-inline: auto; }
}
@media (max-width: 520px) {
  .bar-row { grid-template-columns: minmax(6rem, 9rem) minmax(0, 1fr) 3.5rem; gap: 8px; }
  .chart-card { padding: 16px; }
  .chart-card-v { font-size: 2.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .prov-path, .bar-track i { animation: view-in .4s ease both !important; transform: none; }
  .bar-track i { transform: scaleX(var(--s, 0)) !important; animation: none !important; }
}

.poll-rows li { list-style: none; }
.poll-vote { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) 3.5rem; gap: 16px; align-items: center; padding: 10px 12px; cursor: pointer; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.poll-vote:hover { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.poll-vote:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.poll-vote:disabled { opacity: .6; cursor: default; }
.poll-prev-h { margin-top: 40px; }
.poll-prev { margin-top: 12px; opacity: .85; }
@media (max-width: 700px) { .poll-vote { grid-template-columns: 1fr 3.5rem; } }

/* mapa grande con zoom y arrastre */
.map-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 32px; }
.map-frame { position: relative; height: min(86svh, 900px); min-height: 420px; background: color-mix(in srgb, var(--fg) 6%, var(--bg)); overflow: hidden; }
.map-frame .map-svg { width: 100%; height: 100%; max-height: none; max-width: none; touch-action: none; cursor: grab; user-select: none; }
.map-frame .map-svg.zoomed { cursor: grabbing; }
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.map-btn { font: inherit; font-weight: 700; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 0; background: var(--fg); color: var(--bg); cursor: pointer; }
.map-btn:hover { filter: brightness(1.15); }
.map-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.map-hint { margin-left: 8px; }
@media (max-width: 980px) { .map-grid { grid-template-columns: 1fr; } .map-frame { height: 76svh; } .map-frame .map-svg { max-width: none; margin: 0; } }

/* ═════════ Mapa interactivo (relieve, textura y profundidad) ═════════ */
:root, :root[data-theme="dark"] { --ocean-a: #1a3a55; --ocean-b: #0a1622; --k-agro: #5fb356; --k-energia: #ee9a3c; --k-mineria: #a085e6; --k-industria: #4aaadc; --k-servicios: #e86f9f; --k-r-centro: #3f93d6; --k-r-cuyo: #a862cc; --k-r-noroeste: #e3a83c; --k-r-noreste: #4fb36d; --k-r-patagonia: #38b8b2; }
:root[data-theme="light"] { --ocean-a: #d7ebf8; --ocean-b: #9dc6e6; --k-agro: #3f9a3a; --k-energia: #e07d12; --k-mineria: #7c5cd0; --k-industria: #1f86c4; --k-servicios: #d23f7a; --k-r-centro: #2a7cc4; --k-r-cuyo: #8b46b4; --k-r-noroeste: #cc8c14; --k-r-noreste: #2f9a50; --k-r-patagonia: #1b9d97; }
.m0 { --c: var(--m0); } .m1 { --c: var(--m1); } .m2 { --c: var(--m2); } .m3 { --c: var(--m3); } .m4 { --c: var(--m4); } .m-none { --c: var(--mnone); }
.k-agro { --c: var(--k-agro); } .k-energia { --c: var(--k-energia); } .k-mineria { --c: var(--k-mineria); } .k-industria { --c: var(--k-industria); } .k-servicios { --c: var(--k-servicios); }
.k-r-centro { --c: var(--k-r-centro); } .k-r-cuyo { --c: var(--k-r-cuyo); } .k-r-noroeste { --c: var(--k-r-noroeste); } .k-r-noreste { --c: var(--k-r-noreste); } .k-r-patagonia { --c: var(--k-r-patagonia); }

.map-bar { display: grid; gap: 10px; margin: 20px 0 8px; }
.map-bar-g { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.map-bar-l { font-weight: 700; min-width: 4.2rem; }
.map-bar .tabs-row { margin: 0; }
.map-select { font: inherit; padding: 10px 12px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--fg) 12%, var(--bg)); color: var(--fg); max-width: 100%; }
.map-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; }
.map-frame { position: relative; width: 100%; height: min(86svh, 860px); min-height: 460px; overflow: hidden; background: var(--ocean-b); cursor: grab; box-shadow: inset 0 0 60px rgba(0,0,0,.35); }
.map-frame.grabbing { cursor: grabbing; }
.map-frame .map-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; max-width: none; margin: 0; touch-action: none; user-select: none; display: block; }
.map-svg:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }
.map-grat { fill: none; stroke: color-mix(in srgb, var(--fg) 10%, transparent); stroke-width: 1; }
.prov-path { fill: var(--c, var(--mnone)); stroke: rgba(255,255,255,.4); stroke-width: 1; cursor: pointer; transition: fill .5s ease, opacity .25s ease; }
.prov-path:hover, .prov-path:focus { opacity: 1; stroke: rgba(255,255,255,.9); stroke-width: 1.5; outline: none; }
.prov-path.muted { fill: color-mix(in srgb, var(--c, var(--mnone)) 28%, var(--mnone)); }
.map-svg.focus .prov-path:not(.on) { opacity: .66; }
.prov-path.sel { stroke: #fff; stroke-width: 2.6; }
.prov-hot { pointer-events: none; fill: var(--c, var(--mnone)); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: translate(-2px, -8px) scale(1.035); filter: drop-shadow(0 10px 7px rgba(0,0,0,.55)) brightness(1.14); animation: lift .28s var(--ease) both; }
@keyframes lift { from { transform: none; filter: none; } }
.mk { cursor: pointer; }
.mk-fill { fill: var(--c); stroke: rgba(255,255,255,.8); stroke-width: 1.4; }
.mk-bubble .mk-fill { fill-opacity: .9; }
.mk-side { fill: rgba(0,0,0,.3); }
.mk-top { fill: var(--c); stroke: rgba(255,255,255,.7); stroke-width: 1; filter: brightness(1.3); }
.mk-shadow { fill: rgba(0,0,0,.38); }
.mk-text { font: 700 13px system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 2px; pointer-events: none; }
.mk-in { animation: mk-pop .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 28ms); }
.mk-col .mk-in { animation-name: mk-grow; }
@keyframes mk-pop { from { transform: scale(0); opacity: 0; } }
@keyframes mk-grow { from { transform: scaleY(0); } }
.mk-bubble.on .mk-fill, .mk-col.on .mk-fill { stroke: #fff; stroke-width: 3; }
.mk-ik { transform: scale(var(--ik, 1)); transition: transform .25s var(--ease); }
.mk-badge.on .mk-ik { transform: scale(calc(var(--ik, 1) * 1.4)); }
.mk-badge-bg { fill: rgba(8,14,22,.9); stroke: var(--c); stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.mk-glyph * { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mk-leader { stroke: rgba(255,255,255,.75); stroke-width: 1.4; }
.map-lab-t { font: 700 12.5px system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(5,10,16,.85); stroke-width: 3.2px; stroke-linejoin: round; transform: scale(var(--ik, 1)); letter-spacing: .01em; }
.map-lab.big .map-lab-t { font-size: 17px; letter-spacing: .12em; }
.map-lab { transition: opacity .3s; }
.map-lab.sm { opacity: 0; }
.map-svg[data-z="2"] .map-lab.sm, .map-svg[data-z="3"] .map-lab.sm { opacity: 1; }
.map-svg[data-form="columnas"] .map-lab, .map-svg[data-form="burbujas"] .map-lab { opacity: .85; }
.map-zoom { position: absolute; top: 12px; right: 12px; display: grid; gap: 6px; }
.map-btn { font: inherit; font-weight: 700; font-size: 1.25rem; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: var(--fg); color: var(--bg); cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.map-btn:hover { filter: brightness(1.2); }
.map-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.map-hint { position: absolute; left: 12px; bottom: 10px; margin: 0; max-width: 70%; font-size: var(--step-small); padding: 4px 8px; background: rgba(5,10,16,.6); color: #fff; pointer-events: none; }
.map-tip { text-align: left; }
.map-side { display: grid; gap: 28px; align-content: start; }
.map-card { padding: 20px; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); min-height: 8rem; }
.map-card-h { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.map-badge { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: rgba(8,14,22,.92); color: #fff; border: 2px solid var(--c); }
.map-stats { display: grid; gap: 6px; margin: 12px 0 16px; }
.map-stat { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.legend-step i { background: var(--c, var(--mnone)); }
.legend-btn { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; padding: 4px 6px; cursor: pointer; }
.legend-btn:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.legend-btn:focus-visible { outline: 2px solid currentColor; }
.map-icons { margin-top: 4px; }
.map-icons summary { cursor: pointer; font-weight: 600; }
.map-icons ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; list-style: none; padding: 12px 0 0; margin: 0; }
.map-icons li { display: flex; gap: 8px; align-items: center; font-size: var(--step-small); }
button.bar-row { font: inherit; color: inherit; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
button.bar-row:hover .bar-track i { filter: brightness(1.3); }
button.bar-row:hover .bar-label { text-decoration: underline; text-underline-offset: 4px; }
.map-rank .bars { margin-top: 8px; }
@media (max-width: 980px) { .map-grid { grid-template-columns: 1fr; } .map-frame { height: 72svh; min-height: 380px; } .map-hint { max-width: 60%; } }
@media (prefers-reduced-motion: reduce) { .mk-in, .prov-hot { animation: none !important; } }
.map-rank .bar-row { grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr) 7.5rem; }
.map-rank .bar-val { white-space: nowrap; }

/* ajuste: relieve y textura más suaves, cuadrícula funcional */
.prov-hot { transform: translate(-1px, -4px) scale(1.02); filter: drop-shadow(0 6px 5px rgba(0,0,0,.4)) brightness(1.1); }
.map-svg[data-form="cuadricula"] .map-land, .map-svg[data-form="cuadricula"] .map-grat { display: none; }
.map-desc { margin: 4px 0 0; max-width: 62rem; }
.mk-tile { cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); outline: none; }
.mk-tile .mk-in { transform-box: fill-box; transform-origin: center; }
.tile-bg { fill: var(--c); stroke: rgba(255,255,255,.3); stroke-width: 1.2; transition: filter .2s; }
.tile-abbr { font: 800 22px system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.4); stroke-width: 2.4px; stroke-linejoin: round; }
.tile-val { font: 700 16px system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.4); stroke-width: 2.2px; stroke-linejoin: round; }
.mk-tile.on .tile-bg, .mk-tile:focus-visible .tile-bg { stroke: #fff; stroke-width: 3; filter: brightness(1.18); }
.mk-tile.sel .tile-bg { stroke: #fff; stroke-width: 3; }
.map-svg.focus .mk-tile:not(.on) { opacity: .6; }

/* compartir un gráfico e insertarlo */
.chart-tools { margin-top: 28px; }
.chart-tools-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.embed-panel { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.embed-code { width: 100%; max-width: 40rem; font: 13px/1.4 ui-monospace, Consolas, monospace; padding: 10px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--fg) 12%, var(--bg)); color: var(--fg); resize: vertical; }
html.embed .bar, html.embed .foot, html.embed .skip { display: none !important; }
html.embed body { background: var(--bg); }
html.embed main { min-height: 0; padding: 0; }
.embed-box { padding: 20px; max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.embed-t { font-size: var(--step-lead); font-weight: 700; margin: 0; }
.embed-v { font-size: 3rem; margin: 0; }
.embed-f { font-size: var(--step-small); margin: 8px 0 0; }
.embed-f a { text-decoration: underline; text-underline-offset: 3px; }

/* ═════════ Desplegables, tarjetas y páginas ampliadas ═════════ */
.disc-stack { display: grid; gap: 10px; margin-top: 28px; }
.disc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.disc { background: color-mix(in srgb, var(--fg) 7%, var(--bg)); border-left: 4px solid transparent; transition: border-color .3s, background .3s; }
.disc.open { border-left-color: var(--accent); background: color-mix(in srgb, var(--fg) 10%, var(--bg)); }
.disc-h { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; }
.disc-h:hover { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.disc-h:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
.disc-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.disc-t b { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
.disc-t small { font-size: var(--step-small); opacity: .82; line-height: 1.4; }
.disc-badge { flex: none; font-weight: 800; font-size: 1.15rem; padding: 6px 12px; background: var(--accent); color: var(--bg); white-space: nowrap; }
.disc-chev { flex: none; width: 22px; height: 22px; position: relative; }
.disc-chev::before, .disc-chev::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.disc-chev::after { transform: rotate(90deg); }
.disc.open .disc-chev::after { transform: rotate(0); }
.disc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.disc.open .disc-body { grid-template-rows: 1fr; }
.disc-in { min-height: 0; overflow: hidden; padding: 0 20px; }
.disc.open .disc-in { padding: 4px 20px 22px; }
.disc-in > * + * { margin-top: 16px; }
.disc-in .chart-grid { margin-top: 8px; }
.invest-more { margin-top: 40px; }

.chart-wide { margin-top: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 20px; }
.hero-fig { max-width: 56rem; }
.stats-3 { margin-top: 28px; }
.card-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.share-preview { margin-top: 14px; }
.share-preview img { width: min(100%, 360px); height: auto; display: block; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.chart-tools .h-sm { margin-bottom: 4px; }

.dolar-grid { margin-top: 24px; }
.dolar-card .disc-badge { font-size: 1.4rem; }
.dolar-vars { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 12px; margin: 0; }
.dolar-vars div { padding: 10px 12px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.dolar-vars dt { font-size: var(--step-small); opacity: .8; }
.dolar-vars dd { margin: 2px 0 0; font-weight: 700; font-size: 1.15rem; }
.glossary { display: grid; gap: 14px; margin: 0; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 2px 0 0; }
.moneda-box { margin-top: 24px; display: grid; gap: 24px; }
.facts-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 10px; }
.src-line a { text-decoration: underline; text-underline-offset: 3px; }
.acuerdo .disc-badge { font-size: .95rem; }

.timeline-wrap { overflow-x: auto; margin-top: 24px; padding-bottom: 8px; }
.timeline { display: flex; gap: 0; min-width: min-content; position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: color-mix(in srgb, var(--fg) 25%, transparent); }
.tl-node { all: unset; box-sizing: border-box; position: relative; flex: 1 0 9rem; cursor: pointer; padding-top: 44px; text-align: center; }
.tl-node::before { content: ''; position: absolute; left: 50%; top: 14px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fg); transition: transform .25s var(--ease), background .25s; }
.tl-node[aria-selected="true"]::before { background: var(--accent); border-color: var(--accent); transform: scale(1.5); }
.tl-node:hover::before { transform: scale(1.3); }
.tl-node:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tl-year { display: block; font-weight: 800; font-size: 1.4rem; }
.tl-name { display: block; font-size: var(--step-small); opacity: .85; }
.nobel-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 28px; animation: view-in .4s ease both; }
.nobel-photo { margin: 0; }
.nobel-photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; display: block; cursor: zoom-in; }
.nobel-mark { display: grid; place-items: center; aspect-ratio: 4 / 3; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); font-size: 5rem; font-weight: 800; color: var(--accent); }
figcaption { font-size: var(--step-small); margin-top: 6px; }
.zoom-img img { cursor: zoom-in; max-width: 100%; height: auto; display: block; }
.gallery-item img, .invest-photo img, .sector-photo img { cursor: zoom-in; }

.flip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 16px; margin-top: 28px; }
.flip { all: unset; box-sizing: border-box; display: block; cursor: pointer; perspective: 900px; min-height: 13rem; }
.flip:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; min-height: 13rem; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.flip.flipped .flip-in { transform: rotateY(180deg); }
.flip-f, .flip-b { position: absolute; inset: 0; display: grid; align-content: center; gap: 8px; padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-f { background: color-mix(in srgb, var(--fg) 9%, var(--bg)); border-top: 4px solid var(--accent); }
.flip-f b { font-size: 1.6rem; font-weight: 700; }
.flip-f small, .flip-f em { font-size: var(--step-small); opacity: .8; font-style: normal; }
.flip-b { background: var(--accent); color: var(--bg); transform: rotateY(180deg); line-height: 1.4; font-weight: 500; }

.teases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 16px; }
.tease { display: grid; gap: 8px; align-content: start; padding: 24px; text-decoration: none; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); border-left: 4px solid var(--accent); transition: transform .3s var(--ease), background .3s; }
.tease:hover { transform: translateY(-4px); background: color-mix(in srgb, var(--fg) 13%, var(--bg)); }
.tease-big { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--accent); }
.tease-t { font-size: var(--step-lead); font-weight: 600; }
.tease-x { font-size: var(--step-small); opacity: .85; }

.lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 24px; background: rgba(5,10,16,.92); cursor: zoom-out; animation: view-in .25s ease both; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-width: 100%; max-height: 82svh; display: block; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; }
.lightbox-x { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; border: 0; background: #fff; color: #000; cursor: pointer; }

@media (max-width: 860px) { .nobel-panel { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .disc-body, .flip-in, .tease { transition: none; } }

/* ═════════ Secciones ampliadas ═════════ */
.prov-thumb { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; margin-bottom: 14px; transition: transform .6s var(--ease); }
a.prov { overflow: hidden; }
a.prov:hover .prov-thumb { transform: scale(1.04); }
.tiles-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-top: 20px; }
.gallery-auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); margin-top: 32px; }
.gallery-auto .gallery-item img { aspect-ratio: 3 / 2; }
.cmp-box { margin-top: 20px; display: grid; gap: 20px; }
.cmp-table { width: 100%; max-width: 44rem; border-collapse: collapse; }
.cmp-table th, .cmp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
.cmp-table thead th { font-weight: 800; }
.cmp-table tbody th { font-weight: 500; opacity: .85; }
.nobel-photo img { object-fit: contain; background: color-mix(in srgb, var(--fg) 8%, var(--bg)); }

.news-li { position: relative; }
.news-li .row { padding-right: 64px; }
.row-more { position: absolute; right: 8px; top: 12px; width: 44px; height: 44px; font: inherit; font-size: 1.6rem; line-height: 1; border: 0; border-radius: 0; background: color-mix(in srgb, var(--fg) 12%, transparent); color: inherit; cursor: pointer; transition: background .2s; }
.row-more:hover { background: var(--accent); color: var(--bg); }
.row-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.row-detail { display: none; padding: 4px 64px 20px 20px; }
.news-li.open .row-detail { display: grid; gap: 12px; animation: view-in .3s ease both; }
.row-lead { margin: 0; max-width: 60rem; line-height: 1.5; }

/* ═════════ Noticias más a mano ═════════ */
.hero-cta { animation: rise 1s .36s var(--ease) both; }
.nav .nav-news { font-weight: 800; }
