
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:500;font-display:swap;src:url(/fuentes/bricolage-grotesque-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:600;font-display:swap;src:url(/fuentes/bricolage-grotesque-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700;font-display:swap;src:url(/fuentes/bricolage-grotesque-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:800;font-display:swap;src:url(/fuentes/bricolage-grotesque-latin-800-normal.woff2) format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:400;font-display:swap;src:url(/fuentes/atkinson-hyperlegible-next-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:normal;font-weight:700;font-display:swap;src:url(/fuentes/atkinson-hyperlegible-next-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Atkinson Hyperlegible Next';font-style:italic;font-weight:400;font-display:swap;src:url(/fuentes/atkinson-hyperlegible-next-latin-400-italic.woff2) format('woff2');}
html{-webkit-text-size-adjust:100%}body{margin:0}img{max-width:100%}[hidden]{display:none!important}

[hidden] { display: none !important; }
/* Layout: una columna de lectura (~760px). Selector de valores arriba; cada valor es una ficha con resumen de un vistazo, barra fija de apartados y Empresa, Resultados, Cuentas, Noticias y Fechas. Glosario común al final. */
:root {
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --ink: #152132;
  --muted: #586577;
  --line: #DAE0E8;
  --accent: #1F4FD1;
  --accent-soft: #E7EDFB;
  --good: #17784A;
  --good-soft: #E2F2E9;
  --warn: #9A6200;
  --warn-soft: #FAEFD8;
  --bad: #B1352C;
  --bad-soft: #F8E4E1;
  --bar-muted: #B7C1CF;
  --off: #D3D9E2;
  --cat3: #0E8582;
  --cat4: #8A5CC7;

  --f-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1520; --surface: #162131; --ink: #E7ECF3; --muted: #9AA7B8; --line: #26354A;
    --accent: #86A6FF; --accent-soft: #1C2B4A;
    --good: #5FCB91; --good-soft: #143022; --warn: #E8B551; --warn-soft: #33270F;
    --bad: #F08A7F; --bad-soft: #3A1D1A; --bar-muted: #3C4C63; --off: #2A3850;
    --cat3: #45C4BE; --cat4: #B793EE;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1520; --surface: #162131; --ink: #E7ECF3; --muted: #9AA7B8; --line: #26354A;
  --accent: #86A6FF; --accent-soft: #1C2B4A;
  --good: #5FCB91; --good-soft: #143022; --warn: #E8B551; --warn-soft: #33270F;
  --bad: #F08A7F; --bad-soft: #3A1D1A; --bar-muted: #3C4C63; --off: #2A3850;
  --cat3: #45C4BE; --cat4: #B793EE;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--f-display); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Cabecera */
.masthead { border-bottom: 1px solid var(--line); background: var(--surface); }
.masthead .wrap { padding-block: 18px 16px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.tagline { color: var(--muted); font-size: 0.95rem; }

.brand { text-decoration: none; color: var(--ink); }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.topnav { display: flex; gap: 4px; margin-inline: -10px; }
.topnav a { text-decoration: none; color: var(--muted); font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; padding: 4px 10px; border-radius: 8px; }
.topnav a:hover { color: var(--ink); background: var(--bg); }
.topnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Portada */
.home .wrap { display: flex; flex-direction: column; gap: 44px; padding-block: 32px 48px; }
.hero { display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: clamp(2rem, 6.4vw, 2.9rem); font-weight: 700; letter-spacing: -0.02em; max-width: 18ch; }
.hero .lead { font-size: 1.1rem; max-width: 56ch; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.9rem; color: var(--muted); padding-top: 4px; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.dot.bad { background: var(--bad); }
.home-h { font-size: 1.25rem; font-weight: 700; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }

.home-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; }
.feed, .cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed li, .cal li { border-bottom: 1px solid var(--line); }
.feed a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 12px; padding-block: 12px; text-decoration: none; color: var(--ink); }
.feed a:hover .fname { color: var(--accent); }
.feed a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.feed .fdate { font-family: var(--f-data); font-size: 0.85rem; color: var(--muted); grid-row: span 2; padding-top: 2px; }
.feed .fname { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.feed .fwhat { color: var(--muted); font-size: 0.93rem; }
.cal li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; align-items: baseline; }
.cal .cname { font-weight: 700; }
.cal .cdate { font-family: var(--f-data); font-size: 0.88rem; text-align: right; }
.cal .cdate small { display: block; color: var(--muted); font-size: 0.75rem; }

.catalog { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(16px + env(safe-area-inset-top, 0px)); }
.filters { display: flex; flex-direction: column; gap: 10px; }
.frow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.flabel { font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem;
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: inline-flex; gap: 6px; align-items: baseline;
}
.fchip small { font-family: var(--f-data); font-weight: 400; font-size: 0.75rem; color: var(--muted); }
.fchip:hover { border-color: var(--accent); }
.fchip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fchip[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fchip[aria-current="true"] small { color: var(--bg); opacity: .75; }
.fchip.zero { color: var(--muted); }
.showing { color: var(--muted); font-size: 0.92rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.card {
  text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 14px; align-items: start;
}
.card:hover { border-color: var(--accent); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono {
  grid-row: span 3; width: 64px; height: 64px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-data); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em;
  color: var(--surface);
}
.card .cname2 { font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.15; }
.card .cmeta { color: var(--muted); font-size: 0.85rem; font-family: var(--f-data); }
.card .cstate { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.95rem; padding-top: 2px; }
.card .cline { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; }
.card .ctags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.78rem; font-family: var(--f-display); font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; padding: 20px; color: var(--muted); text-align: center; }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .home-cols { grid-template-columns: 1fr; gap: 36px; }
}

/* Ficha: identidad */
.id { display: flex; flex-direction: column; gap: 10px; padding-block: 28px 20px; }
.id h1 { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 0.95rem; }
.meta .num { color: var(--ink); }
.what { font-size: 1.15rem; max-width: 62ch; }

/* De un vistazo */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; padding-bottom: 8px; }
.glance a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.glance a:hover { border-color: var(--accent); }
.glance a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.glance .state { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.good { background: var(--good); }
.dot.warn { background: var(--warn); }
.dot.info { background: var(--accent); }
.glance small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

/* Barra de apartados */
.tabs {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: var(--bg); border-bottom: 1px solid var(--line);
  margin-top: 18px;
}
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.tabs .wrap::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; color: var(--muted);
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem;
  padding: 7px 12px; border-radius: 8px;
}
.tabs a:hover { color: var(--ink); background: var(--surface); }
.tabs a.active { color: var(--accent); background: var(--accent-soft); }
.tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

main { display: flex; flex-direction: column; gap: 56px; padding-block: 32px 56px; }
.part { display: flex; flex-direction: column; gap: 36px; scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.part-head { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--ink); padding-block: 14px 0; }
.part-head h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; }
section { display: flex; flex-direction: column; gap: 14px; }
h3.sec { font-size: 1.3rem; font-weight: 700; }
.lead { color: var(--muted); }

/* Datos básicos */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.facts .v { font-family: var(--f-data); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.facts .k { color: var(--muted); font-size: 0.85rem; }

/* Negocios */
.biz { display: flex; flex-direction: column; gap: 18px; }
.biz-group { display: flex; flex-direction: column; gap: 10px; }
.biz-group h4 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.biz-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.biz-item .name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.biz-item .amt { font-family: var(--f-data); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.biz-item p { grid-column: 1 / -1; color: var(--muted); font-size: 0.95rem; }
.up { color: var(--good); }
.down { color: var(--bad); }

.timeline { display: flex; flex-direction: column; }
.tl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.tl:first-child { border-top: 1px solid var(--line); }
.tl .y { font-family: var(--f-data); color: var(--accent); font-weight: 500; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.box h4 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; }
.box ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }

/* Semáforo */
.verdict {
  background: var(--good-soft); border-radius: 14px; padding: 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
}
.verdict.warn { background: var(--warn-soft); }
.lights { display: flex; flex-direction: column; gap: 7px; padding: 9px 7px; background: var(--ink); border-radius: 999px; }
.lights i { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--off); opacity: .35; }
.lights i.on.good { background: var(--good); opacity: 1; box-shadow: 0 0 10px var(--good); }
.lights i.on.warn { background: var(--warn); opacity: 1; box-shadow: 0 0 10px var(--warn); }
.verdict-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.verdict .label { color: var(--good); }
.verdict.warn .label { color: var(--warn); }
.verdict h3 { font-size: clamp(1.35rem, 4.6vw, 1.7rem); }
.verdict p { max-width: 58ch; }

/* Barras */
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vs-card h4 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; font-size: 0.9rem; }
.bar-row .who { color: var(--muted); }
.track { position: relative; height: 26px; }
.fill { height: 100%; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-family: var(--f-data); font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fill.exp { background: var(--bar-muted); color: var(--ink); }
.fill.real { background: var(--accent); color: var(--surface); }
.range { position: absolute; top: 0; height: 100%; border-radius: 4px; background: var(--accent-soft); border: 1.5px dashed var(--accent); }
.range-label { position: absolute; top: 0; height: 100%; display: flex; align-items: center; font-family: var(--f-data); font-size: 0.78rem; color: var(--ink); white-space: nowrap; }
.vs-card .take { font-size: 0.95rem; }
.badge { display: inline-block; font-family: var(--f-display); font-weight: 600; font-size: 0.8rem; padding: 2px 9px; border-radius: 999px; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--accent-soft); color: var(--accent); }

/* Cifras clave */
.figures { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.fig { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.fig h4 { margin: 0; font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; }
.fig .val { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fig .big { font-family: var(--f-data); font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig .explain { grid-column: 1 / -1; color: var(--muted); font-size: 0.97rem; max-width: 62ch; }

.versus-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gap-note { font-size: 0.95rem; color: var(--muted); }
.gap-note .num { color: var(--ink); }

/* Reparto */
.stack { display: flex; height: 34px; border-radius: 6px; overflow: hidden; gap: 2px; }
.stack div { height: 100%; }
.c1 { background: var(--accent); }
.c2 { background: var(--good); }
.c3 { background: var(--cat3); }
.c4 { background: var(--cat4); }
.cm { background: var(--bar-muted); }
.segments { display: flex; flex-direction: column; gap: 12px; }
.seg { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.seg .sw { width: 14px; height: 14px; border-radius: 3px; align-self: center; }
.seg .name { font-weight: 700; }
.seg .desc { grid-column: 2 / -1; color: var(--muted); font-size: 0.95rem; }
.seg .amt { font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sw-inline { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.callout .big { font-family: var(--f-data); font-size: 1.8rem; font-weight: 500; color: var(--accent); line-height: 1.1; }

/* Bueno / preocupa */
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.col { border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.col.pro { background: var(--good-soft); }
.col.con { background: var(--warn-soft); }
.col h4 { margin: 0; font-family: var(--f-display); font-size: 1.1rem; }
.col.pro h4 { color: var(--good); }
.col.con h4 { color: var(--warn); }
.col ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }

/* Balance: la "casa" */
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.sheet-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.blocks { display: flex; flex-direction: column; gap: 2px; border-radius: 8px; overflow: hidden; height: 340px; }
.blk { display: flex; flex-direction: column; justify-content: center; padding: 4px 10px; min-height: 0; overflow: hidden; }
.blk b { font-family: var(--f-data); font-weight: 500; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.blk span { font-size: 0.8rem; line-height: 1.25; }
.blk.a1 { background: var(--accent); color: var(--surface); }
.blk.a2 { background: var(--accent-soft); color: var(--ink); }
.blk.a3 { background: var(--bar-muted); color: var(--ink); }
.blk.a4 { background: var(--off); color: var(--ink); }
.blk.l1 { background: var(--bad-soft); color: var(--ink); }
.blk.l2 { background: var(--warn-soft); color: var(--ink); }
.blk.e1 { background: var(--good-soft); color: var(--ink); }
.sheet-note { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* Noticias */
.news { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.item:first-child { border-top: 1px solid var(--line); }
.item .d { font-family: var(--f-data); font-size: 0.88rem; color: var(--muted); padding-top: 2px; }
.item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.item h4 { margin: 0; font-family: var(--f-display); font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.item p { color: var(--muted); font-size: 0.97rem; }
.item p.why { font-size: 0.93rem; color: var(--ink); }
.why b { font-family: var(--f-display); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
.item a.src { font-size: 0.85rem; }

/* Fechas */
.dates { display: flex; flex-direction: column; }
.date { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.date:first-child { border-top: 1px solid var(--line); }
.date .d { font-family: var(--f-data); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.date .d small { display: block; color: var(--muted); font-size: 0.78rem; }
.date.today .d { color: var(--accent); font-weight: 500; }

.sources { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.sources ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }

/* Glosario */
.glossary-wrap { padding-block: 0 56px; }
.glossary { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding-block: 13px; font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--f-data); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 14px; color: var(--muted); max-width: 62ch; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 24px 40px; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--muted); }
.disclaimer { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); }

@media (max-width: 480px) {
  .verdict { padding: 16px; gap: 14px; }
  .bar-row { grid-template-columns: 64px 1fr; }
  .date { grid-template-columns: 78px minmax(0, 1fr); }
  .item { grid-template-columns: 1fr; }
  .blocks { height: 380px; }
  .blk { padding: 4px 8px; }
}

.verdict.info { background: var(--accent-soft); }
.verdict.info .label { color: var(--accent); }
.lights i.on.info { background: var(--accent); opacity: 1; box-shadow: 0 0 10px var(--accent); }
.dot.info { background: var(--accent); }
.next-note { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 0.92rem; }
.blk { min-height: 30px; }
.mono.long { font-size: 0.78rem; }

.dot.off { background: var(--bar-muted); }
.div-hero { background: var(--good-soft); border-radius: 14px; padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: center; }
.div-hero.none { background: var(--surface); border: 1px solid var(--line); }
.div-big { display: flex; flex-direction: column; gap: 4px; }
.div-num { font-family: var(--f-data); font-size: 2.6rem; font-weight: 500; line-height: 1; color: var(--good); }
.div-hero.none .div-num { color: var(--muted); }
.div-sub { color: var(--muted); font-size: 0.9rem; }
.div-1000 { display: flex; flex-direction: column; gap: 6px; }
.div-1000 p { font-size: 1.05rem; }
.div-1000 strong { font-family: var(--f-data); font-weight: 500; }
.div-next { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 18px; gap: 8px; }
.div-next-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.div-date { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; }
.div-amt { font-family: var(--f-data); font-size: 1.2rem; }
.div-next p { color: var(--muted); font-size: 0.95rem; }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th { text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-family: var(--f-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.div-src { color: var(--muted); font-size: 0.88rem; }
.box p { color: var(--muted); font-size: 0.97rem; }
/* Ranking de la portada */
.divrank { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(16px + env(safe-area-inset-top, 0px)); }
.dr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dr-list li { border-bottom: 1px solid var(--line); }
.dr-list a { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding-block: 10px; text-decoration: none; color: var(--ink); }
.dr-list a:hover .dr-name { color: var(--accent); }
.dr-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.dr-name { font-weight: 700; }
.dr-track { height: 14px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.dr-fill { height: 100%; background: var(--good); border-radius: 4px; }
.dr-val { font-family: var(--f-data); font-size: 0.95rem; text-align: right; min-width: 3.6em; }
.dr-next { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; }
.dr-note { color: var(--muted); font-size: 0.9rem; }

.div-calc .calc-box { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 14px; }
.calc-mode { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 4px; justify-self: start; flex-wrap: wrap; }
.calc-mode button { font: inherit; font-weight: 600; font-size: 0.92rem; border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: var(--muted); cursor: pointer; min-height: 40px; }
.calc-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.calc-mode button:focus-visible, .calc-in input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-in { display: grid; gap: 6px; }
.calc-lbl { font-size: 0.9rem; color: var(--muted); }
.calc-in input { font-family: var(--f-data); font-size: 1.4rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; max-width: 260px; box-sizing: border-box; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
.calc-out > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.calc-out .k { font-size: 0.82rem; color: var(--muted); }
.calc-out .v { font-family: var(--f-data); font-size: 1.15rem; }
.calc-out > div:nth-child(2) { background: var(--good-soft); }
.calc-out > div:nth-child(2) .v { color: var(--good); font-weight: 500; }
.calc-note { color: var(--muted); font-size: 0.88rem; }
.calc-note strong { font-family: var(--f-data); font-weight: 500; color: var(--ink); }
.dh-verdict { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dh-verdict p { margin: 0; flex: 1 1 240px; }
.dh-chart { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 22px 4px 0; border-bottom: 1px solid var(--line); }
.dh-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.dh-bar { display: block; width: 100%; max-width: 44px; background: var(--good); border-radius: 4px 4px 0 0; }
.dh-col.cur .dh-bar { background: repeating-linear-gradient(135deg, var(--good) 0 5px, var(--good-soft) 5px 9px); border: 1px solid var(--good); border-bottom: 0; box-sizing: border-box; }
.dh-v { font-family: var(--f-data); font-size: 0.72rem; color: var(--ink); white-space: nowrap; margin-bottom: 3px; }
.dh-y { position: absolute; bottom: -22px; font-family: var(--f-data); font-size: 0.75rem; color: var(--muted); }
.dh-legend { margin-top: 30px; color: var(--muted); font-size: 0.88rem; }
.dh-src { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 520px) { .dh-chart { gap: 3px; } .dh-v { font-size: 0.6rem; writing-mode: vertical-rl; transform: rotate(180deg); margin-bottom: 4px; } }

.etf-px { background: var(--bg); border: 0; padding: 14px 16px; }
@media (max-width: 520px) { .etf-px .px-chg { align-items: flex-start; } }
.etf-px-big { font-family: var(--f-data); font-size: 1.6rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }

.etf-concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.etf-concepts .box h4 { margin: 0 0 6px; }
.etf-card { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px; display: grid; gap: 16px; scroll-margin-top: 90px; }
.etf-head { display: flex; gap: 14px; align-items: flex-start; }
.etf-rank { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: var(--surface); font-family: var(--f-data); font-size: 1.1rem; display: grid; place-items: center; }
.etf-head h3 { margin: 0; font-family: var(--f-display); font-size: 1.3rem; }
.etf-full { margin: 2px 0 0; color: var(--muted); font-size: 0.88rem; }
.etf-what { margin: 0; }
.etf-what .label, .etf-rets .label, .etf-ticks .label, .etf-list .label { display: block; margin-bottom: 4px; }
.etf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.etf-facts > div { background: var(--bg); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.etf-facts .k { font-size: 0.8rem; color: var(--muted); }
.etf-facts .v { font-family: var(--f-data); font-size: 1.2rem; }
.etf-facts .v.small { font-family: inherit; font-size: 0.95rem; font-weight: 700; }
.etf-facts small, .etf-rets small { color: var(--muted); font-size: 0.8rem; }
.etf-rets-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.etf-rets-row > div { display: flex; flex-direction: column; gap: 2px; border-left: 3px solid var(--good); padding-left: 10px; }
.etf-rets-row .k { font-size: 0.8rem; color: var(--muted); }
.etf-rets-row .v { font-family: var(--f-data); font-size: 1.1rem; }
.etf-rets-row .v.up { color: var(--good); } .etf-rets-row .v.down { color: var(--bad); }
.etf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.etf-list ul { list-style: none; margin: 0; padding: 0; }
.etf-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.etf-list li:last-child { border-bottom: 0; }
.etf-list .num, .etf-full .num { font-family: var(--f-data); }
.etf-note { margin: 0; background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; }
.etf-ticks { margin: 0; color: var(--muted); font-size: 0.92rem; }
.etf-ticks b { font-family: var(--f-data); color: var(--ink); font-weight: 500; }
.etf-amount { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 600; }
.etf-amount input { font-family: var(--f-data); font-size: 1.1rem; width: 9em; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.etf-amount input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.etf-page .tbl td, .etf-page .tbl th { white-space: nowrap; }
.etf-home { display: flex; flex-direction: column; gap: 12px; }
.etf-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.etf-chips a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.etf-chips a:hover b { color: var(--accent); }
.etf-chips span { color: var(--muted); font-size: 0.85rem; font-family: var(--f-data); }
.etf-more { font-weight: 700; color: var(--accent); text-decoration: none; }
.etf-also { margin: 0; color: var(--muted); font-size: 0.92rem; }
.etf-also a { color: var(--ink); font-weight: 600; }
.etf-group { display: grid; gap: 16px; margin-top: 28px; scroll-margin-top: 90px; }
.etf-group > h3.sec { margin: 0; } .etf-group > .dr-note { margin: -8px 0 0; }
.etf-page .tbl tr.etf-grp th { text-align: left; background: var(--bg); font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); padding-top: 10px; }
.etf-gidx { margin-bottom: 0; }
@media (max-width: 520px) { .etf-rets-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; } .etf-card { padding: 16px; } }

.bk-logo { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: block; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.bk-logo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.bk-logo.sm { width: 22px; height: 22px; border-radius: 5px; }
.bk-tname { display: inline-flex; align-items: center; gap: 8px; }
.bk-mono { flex: none; width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--f-data); font-size: 0.8rem; }
.bk-card .etf-facts .v.small { font-family: var(--f-data); font-weight: 500; font-size: 0.95rem; line-height: 1.3; }
.bk-rows { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.bk-rows > div { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.bk-rows .k { color: var(--muted); font-size: 0.85rem; }
.bk-rows .badge { margin-right: 4px; }
.bk-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bk-pc .pc { border-radius: 12px; padding: 12px 16px; }
.bk-pc .pc.good { background: var(--good-soft); } .bk-pc .pc.bad { background: var(--warn-soft, var(--accent-soft)); }
.bk-pc h4 { margin: 0 0 6px; font-family: var(--f-display); }
.bk-pc ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.bk-page .tbl .bk-table td, .bk-page .tbl .bk-table th { white-space: normal; min-width: 110px; }
.bk-table td { vertical-align: top; font-size: 0.88rem; }
.bk-table td:first-child { white-space: nowrap; font-weight: 700; }
.bk-table td:first-child a { color: var(--ink); }
.bk-calc { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bk-in { display: flex; flex-direction: column; gap: 12px; }
.bk-in label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; }
.bk-in input { font-family: var(--f-data); font-size: 1.1rem; width: 9em; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.bk-in input:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { font: 600 0.9rem var(--f-display); border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.bk-res { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bk-res a { display: grid; grid-template-columns: 170px 1fr 150px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.bk-res a:hover .bk-n { color: var(--accent); }
.bk-res .bk-n { font-weight: 700; }
.bk-res .bk-v { font-family: var(--f-data); text-align: right; white-space: nowrap; }
.bk-res small { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; }
.bk-res li.na .bk-v { color: var(--muted); font-family: inherit; }
@media (max-width: 620px) {
  .bk-rows > div { grid-template-columns: 1fr; gap: 2px; }
  .bk-res a { grid-template-columns: 1fr auto; }
  .bk-res .dr-track { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .bk-res small { grid-row: 3; }
}

.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ix-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto; column-gap: 10px; row-gap: 2px; align-items: center;
  border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; text-decoration: none; color: var(--ink); }
.ix-card:hover .ix-name { color: var(--accent); }
.ix-card .mono { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--f-data); font-size: 0.72rem; }
.ix-name { font-weight: 700; }
.ix-sector { color: var(--muted); font-size: 0.85rem; }
.ix-state, .ix-meta { grid-column: 1 / -1; font-size: 0.85rem; }
.ix-state { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 6px; }
.ix-meta { color: var(--muted); font-family: var(--f-data); font-size: 0.78rem; }
.etf-chips em { font-style: normal; } .etf-chips em.up { color: var(--good); } .etf-chips em.down { color: var(--bad); }

/* ---------- Gráficos de índices (v25) ---------- */
.mk-list .ix-sp { grid-column: 1 / -1; width: 100%; height: 30px; display: block; margin: 2px 0 6px; overflow: visible; }
.mk-list .ix-sp.none { height: 30px; border-bottom: 1px dashed var(--line); box-sizing: border-box; }
.ix-sp polyline { fill: none; stroke-width: 1.8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ix-sp.up polyline { stroke: var(--good); } .ix-sp.down polyline { stroke: var(--bad); }
.ix-sp.up polygon { fill: var(--good-soft); } .ix-sp.down polygon { fill: var(--bad-soft); }
.mk-list .ix-y { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.mk-list .ix-y b { font-weight: 600; font-family: var(--f-data); }
.mk-list .ix-y b.up { color: var(--good); } .mk-list .ix-y b.down { color: var(--bad); }
.ix-chart { margin-top: 18px; }
.ix-chart .label { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-transform: none; letter-spacing: 0; }
.px-xlab.alt { }
.ix-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ix-two.one { grid-template-columns: 1fr; max-width: 560px; }
.ix-two .box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ix-two h4 { font-family: var(--f-display); font-size: 1rem; }
.ix-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ix-bars li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; align-items: center; gap: 10px; }
.ix-bars .k { font-size: 0.88rem; }
.ix-bars .tr { position: relative; height: 14px; background: linear-gradient(var(--muted), var(--muted)) var(--z) 0 / 1px 100% no-repeat; }
.ix-bars .b { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.ix-bars .b.up { background: var(--good); } .ix-bars .b.down { background: var(--bad); }
.ix-bars .v { text-align: right; font-size: 0.9rem; }
.ix-bars .v.up { color: var(--good); } .ix-bars .v.down { color: var(--bad); }
.ix-range { padding: 28px 4px 0; }
.ix-range .rt { position: relative; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--bad-soft), var(--line) 50%, var(--good-soft)); border: 1px solid var(--line); }
.ix-range .rm { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); box-sizing: border-box; transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--accent); }
.ix-range .rm b { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.ix-range .rl { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.88rem; }
.ix-range .rl span { display: flex; flex-direction: column; } .ix-range .rl span:last-child { text-align: right; }
.ix-range .rl small { color: var(--muted); font-family: var(--f-body); font-size: 0.78rem; }
@media (max-width: 760px) { .ix-two { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ix-chart .px-xlab.alt { display: none; } .ix-bars li { grid-template-columns: 64px minmax(0, 1fr) 64px; } }

/* ---------- Directivos y políticos · Salidas a bolsa (v25) ---------- */
.rd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rd-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; }
.rd-co { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; }
.rd-amt { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.rd-when { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.rd-who { color: var(--muted); font-size: 0.9rem; }
.rd-who b { color: var(--ink); }
.rd-what { font-size: 0.95rem; }
.rd-what .dot { display: inline-block; vertical-align: 0.05em; margin-right: 2px; }
.rd-src { color: var(--muted); font-size: 0.8rem; margin-top: auto; }
.rd-kv { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rd-kv div { background: var(--surface); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rd-kv .k { color: var(--muted); font-size: 0.76rem; }
.rd-kv .v { font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.rd-h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 22px 0 10px; }
.rd-page .callout { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; max-width: 80ch; }
.rd-table td { font-size: 0.9rem; vertical-align: top; }
.rd-page .tbl .rd-table td { white-space: normal; min-width: 90px; }
.rd-page .tbl .rd-table td.num { white-space: nowrap; min-width: 0; }
.rd-page .callout { display: block; } .rd-page .callout a { display: inline; }
.rd-page .tk { font-family: var(--f-data); font-weight: 500; font-size: 0.72em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; vertical-align: 0.15em; }
@media (max-width: 760px) { .rd-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rd-kv { grid-template-columns: 1fr 1fr; } .rd-kv div:last-child:nth-child(3) { grid-column: 1 / -1; } }

/* ---------- La bolsa de los poderosos (v33) ---------- */
.pd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pd-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 110px; }
.pd-top { display: flex; justify-content: space-between; gap: 10px 16px; align-items: flex-start; flex-wrap: wrap; }
.pd-name { font-family: var(--f-display); font-size: 1.2rem; margin: 0; }
.pd-role { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.pd-kv { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pd-kv .k { color: var(--muted); font-size: 0.76rem; }
.pd-kv .v { font-weight: 700; font-size: 1.15rem; }
.pd-who, .pd-note { font-size: 0.93rem; }
.pd-note { color: var(--muted); }
.pd-small { color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.pd-table { width: 100%; }
.pd-table td, .pd-table th { font-size: 0.88rem; vertical-align: top; }
.pd-page .tbl .pd-table td { white-space: normal; min-width: 0; }
.pd-page .tbl .pd-table td.num { white-space: nowrap; }
.pd-page .tbl .pd-table th { white-space: normal; }
@media (max-width: 520px) { .pd-page .tbl .pd-table th, .pd-page .tbl .pd-table td { padding: 8px 8px; } .pd-card { padding: 14px 12px 12px; } }
.pd-ch { display: inline-block; font-size: 0.76rem; font-weight: 600; border-radius: 999px; padding: 1px 8px; white-space: nowrap; background: var(--accent-soft); color: var(--muted); }
.pd-ch.good { color: var(--good); background: var(--good-soft); } .pd-ch.bad { color: var(--bad); background: var(--bad-soft); }
.pd-moves { display: flex; gap: 6px 10px; align-items: baseline; flex-wrap: wrap; font-size: 0.88rem; }
.pd-moves ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pd-ml { font-weight: 700; font-size: 0.8rem; min-width: 7.5em; }
.pd-ml.good { color: var(--good); } .pd-ml.bad { color: var(--bad); }
.pd-x { color: var(--muted); font-size: 0.8em; }
.pd-party { font-weight: 700; font-size: 0.78rem; border-radius: 5px; padding: 1px 6px; margin-right: 4px; border: 1px solid currentColor; }
.pd-d { color: #2f5fb3; } .pd-r { color: #b23b3b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pd-d { color: #8fb0ef; } :root:not([data-theme="light"]) .pd-r { color: #ef9a9a; } }
:root[data-theme="dark"] .pd-d { color: #8fb0ef; } :root[data-theme="dark"] .pd-r { color: #ef9a9a; }
.pd-amts { display: flex; flex-wrap: wrap; gap: 2px 18px; font-size: 0.9rem; }
.pd-amts p { margin: 0; }
.pd-h4 { font-size: 0.9rem; margin: 4px 0 0; }
.pd-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pd-jump a { font-size: 0.84rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; color: var(--ink); background: var(--surface); }
.pd-stack { display: grid; gap: 14px; }
.pd-rank td:first-child { min-width: 11em; } .pd-rank td:nth-child(2) { width: 6em; }
.pd-facts { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: 80ch; }
.pd-fbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pd-fb { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pd-fb h4 { margin: 0 0 8px; font-size: 0.98rem; }
.pd-fb ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.92rem; }
.pd-how td:first-child { min-width: 9em; }
@media (max-width: 860px) { .pd-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .pd-kv { align-items: flex-start; text-align: left; } .pd-ml { min-width: 0; width: 100%; } }

/* ---------- Tesis de inversión (v26, maqueta premium) ---------- */
.th-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--surface); border: 1px dashed var(--warn, #9a6700); border-radius: 12px; padding: 12px 16px; font-size: 0.92rem; margin: 6px 0 4px; }
.th-demo-btn, .th-buy, .th-cta { font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
.th-demo-btn { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.th-demo-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.th-index { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.th-index a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; }
.th-index a:hover { border-color: var(--accent); }
.th-index .n { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.th-index .z { color: var(--muted); font-size: 0.82rem; }
.th-index .i { font-size: 0.92rem; color: var(--ink); }
.th-page .tk { font-family: var(--f-data); font-weight: 500; font-size: 0.72em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; vertical-align: 0.15em; }
.th { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; margin: 0 0 18px; scroll-margin-top: 90px; }
.th-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.th h3 { font-family: var(--f-display); font-size: 1.45rem; letter-spacing: -0.01em; }
.th-meta { color: var(--muted); font-size: 0.86rem; margin-top: 2px; }
.th-badge, .th-chip-b { font-family: var(--f-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; color: #5b3c00; background: #f6dd9b; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.th-idea { font-size: 1.12rem; line-height: 1.5; margin: 12px 0 4px; max-width: 70ch; }
.th-note { color: var(--muted); font-size: 0.88rem; font-style: italic; }
.th-free, .th-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 14px; }
.th-sec h4 { font-family: var(--f-display); font-size: 0.98rem; margin-bottom: 6px; }
.th-sec.wide, .th-src.wide { grid-column: 1 / -1; }
.th-sec ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.th-sec li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.th-pro li::before, .th-con li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.th-pro li::before { content: "+"; color: var(--good); } .th-con li::before { content: "−"; color: var(--bad); }
.th-watch li { padding-left: 0; display: flex; flex-direction: column; gap: 1px; }
.th-watch li b { font-family: var(--f-display); font-size: 0.86rem; color: var(--accent); }
.th-mini { color: var(--muted); font-size: 0.8rem; margin: 6px 0 4px; }
.th-val { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.th-val div { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.th-val .k { color: var(--muted); font-size: 0.78rem; } .th-val .v { font-family: var(--f-data); font-size: 1.05rem; font-weight: 500; } .th-val .n { color: var(--muted); font-size: 0.8rem; }
.th-src { color: var(--muted); font-size: 0.8rem; }
.th-lock-wrap { position: relative; }
.th-page:not(.unlocked) .th-body { max-height: 260px; overflow: hidden; filter: blur(5px); user-select: none; pointer-events: none; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.th-lock { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(420px, 92%); box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 12px 30px rgba(21, 33, 50, 0.16); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.th-lock span:not(.th-lock-ico) { color: var(--muted); font-size: 0.9rem; }
.th-lock-ico { width: 22px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; position: relative; margin-top: 10px; }
.th-lock-ico::before { content: ""; position: absolute; left: 3px; right: 3px; top: -12px; height: 12px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 8px 8px 0 0; }
.th-cta, .th-buy { background: var(--accent); color: #fff; border: 0; }
.th-page.unlocked .th-lock { display: none; }
.th-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 14px; }
.th-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.th-plan.best { border: 2px solid var(--accent); }
.th-plan .pn { font-family: var(--f-display); font-weight: 700; } .th-plan .pn em { font-style: normal; font-size: 0.75rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.th-plan .pp { font-size: 2rem; font-weight: 500; } .th-plan .pp small { font-size: 0.9rem; color: var(--muted); }
.th-plan ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 0.93rem; }
.th-plan .th-buy { margin-top: auto; align-self: flex-start; }
.th-buy-msg { margin-top: 10px; font-weight: 600; color: var(--accent); }
.th-legal { margin-top: 16px; display: block; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn, #9a6700); border-radius: 10px; padding: 14px 16px; font-size: 0.92rem; max-width: 80ch; }
.th-chip { align-self: flex-start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px 6px 6px; }
.th-chip:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .th-index, .th-free, .th-body { grid-template-columns: 1fr; } .th-plans { grid-template-columns: 1fr; } .th { padding: 18px 16px 14px; } .th-val { grid-template-columns: 1fr; } }

/* ---------- v39: escenarios de precio y carteras de ejemplo ---------- */
.th-esc .esc-lead, .pf-calc .esc-lead { font-size: 0.93rem; color: var(--muted); max-width: 72ch; margin: 0 0 12px; }
.esc-chart { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.esc-r { display: grid; grid-template-columns: 96px minmax(0, 1fr) 118px; align-items: center; gap: 10px; }
.esc-l { font-size: 0.82rem; color: var(--muted); }
.esc-t { position: relative; height: 12px; background: var(--bg); border-radius: 6px; }
.esc-axis .esc-t { height: 18px; background: none; }
.esc-seg { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.esc-seg.good { background: var(--good); } .esc-seg.mid { background: var(--warn); } .esc-seg.bad { background: var(--bad); }
.esc-now { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); }
.esc-hoy { position: absolute; bottom: 0; font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; white-space: nowrap; }
.esc-hoy.l { transform: translateX(-4px); } .esc-hoy.r { transform: translateX(calc(-100% + 4px)); }
.esc-v { font-size: 0.86rem; text-align: right; white-space: nowrap; }
.esc-det { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.esc-d { border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.esc-d.good { border-top-color: var(--good); } .esc-d.mid { border-top-color: var(--warn); } .esc-d.bad { border-top-color: var(--bad); }
.esc-dh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.esc-dh b { font-family: var(--f-display); font-size: 0.9rem; flex: 1 1 100%; }
.esc-dh .dot { display: none; }
.esc-dp { font-size: 1.15rem; font-weight: 500; }
.esc-dc { font-size: 0.82rem; color: var(--muted); }
.esc-d p { font-size: 0.9rem; margin: 0; }
.esc-d p.esc-m { color: var(--muted); font-size: 0.8rem; }
.esc-foot { color: var(--muted); font-size: 0.8rem; margin-top: 10px; max-width: 80ch; }
.pf-lead { max-width: 72ch; }
.pf-who { color: var(--muted); font-size: 0.93rem; margin: 2px 0 12px; max-width: 70ch; }
.pf-mix { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.pf-mix span { display: block; height: 100%; }
.pf-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.82rem; color: var(--muted); margin: 6px 0 12px; }
.pf-leg i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.pf-body { grid-template-columns: 1fr 1fr; }
.pf-list { gap: 0 !important; }
.pf-list li { padding: 9px 0 !important; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 56px 90px; gap: 2px 12px; align-items: center; }
.pf-list li:first-child { border-top: 0; }
.pf-list.eq { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 28px !important; }
.pf-list.eq li { grid-template-columns: minmax(0, 1fr); align-content: start; }
.pf-list.eq .pf-n small { display: none; }
.pf-list.eq li:nth-child(2) { border-top: 0; }
.pf-list.eq .pf-w, .pf-list.eq .pf-b { display: none; }
.pf-n { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; display: flex; flex-direction: column; }
.pf-n small { font-family: var(--f-data); font-weight: 400; font-size: 0.74rem; color: var(--muted); }
.pf-w { text-align: right; font-size: 0.95rem; }
.pf-b { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.pf-b span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.pf-note { grid-column: 1 / -1; font-size: 0.86rem; color: var(--muted); }
.pf-how li { padding-left: 0; display: list-item; list-style: disc; margin-left: 18px; }
.pf-rules { margin: 6px 0 18px; max-width: 80ch; }
.pf-rules ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.pf-calc h3 { font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 4px; }
.pfc-in { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 14px; }
.pfc-in label { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; color: var(--muted); }
.pfc-in label span { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 0.95rem; }
.pfc-in input { width: 110px; font: inherit; font-family: var(--f-data); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.pfc-in input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pfc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pfc-out div { background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.pfc-out .k { font-size: 0.8rem; color: var(--muted); } .pfc-out .v { font-size: 1.35rem; font-weight: 500; } .pfc-out .n { font-size: 0.8rem; color: var(--muted); }
@media (max-width: 760px) {
  .esc-r { grid-template-columns: 74px minmax(0, 1fr); }
  .esc-v { display: none; }
  .esc-l { font-size: 0.78rem; }
  .pf-list.eq { grid-template-columns: 1fr; }
  .pf-list.eq li:nth-child(2) { border-top: 1px solid var(--line); }
  .esc-det, .pfc-out, .pf-body { grid-template-columns: 1fr; }
  .pf-list li { grid-template-columns: minmax(0, 1fr) 50px 60px; }
}

/* ---------- v54: Análisis ---------- */
.an-case { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--surface); border-radius: var(--radius, 20px); border: 1px solid var(--line); margin: 0 0 18px; scroll-margin-top: 90px; }
.an-case h4 { margin: 6px 0 0; font-family: var(--f-display); font-size: 1.1rem; }
.an-k { margin: 0; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.an-t { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.02em; }
.an-lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.an-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.an-two p { max-width: 62ch; }
.an-years td { position: relative; }
.an-bar { display: block; height: 6px; border-radius: 3px; background: var(--ink); margin-top: 4px; opacity: .8; }
.an-bar.g { background: var(--good-fill, var(--good)); opacity: 1; }
.an-kv { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 560px) { .an-kv { grid-template-columns: 1fr !important; } }
.an-op { background: var(--accent-soft); border-radius: 14px; padding: 14px 16px; max-width: 80ch; }
.an-src summary { cursor: pointer; font-weight: 700; }
.an-src ul { margin: 8px 0; padding-left: 1.1em; }
.an-soon { background: var(--accent-soft); border: 0; }
.an-h { font-family: var(--f-display); font-size: 1.1rem; margin: 10px 0 6px; }
.an-radar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.an-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 20px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.an-card h3 { font-family: var(--f-display); font-size: 1.15rem; }
.an-sub { color: var(--muted); font-size: 0.92rem; }
.an-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.an-l li { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-top: 1px solid var(--line); }
.an-l li > a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.an-l li > a:hover b { color: var(--accent); }
.an-l li > span { color: var(--muted); font-size: 0.9rem; }
.an-next li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 8px; }
.an-next li > span:last-child { grid-column: 2; }
.an-deep { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius, 20px); margin: 0 0 10px; scroll-margin-top: 90px; }
.an-deep > summary { cursor: pointer; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; list-style: none; }
.an-deep > summary::-webkit-details-marker { display: none; }
.an-deep > summary .n { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.an-deep > summary .z { color: var(--muted); font-size: 0.88rem; }
.an-deep > summary .i { margin-top: 4px; }
.an-deep > summary::after { content: "Ver el análisis"; font-weight: 700; font-size: 0.9rem; color: var(--accent); margin-top: 6px; }
.an-deep[open] > summary::after { content: "Cerrar"; }
.an-deep-b { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.an-deep:target { border-color: var(--accent); }
.th-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; text-decoration: none; color: var(--accent); }

/* ---------- Cómo leer una ficha (v44) ---------- */
.howto { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; font-size: 0.92rem; color: var(--accent); text-decoration: none; }
.howto::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.8rem; }
.howto:hover { text-decoration: underline; }
.mn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 18px; font-size: 0.9rem; color: var(--muted); }
.mn-legend span { display: inline-flex; align-items: center; gap: 6px; } .mn-legend .dot { display: inline-block; }
.mn-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mn-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; scroll-margin-top: 90px; }
.mn-k { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.15rem; font-weight: 500; }
.mn-b h3 { font-family: var(--f-display); font-size: 1.2rem; margin: 6px 0 2px; }
.mn-b p { margin: 6px 0 0; max-width: 70ch; }
.mn-where { color: var(--muted); font-size: 0.88rem; } .mn-where b { color: var(--ink); }
.mn-mini { color: var(--muted); font-size: 0.8rem; margin-top: 12px !important; margin-bottom: 4px !important; }
.mn-b ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mn-b li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.mn-b .th-pro li::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.mn-warn { margin-top: 12px !important; background: var(--warn-soft); border-radius: 10px; padding: 8px 12px; font-size: 0.93rem; }
.mn-warn b { color: var(--warn); }
.mn-note { margin: 18px 0; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; max-width: 80ch; }
.mn-ex { margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.mn-ex h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 0 0 10px; }
.mn-ex dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.mn-ex dl div { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.mn-ex dt { color: var(--muted); font-size: 0.82rem; } .mn-ex dd { margin: 0; font-size: 0.95rem; }
.mn-sum { margin: 14px 0 8px; font-weight: 600; max-width: 75ch; }
.mn-link { font-weight: 700; color: var(--accent); text-decoration: none; } .mn-link:hover { text-decoration: underline; }
.mn-alert { margin: 18px 0 0; max-width: 80ch; } .mn-alert ul { margin: 4px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.mn-chks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mn-chk { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.mn-chk h3 { font-family: var(--f-display); font-size: 1.1rem; margin: 0 0 10px; }
.mn-chk ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mn-chk label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; cursor: pointer; font-size: 0.97rem; }
.mn-chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--good); }
.mn-chk input:checked + * , .mn-chk label:has(input:checked) { color: var(--muted); }
.mn-print { margin: 14px 0 6px; }
.qz { display: flex; flex-direction: column; gap: 12px; }
.qz-q { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0; background: var(--surface); }
.qz-q legend { font-weight: 700; padding: 0 4px; } .qz-q legend .num { color: var(--accent); }
.qz-o { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.qz-o:hover { background: var(--bg); } .qz-o input { margin-top: 3px; accent-color: var(--accent); }
.qz-q.right .qz-o:has(input:checked) { background: var(--good-soft); } .qz-q.wrong .qz-o:has(input:checked) { background: var(--bad-soft); }
.qz-q.wrong .qz-o:has(input[data-ok]) { box-shadow: inset 0 0 0 1px var(--good); }
.qz-why { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }
.qz-q.right .qz-why::before { content: "Correcto. "; color: var(--good); font-weight: 700; } .qz-q.wrong .qz-why::before { content: "No exactamente. "; color: var(--bad); font-weight: 700; }
.qz-end { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .qz-score { font-weight: 700; }
@media (max-width: 760px) { .mn-chks, .mn-ex dl { grid-template-columns: 1fr; } .mn-step { grid-template-columns: 1fr; gap: 6px; padding: 16px; } }
@media print {
  body.print-chuleta * { visibility: hidden; }
  body.print-chuleta #manual-chuleta, body.print-chuleta #manual-chuleta * { visibility: visible; }
  body.print-chuleta #manual-chuleta { position: absolute; left: 0; top: 0; width: 100%; }
  body.print-chuleta .mn-print { display: none; }
}

.px-plot[data-p] { cursor: crosshair; touch-action: pan-y; outline: none; }
.px-plot[data-p]:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 4px; }
.px-hair { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--ink); opacity: .55; pointer-events: none; }
.px-hdot { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ink); border: 2px solid var(--surface); box-sizing: border-box; pointer-events: none; }
.px-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); background: var(--ink); color: var(--surface); border-radius: 8px; padding: 5px 9px; font-size: 0.82rem; line-height: 1.3; white-space: nowrap; pointer-events: none; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.px-tip b { font-family: var(--f-data); font-weight: 500; font-size: 0.95rem; }
.px-tip.l { transform: translate(-12px, -100%); align-items: flex-start; } .px-tip.r { transform: translate(calc(-100% + 12px), -100%); align-items: flex-end; }
.px-plot .px-hair, .px-plot .px-hdot, .px-plot .px-tip { display: none; }
.px-plot.hov .px-hair, .px-plot.hov .px-hdot, .px-plot.hov .px-tip { display: flex; }
.px-plot.hov .px-hair { display: block; }
.px-plot.hov .px-dot { opacity: .35; }
.px-chip { font-weight: 700; color: var(--ink); }
.px-chip .num { font-weight: 500; }
.px-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.px-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 16px; }
.px-price, .px-chg { display: flex; flex-direction: column; gap: 4px; }
.px-chg { align-items: flex-end; }
.px-big { font-family: var(--f-data); font-size: 2.2rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.px-when { color: var(--muted); font-size: 0.85rem; }
.px-chg .badge { font-size: 1rem; padding: 3px 10px; }
.px-chart-wrap { padding: 4px 58px 26px 0; }
.tv-slot:empty { display: none; }
.px-plot { position: relative; height: 210px; }
.px-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.px-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.px-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.px-tail { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.px-plot.up .px-line { stroke: var(--good); } .px-plot.down .px-line { stroke: var(--bad); }
.px-plot.up .px-area { fill: var(--good-soft); } .px-plot.down .px-area { fill: var(--bad-soft); }
.px-ylab { position: absolute; left: calc(100% + 8px); transform: translateY(-50%); font-family: var(--f-data); font-size: 0.78rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.px-xlab { position: absolute; top: calc(100% + 6px); transform: translateX(-50%); font-family: var(--f-data); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.px-xlab::before { content: ""; position: absolute; left: 50%; top: -6px; height: 5px; border-left: 1px solid var(--muted); }
.px-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--surface); box-sizing: border-box; }
.px-plot.up .px-dot { background: var(--good); } .px-plot.down .px-dot { background: var(--bad); }
.px-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.px-stats div { background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.px-stats .v { font-size: 1.05rem; }
.px-stats .k { color: var(--muted); font-size: 0.8rem; }
.px-stats .up { color: var(--good); } .px-stats .down { color: var(--bad); }
.px-note { color: var(--muted); font-size: 0.85rem; max-width: 72ch; }
.px-live { align-self: flex-start; font-family: var(--f-display); font-weight: 600; text-decoration: none; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); }
.px-live:hover { background: var(--accent-soft); }
@media (max-width: 520px) { .px-plot { height: 170px; } .px-chart-wrap { padding-right: 50px; } .px-big { font-size: 1.9rem; } .px-stats { grid-template-columns: 1fr 1fr; } .px-stats div:last-child { grid-column: 1 / -1; } }

/* ---------- Pantallas táctiles: botones más fáciles de pulsar ---------- */
@media (pointer: coarse) {
  .fchip, .tabs a, .topnav a { min-height: 40px; display: inline-flex; align-items: center; }
  .glance a, .card, .dr-list a, .feed a { -webkit-tap-highlight-color: transparent; }
}
@media (hover: none) {
  .glance a:hover, .card:hover, .chip:hover, .fchip:hover { border-color: var(--line); }
}

/* ---------- Ajustes comunes ---------- */
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.glance .state { align-items: flex-start; }
.glance .state .dot { margin-top: 0.42em; }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .masthead .wrap { padding-block: 12px; }
  .brand svg { height: 26px; }
  .topnav a { padding: 4px 8px; font-size: 0.9rem; }
  .id h1 { font-size: 2.1rem; }
  .what { font-size: 1.05rem; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .glance a { padding: 10px 12px; }
  .glance small { font-size: 0.82rem; }
  .part-head h2 { font-size: 1.6rem; }
  .fig .big { font-size: 1.1rem; }
  .div-num { font-size: 2.2rem; }
}
@media (max-width: 360px) {
  .glance { grid-template-columns: 1fr; }
  .topnav a:last-child { display: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .wrap { max-width: 960px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dr-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { max-width: 20ch; }
}

/* ---------- Ordenador ---------- */
@media (min-width: 1100px) {
  .wrap { max-width: 1240px; }
  .home .wrap { gap: 56px; padding-block: 48px 64px; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .hero > .label, .hero > h1 { grid-column: 1; }
  .hero > .lead { grid-column: 1; }
  .hero > .legend { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; align-items: flex-start; gap: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; align-self: end; }
  .hero h1 { font-size: 3.2rem; max-width: 16ch; }
  .home-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .dr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; }
  .frow { grid-template-columns: auto minmax(0, 1fr); }

  /* Ficha: índice lateral + contenido */
  article.ficha {
    display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 56px; align-items: start;
    max-width: 1240px; margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  article.ficha > .wrap, article.ficha > .tabs > .wrap { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  article.ficha > div.wrap:first-of-type { grid-column: 2; grid-row: 1; }
  article.ficha > div.wrap:last-of-type { grid-column: 2; grid-row: 2; }
  article.ficha > .tabs {
    grid-column: 1; grid-row: 1 / span 2; align-self: start;
    position: sticky; top: calc(24px + env(safe-area-inset-top, 0px));
    margin-top: 32px; background: transparent; border: 0;
  }
  .tabs .wrap { flex-direction: column; overflow: visible; gap: 2px; padding-block: 0; border-left: 2px solid var(--line); }
  .tabs a { padding: 9px 14px; border-radius: 0 8px 8px 0; margin-left: -2px; border-left: 2px solid transparent; font-size: 1rem; }
  .tabs a.active { border-left-color: var(--accent); }
  .id { padding-block: 40px 24px; }
  .id h1 { font-size: 3.4rem; }
  .what { font-size: 1.2rem; max-width: 60ch; }
  .glance { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .part { scroll-margin-top: 24px; }
  .part p, .part li { max-width: 72ch; }
  .vs-card .take, .tbl td, .box p { max-width: none; }
  .verdict { padding: 28px 32px; }
  .verdict h3 { font-size: 2rem; }
  .sheet { gap: 20px; }
  .blocks { height: 380px; }
  .figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .figures .fig { border-top: 1px solid var(--line); border-bottom: 0; }
  .figures .fig:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .figures .fig:only-child { grid-column: 1 / -1; }
  .news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .news .item { border-top: 1px solid var(--line); border-bottom: 0; }
  .news .item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .segments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
  .timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .timeline .tl { border-top: 1px solid var(--line); border-bottom: 0; }
  .glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; align-items: start; border-top: 0; }
  .glossary details { border-top: 1px solid var(--line); border-bottom: 0; }
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 1600px) {
  body { font-size: 1.125rem; }
  .wrap, article.ficha { max-width: 1400px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* v45: tablas de las guías, con texto que se ajusta y en tarjetas en el móvil */
.tbl.vt td, .etf-page .tbl.vt th { white-space: normal; }
.tbl.vt td.num { white-space: nowrap; }
@media (max-width: 700px) {
  .tbl.vt { overflow: visible; }
  .tbl.vt thead { display: none; }
  .tbl.vt tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl.vt tr:last-child { border-bottom: 0; }
  .tbl.vt td { display: block; border: 0; padding: 3px 14px; white-space: normal; }
  .tbl.vt td[data-k]::before { content: attr(data-k); display: block; font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; color: var(--muted); }
  .tbl.vt td:first-child::before { display: none; }
  .tbl.vt td:first-child { font-weight: 700; }
}
/* ---------- v45: guías nuevas ---------- */
.mk-search { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin: 4px 0 18px; font-weight: 600; }
.mk-search input { font: inherit; font-weight: 400; font-size: 1.05rem; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--surface); color: var(--ink); }
.mk-search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mk-none { color: var(--muted); }
.mk-cat { margin: 0 0 22px; } .mk-cat h3 { font-family: var(--f-display); font-size: 1.1rem; margin: 0 0 10px; }
.mk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.mk-grid a { display: flex; flex-direction: column; gap: 4px; height: 100%; box-sizing: border-box; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.mk-grid a:hover { border-color: var(--accent); }
.mk-b { font-weight: 700; } .mk-c { color: var(--muted); font-size: 0.9rem; } .mk-c b { color: var(--accent); } .mk-n { font-size: 0.84rem; color: var(--muted); }
.mn-do { margin-top: 10px !important; background: var(--good-soft); border-radius: 10px; padding: 8px 12px; font-size: 0.95rem; }
.mn-do b { color: var(--good); }

/* ---------- v45: herramientas ---------- */
.ob-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.ob-tabs button { font: 600 0.95rem var(--f-display); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.ob-tabs button[aria-selected="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ob-in label[hidden] { display: none; }
.ob-big { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; }
.ob-big .k { color: var(--muted); font-size: 0.85rem; } .ob-big .v { font-size: 2rem; font-weight: 500; } .ob-big .n { color: var(--muted); font-size: 0.88rem; max-width: 70ch; }
.ob-tip { margin-top: 12px; font-weight: 600; max-width: 75ch; }
.tl-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: #fff; font: 600 0.7rem var(--f-data); box-shadow: inset 0 0 0 1px var(--line); }
.tl-ico.has-logo { background: #fff; } .tl-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bs-filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.bs-filters fieldset { border: 0; padding: 0; margin: 0; } .bs-filters legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.bs-row { display: flex; flex-wrap: wrap; gap: 6px; }
.bs-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bs-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.9rem; cursor: pointer; }
.bs-chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.bs-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.bs-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 6px; }
.bs-count { font-weight: 700; } .bs-sort { font-size: 0.9rem; color: var(--muted); } .bs-sort select { font: inherit; color: var(--ink); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.bs-cmp { position: sticky; top: 64px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--surface); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.bs-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bs-list li { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.bs-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 14px 6px; text-decoration: none; color: var(--ink); }
.bs-card:hover b { color: var(--accent); }
.bs-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .bs-sub { color: var(--muted); font-size: 0.82rem; } .bs-st { font-size: 0.85rem; }
.bs-nums { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 0.85rem; white-space: nowrap; }
.bs-nums .up { color: var(--good); } .bs-nums .down { color: var(--bad); } .bs-dv { color: var(--muted); }
.bs-pick { font-size: 0.85rem; color: var(--muted); padding: 0 14px 10px 60px; cursor: pointer; }
.cp-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cp-pick label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.cp-pick input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); }
.cp-ideas { color: var(--muted); font-size: 0.9rem; margin: 10px 0 14px; } .cp-ideas a { color: var(--accent); }
.cp-empty { color: var(--muted); padding: 20px 0; }
table.cp { table-layout: fixed; width: 100%; } table.cp th, table.cp td { white-space: normal !important; vertical-align: top; }
table.cp tbody th { width: 22%; color: var(--muted); font-weight: 600; text-align: left; font-size: 0.88rem; }
.cp-h { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: none; }
table.cp td.up { color: var(--good); font-weight: 600; } table.cp td.down { color: var(--bad); font-weight: 600; }
table.cp td.st-good { box-shadow: inset 3px 0 var(--good); } table.cp td.st-info { box-shadow: inset 3px 0 var(--accent); } table.cp td.st-warn { box-shadow: inset 3px 0 var(--warn); } table.cp td.st-bad { box-shadow: inset 3px 0 var(--bad); }
.cal-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cal-m { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cal-m h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 0; } .cal-m h3 span { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.cal-n { color: var(--muted); font-size: 0.82rem; margin: 2px 0 8px; }
.cal-m ul { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow: auto; }
.cal-m li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 6px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.cal-m li a:hover .cal-co { color: var(--accent); }
.cal-y { color: var(--good); } .cal-conf { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 700; color: var(--accent); }
@media (max-width: 900px) { .cal-months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bs-list, .cp-pick, .cal-months { grid-template-columns: 1fr; } table.cp tbody th { width: 28%; } .bs-cmp { top: 100px; } }

/* ---------- v45: boletín ---------- */
.bl-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.bl-home h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 6px; } .bl-home p { color: var(--muted); max-width: 52ch; margin: 0 0 8px; }
.bl-form { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.bl-mail { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.bl-mail input { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--ink); border-radius: 10px; background: var(--bg); color: var(--ink); }
.bl-mail input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bl-ok { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 0.85rem; color: var(--muted); } .bl-ok input { margin-top: 3px; }
.bl-form .th-cta { align-self: flex-start; }
.bl-msg { font-weight: 600; font-size: 0.92rem; } .bl-msg.ok { color: var(--good); } .bl-msg.err { color: var(--bad); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 12px; } .bl-grid.two { grid-template-columns: 1fr 1fr; }
.bl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.bl-card h3 { font-family: var(--f-display); font-size: 1.02rem; margin: 0 0 8px; }
.bl-l { list-style: none; margin: 0; padding: 0; }
.bl-l li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.bl-l li:first-child { border-top: 0; } .bl-l a { color: var(--ink); text-decoration: none; font-weight: 600; } .bl-l a:hover { color: var(--accent); }
.bl-l .up { color: var(--good); } .bl-l .down { color: var(--bad); }
.bl-res { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bl-res a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; color: var(--ink); text-decoration: none; }
.bl-res a span:last-child { color: var(--muted); } .bl-res a:hover { border-color: var(--accent); }
.bl-wide { margin-bottom: 12px; }
@media (max-width: 760px) { .bl-home, .bl-grid, .bl-grid.two { grid-template-columns: 1fr; } }

/* ---------- v51: fondos de inversión y planes de pensiones ---------- */
.fd-group { margin: 0 0 28px; }
.fd-group > h3 { font-family: var(--f-display); font-size: 1.2rem; margin: 0 0 4px; }
.fd-group > .lead { margin: 0 0 14px; max-width: 75ch; }
.fd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fd-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.fd-h { display: flex; flex-direction: column; gap: 2px; }
.fd-h h4 { margin: 0; font-family: var(--f-display); font-size: 1.02rem; line-height: 1.3; }
.fd-isin { font-family: var(--f-data); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; }
.fd-what { margin: 0; font-size: 0.94rem; }
.fd-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fd-kv div { min-width: 0; }
.fd-kv dt { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.fd-kv dd { margin: 2px 0 0; font-weight: 700; }
.fd-kv dd small { display: block; font-weight: 400; color: var(--muted); font-size: 0.74rem; }
.fd-kv dd.neg { color: var(--warn); }
.fd-risk { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.fd-risk b { font-weight: 700; }
.fd-dots { display: inline-flex; gap: 2px; }
.fd-dots i { width: 7px; height: 12px; border-radius: 2px; background: var(--line); }
.fd-dots i.on { background: var(--ink); }
.fd-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.fd-link { font-size: 0.88rem; font-weight: 600; margin-top: auto; }
.fd-pc { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 16px; }
.fd-pc > div { padding: 16px 18px; border-radius: 14px; }
.fd-pro { background: var(--good-soft); } .fd-con { background: var(--warn-soft); }
.fd-pc h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 1.05rem; }
.fd-pc ul { margin: 0; padding-left: 1.1em; } .fd-pc li { margin: 4px 0; }
.fd-src { margin: 0 0 12px; padding-left: 1.1em; } .fd-src li { margin: 4px 0; }
@media (max-width: 420px) { .fd-grid { grid-template-columns: 1fr; } }

/* v45: fechas y avisos */
.pf-cal { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); border-left: 4px solid var(--accent); }
.pf-ev.ex { border-left-color: var(--warn); } .pf-ev.pay { border-left-color: var(--good); }
.pf-ev-d { display: flex; flex-direction: column; align-items: center; line-height: 1; } .pf-ev-d b { font-size: 1.35rem; } .pf-ev-d small { color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.pf-ev-t a { font-weight: 700; color: var(--ink); } .pf-ev-t small { display: block; color: var(--muted); font-size: 0.86rem; }
.pf-cal-act { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 14px; }
.pf-al { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; } .pf-al legend { font-weight: 700; padding: 0 4px; }
.masthead .topnav { margin-left: auto; }
/* v40: con tantos apartados, el menú se desliza en horizontal en vez de salirse de la pantalla (768–830 px) */
.masthead .topnav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.masthead .topnav::-webkit-scrollbar { display: none; }
.masthead .topnav a { white-space: nowrap; flex: none; }
.pf-top { order: 3; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; white-space: nowrap; }
.pf-top:hover { background: var(--accent); color: #fff; }
.pf-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 767px) {
  .masthead .wrap { align-items: center; }
  .pf-top { order: 1; margin-left: auto; }
  .masthead .topnav { order: 2; flex-basis: 100%; margin-left: -8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .masthead .topnav a { white-space: nowrap; flex: none; }
  .masthead .topnav a:last-child { display: inline-flex; }
}
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf-account { margin-top: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.pf-account p { margin: 0; }
.pf-acc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pf-acc-msg { color: var(--muted); }
.pf-acc-msg b { color: var(--ink); }
.pf-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--f-display); }
.pf-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; align-items: end; }
.pf-login .pf-actions { grid-column: 1 / -1; }
.pf-f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.pf-f em { font-style: normal; font-weight: 400; color: var(--muted); }
.pf-f input, .pf-f select { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; box-sizing: border-box; width: 100%; }
.pf-f input:focus-visible, .pf-f select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 18px; }
.pf-f-co, .pf-hint, .pf-actions, .pf-err { grid-column: 1 / -1; }
.pf-hint { margin: 0; color: var(--muted); font-size: 0.92rem; min-height: 1.2em; }
.pf-err { margin: 0; color: var(--bad); font-weight: 600; min-height: 0; }
.pf-err:empty { display: none; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pf-btn { font: inherit; font-weight: 700; font-family: var(--f-display); border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 10px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.pf-btn.ghost { background: transparent; color: var(--accent); }
.pf-btn.small { min-height: 34px; padding: 4px 10px; font-size: 0.88rem; }
.pf-btn.danger { border-color: var(--bad); color: var(--bad); background: transparent; }
.pf-btn.danger.armed { background: var(--bad); color: #fff; }
.pf-btn:disabled { opacity: 0.6; cursor: wait; }
.pf-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pf-link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.pf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.pf-tile { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.pf-tile .k { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.pf-tile .v { font-family: var(--f-data); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-tile small { color: var(--muted); font-size: 0.85rem; }
.pf-cur-h { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }
.up { color: var(--good); } .down { color: var(--bad); }
.pf-empty { color: var(--muted); }
.pf-table-wrap { overflow-x: auto; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.pf-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.85rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pf-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.pf-table td.num, .pf-table th:not(:first-child) { text-align: right; }
.pf-table td.num { white-space: nowrap; }
.pf-table td .cv { display: block; }
.pf-table td small { display: block; color: var(--muted); font-size: 0.8rem; }
.pf-table td.pf-co a { font-weight: 700; color: var(--ink); text-decoration: none; }
.pf-table td.pf-co a:hover { color: var(--accent); }
.pf-table td.pf-act { white-space: nowrap; }
.pf-table td.pf-act .pf-btn + .pf-btn { margin-left: 6px; }
.pf-table tr.editing td { background: var(--accent-soft); }
@media (max-width: 767px) {
  .pf-form { grid-template-columns: 1fr; padding: 14px; }
  .pf-table thead { display: none; }
  .pf-table, .pf-table tbody, .pf-table tr, .pf-table td { display: block; width: 100%; box-sizing: border-box; }
  .pf-table tr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; padding: 6px 4px; }
  .pf-table td { border: 0; padding: 6px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .pf-table td::before { content: attr(data-k); color: var(--muted); font-family: var(--f-body); font-size: 0.88rem; text-align: left; white-space: normal; }
  .pf-table td.num { align-items: baseline; }
  .pf-table td.pf-co { font-size: 1.05rem; } .pf-table td.pf-co::before { content: none; }
  .pf-table td.pf-act { justify-content: flex-end; } .pf-table td.pf-act::before { content: none; }
  .pf-table td small { display: block; }
  .pf-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-tile { padding: 12px; }
  .pf-tile .v { font-size: 1.1rem; }
  .pf-divs li { grid-template-columns: 1fr; }
  .pf-divs .a { text-align: left; }
}
.pf-divs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pf-divs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.pf-divs .n { font-weight: 700; }
.pf-divs .a { font-family: var(--f-data); font-weight: 600; text-align: right; }
.pf-divs small { color: var(--muted); font-size: 0.88rem; }
.pf-divs li.total { border-bottom: 0; }
.pf-divs li.total .n { font-family: var(--f-display); }
.pf-disc { margin-top: 8px; }

/* ---------- Portada (v23) ---------- */
.home .wrap { gap: 52px; }
.sec-h { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.sec-h h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.01em; }
.sec-h p { color: var(--muted); font-size: 0.95rem; max-width: 68ch; }

.hero2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
.hero2-text { display: flex; flex-direction: column; gap: 14px; }
.hero2 h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; max-width: 15ch; }
.hero2 .lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }

.finder { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin-top: 6px; }
.finder label { font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; }
.finder input { font: 1.05rem var(--f-body); color: var(--ink); background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; width: 100%; }
.finder input:focus-visible { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.finder-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 8; margin: 6px 0 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(21, 33, 50, 0.14); max-height: 360px; overflow-y: auto; }
.finder-list a { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.finder-list a:hover, .finder-list a.sel { background: var(--accent-soft); }
.finder-list .f-n { font-weight: 700; }
.finder-list .f-m { color: var(--muted); font-size: 0.82rem; font-family: var(--f-data); white-space: nowrap; }
.finder-list .f-empty { padding: 10px; color: var(--muted); }

.sema { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.sema h2 { font-size: 1.15rem; font-weight: 700; }
.sema-sub { color: var(--muted); font-size: 0.9rem; }
/* Una raya por empresa en una rejilla que se reparte en varias filas si no caben (v40): nunca se sale de la caja. */
.sema-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 1), minmax(0, 1fr)); gap: 1px; height: 56px; margin-top: 4px; min-width: 0; overflow: hidden; }
.sema-strip span { min-width: 0; border-radius: 1px; }
.sema-strip .good { background: var(--good); } .sema-strip .info { background: var(--accent); }
.sema-strip .warn { background: var(--warn); } .sema-strip .bad { background: var(--bad); }
.sema-keys { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.sema-keys a { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--ink); }
.sema-keys a:hover .k-l { color: var(--accent); text-decoration: underline; }
.sema-keys .dot { align-self: center; }
.sema-keys .k-n { font-family: var(--f-data); font-weight: 500; font-size: 1.05rem; }
.sema-keys .k-l { font-size: 0.92rem; }

.mk-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--line); }
.mk-list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 12px 14px; text-decoration: none; color: var(--ink); height: 100%; }
.mk-list a:hover { background: var(--surface); }
.mk-list a:hover .ix-n { color: var(--accent); }
.mk-list .ix-n { font-family: var(--f-display); font-weight: 700; grid-column: 1 / -1; }
.mk-list .ix-c { color: var(--muted); font-size: 0.8rem; grid-column: 1 / -1; margin-bottom: 6px; }
.mk-list .ix-l { font-size: 0.95rem; }
.mk-list .ix-p { font-size: 0.9rem; text-align: right; }
.mk-list .ix-p.up { color: var(--good); } .mk-list .ix-p.down { color: var(--bad); }

.week { display: grid; grid-template-columns: 1fr; gap: 44px; }
.cal-day { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.cal-day h3 { font-family: var(--f-display); font-size: 0.98rem; font-weight: 700; line-height: 1.3; }
.cal-day h3 small { display: block; color: var(--muted); font-weight: 600; font-size: 0.8rem; }
.cal-day ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cal-day li a { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-weight: 700; font-size: 0.93rem; }
.cal-day li a:hover { border-color: var(--accent); color: var(--accent); }
.cal-day li a small { font-weight: 400; color: var(--muted); font-size: 0.78rem; }
.cal-day li a.est { border-style: dashed; font-weight: 600; color: var(--muted); }
.cal-more { padding-top: 12px; color: var(--muted); font-size: 0.92rem; }

.guides { gap: 6px; }
.g-path { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.g-path a { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: start; align-content: start; height: 100%; box-sizing: border-box;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.g-path a:hover { border-color: var(--accent); }
.g-path a:hover .g-n { color: var(--accent); }
.g-path a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-path .g-k { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.15rem; font-weight: 500; }
.g-path .g-n { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.25; }
.g-path .g-d { color: var(--muted); font-size: 0.92rem; }
.g-more-h { font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--muted); margin: 22px 0 0; }
.g-list .g-n { font-size: 1.12rem !important; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
.g-list li { border-bottom: 1px solid var(--line); }
.g-list a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; text-decoration: none; color: var(--ink); }
.g-list .g-n { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.g-list a:hover .g-n { color: var(--accent); }
.g-list .g-d { color: var(--muted); font-size: 0.95rem; max-width: 46ch; }
.home .bl-home { margin-top: 8px; }
.news45 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--accent-soft); border-radius: 14px; padding: 14px 18px; }
.news45 h2 { flex: 1 0 100%; text-align: left; font-family: var(--f-display); font-size: 1rem; font-weight: 700; color: var(--accent); margin: 0; }
.news45 ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.news45 a { display: inline-block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; }
.news45 a:hover { border-color: var(--accent); color: var(--accent); }
.news45 a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home .wrap .news45 { flex-direction: row; align-items: center; justify-content: flex-start; }

.home .card .ctags { display: none; }
.home .card { grid-template-columns: 52px minmax(0, 1fr); padding: 14px 16px; }
.home .card .mono { width: 52px; height: 52px; font-size: 0.82rem; }
.home .card .cline { padding-top: 8px; margin-top: 6px; }
#divrank:not(.all) > li:nth-child(n+13) { display: none; }
#grid:not(.all) > .card:nth-child(n+19) { display: none; }
.more { align-self: flex-start; font: 600 0.98rem var(--f-display); color: var(--ink); background: var(--surface); border: 1px solid var(--ink); border-radius: 999px; padding: 10px 18px; cursor: pointer; margin-top: 6px; }
.more:hover { background: var(--ink); color: var(--surface); }
.more:focus-visible, .sema-keys a:focus-visible, .mk-list a:focus-visible, .g-list a:focus-visible, .cal-day a:focus-visible, .finder-list a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.divrank, .catalog { gap: 10px; }

@media (min-width: 768px) {
  .mk-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .week { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .g-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .g-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .home .wrap { gap: 64px; }
  .hero2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .sema { padding: 24px; }
  .sema-strip { height: 72px; }
  .mk-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; border-left: 1px solid var(--line); }
  .g-list li { border-bottom: 0; border-right: 1px solid var(--line); }
  .g-list a { padding: 6px 20px 8px; height: 100%; }
  .g-list { row-gap: 18px; }
  .g-path { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .g-path a { grid-template-columns: 1fr; padding: 18px; row-gap: 6px; }
  .g-path .g-k { grid-row: auto; margin-bottom: 4px; }
}
@media (max-width: 767px) {
  .sema-each { display: none; }
  .sema-strip { height: 48px; }
}
@media (max-width: 420px) {
  .sema-keys { grid-template-columns: 1fr; }
  .mk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-list a { padding: 10px 12px; }
  .mk-list .ix-c { display: none; }
  .mk-list .ix-n { margin-bottom: 4px; font-size: 0.95rem; }
  .cal-day { grid-template-columns: 1fr; }
}

/* ---------- v52: ¿Por dónde empiezo?, menú agrupado y portada ---------- */
.cm-risk { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cm-bars { display: inline-flex; gap: 2px; }
.cm-bars i { width: 6px; height: 12px; border-radius: 2px; background: var(--line); }
.cm-risk.r1 i.on, .cm-risk.r2 i.on { background: var(--good); }
.cm-risk.r3 i.on { background: var(--accent); }
.cm-risk.r4 i.on, .cm-risk.r5 i.on { background: var(--warn); }
.cm-steps { margin: 0 0 8px; padding-left: 1.3em; max-width: 75ch; } .cm-steps li { margin: 0 0 10px; }
.cm-group { margin: 0 0 26px; }
.cm-gh { font-family: var(--f-display); font-size: 1.2rem; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.cm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.cm-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; scroll-margin-top: 90px; }
.cm-card:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.cm-head { display: flex; flex-direction: column; gap: 4px; }
.cm-g { font-size: 0.76rem; font-weight: 600; color: var(--muted); }
.cm-head h3 { margin: 0; font-family: var(--f-display); font-size: 1.2rem; }
.cm-q { margin: 0; }
.cm-kv { margin: 0; display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cm-kv div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.cm-kv dt { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.cm-kv dd { margin: 0; font-size: 0.93rem; }
.cm-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-pc > div { border-radius: 10px; padding: 10px 12px; }
.cm-pro { background: var(--good-soft); } .cm-con { background: var(--warn-soft); }
.cm-pc h4 { margin: 0 0 4px; font-size: 0.86rem; }
.cm-pc ul { margin: 0; padding-left: 1.05em; font-size: 0.9rem; } .cm-pc li { margin: 3px 0; }
.cm-links { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; font-size: 0.92rem; }
.cm-plazos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 14px; }
.cm-plazo { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cm-plazo h3 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.05rem; }
.cm-pd { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.cm-plazo ul { margin: 0 0 8px; padding-left: 1.05em; } .cm-plazo li { margin: 3px 0; }
.cm-pn { margin: 0; font-size: 0.88rem; }
.cmqz { display: grid; gap: 14px; max-width: 760px; }
.cmqz-q { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cmqz-q legend { font-weight: 700; padding: 0 4px; display: flex; gap: 10px; align-items: baseline; }
.cmqz-q legend .num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 0.8rem; flex: none; }
.cmqz-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cmqz-opts label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--bg); min-height: 40px; box-sizing: border-box; }
.cmqz-opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, var(--bg)); font-weight: 600; }
.cmqz-opts input { accent-color: var(--accent); margin: 0; }
.cmqz-out { max-width: 760px; margin-top: 18px; }
.cmqz-out h3 { font-family: var(--f-display); font-size: 1.1rem; margin: 16px 0 8px; }
.cmqz-wait { color: var(--muted); }
.cmqz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cmqz-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid var(--good); background: var(--surface); }
.cmqz-list.first li { border-left-color: var(--accent); } .cmqz-list.no li { border-left-color: var(--warn); }
.cmqz-list span { color: var(--muted); font-size: 0.93rem; }

/* Menú agrupado */
.nv2 { align-items: center; }
.nv-b { font: inherit; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; color: var(--muted); background: none; border: 0; padding: 4px 10px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; min-height: 40px; }
.nv-b:hover, .nv-b[aria-expanded="true"] { color: var(--ink); background: var(--bg); }
.nv-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nv-c { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nv-b[aria-expanded="true"] .nv-c { transform: rotate(-135deg) translateY(-1px); }
.masthead { position: relative; }
.mm { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 14px 24px -18px rgba(0,0,0,.35); }
.masthead .mm .wrap { display: block; padding-block: 16px 20px; }
.mm-t { margin: 0 0 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; }
.mm-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.mm-l a { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.mm-l a:hover, .mm-l a:focus-visible { background: var(--bg); }
.mm-l b { font-weight: 700; } .mm-l span { font-size: 0.86rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .nv-c { transition: none; } }

/* Portada */
.hs-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 22px; }
.hs-door { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.hs-door:hover { border-color: var(--accent); }
.hs-door.main { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.hs-door.main .hs-k, .hs-door.main span { color: inherit; opacity: .85; }
.hs-door b { font-family: var(--f-display); font-size: 1.2rem; }
.hs-k { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.hs-door > span:last-child { color: var(--muted); font-size: 0.93rem; }
.hs-door.main > span:last-child, .hs-door.main .hs-k { color: var(--surface); opacity: .82; }
.hc-h { font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 10px; }
.hc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.hc-list a { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; }
.hc-list a:hover { border-color: var(--accent); }
.hc-n { font-weight: 700; }
@media (max-width: 700px) {
  .cm-cards { grid-template-columns: 1fr; }
  .cm-kv div { grid-template-columns: 1fr; gap: 2px; }
  .cm-pc { grid-template-columns: 1fr; }
  .hc-list { grid-template-columns: 1fr 1fr; }
}

.sm-h { font-family: var(--f-display); font-size: 1.15rem; margin: 26px 0 6px; }
.sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; }
.sm-col .g-more-h { margin-top: 10px; }
.sm-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sm-l a { display: flex; flex-direction: column; gap: 1px; padding: 7px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.sm-l a:hover .g-n { color: var(--accent); }
.sm-l .g-n { font-weight: 700; } .sm-l .g-d { font-size: 0.86rem; color: var(--muted); }

/* ---------- Logotipos y código bursátil (v24) ---------- */
.ico { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 6px; overflow: hidden; vertical-align: middle;
  font-family: var(--f-display); font-weight: 700; font-size: 0.62rem; color: #fff; letter-spacing: 0; }
.ico.has-logo, .mono.has-logo { background: #FFFFFF !important; border: 1px solid var(--line); }
.ico.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 2px; box-sizing: border-box; display: block; }
.mono.has-logo { padding: 6px; box-sizing: border-box; }
.mono.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mono.no-logo { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0; }
.ix-card .mono.no-logo { font-size: 0.85rem; }
.ix-card .mono.has-logo { padding: 4px; }
.tk { font-family: var(--f-data); font-weight: 500; font-size: 0.72em; letter-spacing: 0.02em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; vertical-align: 0.15em; }
.card .cname2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.card .cname2 .tk { font-size: 0.62em; }
.ix-card .ix-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.feed .fname { gap: 8px; }
.feed .fname .tk { font-weight: 500; }
.feed .fwhat { display: flex; align-items: baseline; gap: 7px; }
.feed .fwhat .dot { align-self: center; }
.dr-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dr-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#divrank a { grid-template-columns: minmax(0, 1fr) auto; }
#divrank .dr-name { grid-column: 1 / -1; }
.cal-day li a { align-items: center; }
.cal-day li a .ico { width: 18px; height: 18px; border-radius: 4px; font-size: 0.5rem; }
.cal-day li a .cal-tk { font-family: var(--f-data); font-weight: 500; color: var(--muted); font-size: 0.74rem; }
.finder-list a { grid-template-columns: 26px minmax(0, 1fr) auto; }
.ficha-title { display: flex; align-items: center; gap: 16px; }
.ficha-logo { width: 56px; height: 56px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 7px; box-sizing: border-box; flex: none; display: grid; place-items: center; }
.ficha-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 1100px) { .ficha-logo { width: 68px; height: 68px; } }

/* =================== v53: identidad «Luz verde» =================== */
:root {
  --bg: #EEF3F1; --surface: #FFFFFF; --ink: #0D1F2D; --muted: #3F5361; --line: #D3DEDA;
  --accent: #0B7A3B; --accent-soft: #D9F3E4;
  --good: #0B7A3B; --good-soft: #D9F3E4; --good-fill: #12A150;
  --warn: #8F5400; --warn-soft: #FBEBCC; --warn-fill: #C77B00;
  --bad: #A82E28; --bad-soft: #F8DEDC; --bad-fill: #D2443E;
  --info: #2F5FC9; --info-soft: #E3EBFB; --info-fill: #3768D8;
  --bar-muted: #B9C8C2; --off: #D3DEDA; --cat3: #0E8582; --cat4: #8A5CC7;
  --pill: #0D1F2D; --radius: 20px; --radius-s: 14px;
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-data: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --bg: #0A1620; --surface: #112330; --ink: #E8F0EC; --muted: #A3B6BF; --line: #22394A;
    --accent: #4CD38A; --accent-soft: #123827;
    --good: #4CD38A; --good-soft: #12331F; --good-fill: #2BD47D;
    --warn: #F0B03C; --warn-soft: #3A2A0E; --warn-fill: #F0B03C;
    --bad: #F27C75; --bad-soft: #3B1C1A; --bad-fill: #F06A63;
    --info: #8DAEFF; --info-soft: #1B2A4A; --info-fill: #6D95F2;
    --bar-muted: #3A5160; --off: #2A4150; --cat3: #45C4BE; --cat4: #B793EE;
    --pill: #24394A;
    color-scheme: dark;
} }
:root[data-theme="dark"] {
    --bg: #0A1620; --surface: #112330; --ink: #E8F0EC; --muted: #A3B6BF; --line: #22394A;
    --accent: #4CD38A; --accent-soft: #123827;
    --good: #4CD38A; --good-soft: #12331F; --good-fill: #2BD47D;
    --warn: #F0B03C; --warn-soft: #3A2A0E; --warn-fill: #F0B03C;
    --bad: #F27C75; --bad-soft: #3B1C1A; --bad-fill: #F06A63;
    --info: #8DAEFF; --info-soft: #1B2A4A; --info-fill: #6D95F2;
    --bar-muted: #3A5160; --off: #2A4150; --cat3: #45C4BE; --cat4: #B793EE;
    --pill: #24394A;
    color-scheme: dark;
}
body { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }

/* Sin etiquetas en mayúsculas */
.label, .flabel, .why b, .tbl th { text-transform: none !important; letter-spacing: 0 !important; }
.label { font-family: var(--f-body); font-weight: 700; font-size: 0.86rem; }
.flabel { font-family: var(--f-body); font-weight: 700; font-size: 0.86rem; }
.tbl th { font-family: var(--f-body); font-weight: 700; font-size: 0.84rem; }
.why b { font-family: var(--f-body); font-size: 0.86rem; }

/* Cabecera y logotipo */
.masthead { background: var(--surface); }
.brand { color: var(--ink); }
.brand svg { height: 30px; width: auto; display: block; }
.lg-pill { fill: var(--pill); }
.topnav a, .nv-b { border-radius: 999px; padding-inline: 12px; }
.nv-cart, .masthead .topnav a.pf-top { background: var(--ink) !important; color: var(--surface) !important; }
.nv-b[aria-expanded="true"], .nv-b:hover, .topnav a:hover { background: var(--accent-soft); color: var(--ink); }

/* Formas: tarjetas más redondeadas, sin bordes duros */
.card, .glance a, .box, .vs-card, .versus-box, .callout, .col, .empty, .fd-card, .cm-card, .cm-plazo, .cmqz-q, .hs-door, .hc-list a, .mk-grid a { border-radius: var(--radius); }
.facts, .tbl, .disclaimer, .finder input, .mk-search input { border-radius: var(--radius-s); }
.card .mono { border-radius: var(--radius-s); }
.verdict { border-radius: 24px; padding: 22px; }
.more, button.more { border-radius: 999px; }
.tabs a { border-radius: 999px; }
.badge { border-radius: 999px; }

/* Botones y enlaces */
a { text-underline-offset: 3px; }
.mn-link, .fd-link { color: var(--ink); text-decoration-color: var(--good-fill); text-decoration-thickness: 2px; }

/* Semáforo como interruptor: el punto se coloca a la derecha (mejor), en medio (luces y sombras) o a la izquierda (peor) */
.lights { flex-direction: row; gap: 3px; padding: 5px; background: var(--surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); align-self: start; }
.lights i { width: 16px; height: 16px; background: transparent; opacity: 1; box-shadow: none; }
.lights i.on.good { background: var(--good-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good-fill) 22%, transparent); }
.lights i.on.warn { background: var(--warn-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn-fill) 22%, transparent); }
.lights i.on.bad { background: var(--bad-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad-fill) 22%, transparent); }
.lights i.on.info { background: var(--info-fill); box-shadow: 0 0 0 4px color-mix(in srgb, var(--info-fill) 22%, transparent); }
.verdict.info { background: var(--info-soft); }
.verdict.info .label { color: var(--info); }
.verdict.bad { background: var(--bad-soft); }
.verdict.bad .label { color: var(--bad); }

/* Puntos y barras del semáforo con el color de relleno */
.dot.good, .sema-strip .good { background: var(--good-fill); }
.dot.warn, .sema-strip .warn { background: var(--warn-fill); }
.dot.bad, .sema-strip .bad { background: var(--bad-fill); }
.dot.info, .sema-strip .info { background: var(--info-fill); }
.badge.info { background: var(--info-soft); color: var(--info); }

/* Portada */
.hero2 h1 { font-weight: 750; letter-spacing: -0.035em; line-height: 0.98; }
.sema { background: #0D1F2D; color: #F4F8F6; border-radius: 28px; border: 0; padding: 24px; }
.sema .sema-sub { color: #B9CAD2; }
.sema-keys a { color: #F4F8F6; }
.sema-keys a:hover .k-l { color: #7EE7AE; }
.sema-keys .k-n { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.sema .sema-strip .good { background: #2BD47D; } .sema .sema-strip .info { background: #6D95F2; }
.sema .sema-strip .warn { background: #F0B03C; } .sema .sema-strip .bad { background: #F06A63; }
.sema .dot.good { background: #2BD47D; } .sema .dot.info { background: #6D95F2; } .sema .dot.warn { background: #F0B03C; } .sema .dot.bad { background: #F06A63; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sema, :root:not([data-theme="light"]) .hs-door.main { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); } }
:root[data-theme="dark"] .sema, :root[data-theme="dark"] .hs-door.main { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sec-h { border-bottom: 0; padding-bottom: 6px; }
.sec-h h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; letter-spacing: -0.025em; }
.hs-door.main { background: #0D1F2D; color: #F4F8F6; }
.cm-risk.r1 i.on, .cm-risk.r2 i.on { background: var(--good-fill); }
.cm-risk.r3 i.on, .cm-risk.r4 i.on, .cm-risk.r5 i.on { background: var(--ink); }
.cm-bars i, .fd-dots i { border-radius: 4px; }
.fd-dots i.on { background: var(--ink); }
.news45 { border-radius: var(--radius); }
.brand svg { height: 30px; width: auto; display: block; }

.tv-offer { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.tv-offer p { color: var(--muted); font-size: 0.88rem; max-width: 72ch; }
.tv-btn { align-self: flex-start; font: 600 0.95rem var(--f-display); background: var(--accent); color: var(--surface); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.tv-btn:hover { filter: brightness(1.08); }
.tv-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tv-remember { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; color: var(--muted); }
.tv-box { height: 420px !important; }
.tv-box .tradingview-widget-container__widget { height: calc(100% - 28px); }
.tradingview-widget-copyright { font-size: 0.8rem; color: var(--muted); padding-top: 6px; }
.px-box.tv-on .px-chart-wrap { display: none; }
@media (max-width: 520px) { .tv-box { height: 360px !important; } }
.tv-quotes { height: 400px !important; } .tv-quotes .tradingview-widget-container__widget { height: 100%; }
.mk-tv { margin-top: 14px; }
.px-box.tv-only { gap: 8px; }
.tv-credit { color: var(--muted); font-size: 0.85rem; }

/* v56: páginas */

.legal { max-width: 720px; margin: 0 auto; padding-block: 36px 64px; display: flex; flex-direction: column; gap: 14px; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.6rem); letter-spacing: -0.02em; }
.legal h2 { font-size: 1.25rem; margin-top: 18px; }
.legal p, .legal li { max-width: 65ch; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }
.legal ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal ul.data { list-style: none; padding: 0; border-top: 1px solid var(--line); gap: 0; }
.legal ul.data li { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 4px 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.legal ul.data li span { color: var(--muted); font-size: 0.92rem; }
.legal mark { background: var(--warn-soft); color: var(--ink); padding: 0 3px; border-radius: 3px; }
@media (max-width: 520px) { .legal ul.data li { grid-template-columns: 1fr; } }

.page-sec .wrap { padding-block: 24px 56px; display: flex; flex-direction: column; gap: 18px; }
.page-sec .sec-h1, .page-glos h1 { font-family: var(--f-display); font-size: clamp(2rem, 6vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.page-glos .glossary-wrap { padding-block: 28px 56px; }
.nf { padding-block: 64px; display: flex; flex-direction: column; gap: 16px; }
.nf h1 { font-family: var(--f-display); font-size: clamp(2rem, 6vw, 2.6rem); }
.nf p { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
