/* =========================================================================
   Kairós · sistema de diseño
   Paleta mineral fría + índigo eléctrico. Tipos: Bricolage Grotesque (voz) e
   IBM Plex Sans (lectura y cifras tabulares).
   ========================================================================= */
:root {
  --bg: #e4e9e7;
  --bg-deep: #d6ddda;
  --surface: #f4f6f5;
  --surface-2: #ebefed;
  --ink: #0f1b20;
  --ink-2: #47585e;
  --ink-3: #5a6a70;
  --line: rgba(15, 27, 32, .11);
  --line-2: rgba(15, 27, 32, .2);
  --brand: #3d3bf3;
  --brand-ink: #ffffff;
  --brand-soft: rgba(61, 59, 243, .1);
  --up: #066b48;
  --up-soft: rgba(8, 131, 90, .12);
  --down: #b3301f;
  --down-soft: rgba(204, 58, 42, .11);
  --amber: #d9910e;
  --amber-ink: #8a5c00;
  --amber-soft: rgba(233, 161, 27, .16);
  --ph-mejora: #3d3bf3;
  --ph-liderazgo: #08835a;
  --ph-debil: #d9910e;
  --ph-rezago: #cc3a2a;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -28px rgba(15, 27, 32, .35);
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 9px;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-text: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1320px;
  --gut: clamp(16px, 3.2vw, 40px);
  --nav-h: 64px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0b1418;
  --bg-deep: #081013;
  --surface: #111e23;
  --surface-2: #16262c;
  --ink: #e2e9e6;
  --ink-2: #9aacb1;
  --ink-3: #7b9095;
  --line: rgba(226, 233, 230, .09);
  --line-2: rgba(226, 233, 230, .18);
  --brand: #8584ff;
  --brand-ink: #0b1418;
  --brand-soft: rgba(133, 132, 255, .14);
  --up: #2fc48b;
  --up-soft: rgba(47, 196, 139, .14);
  --down: #ff6a55;
  --down-soft: rgba(255, 106, 85, .13);
  --amber: #f2b33d;
  --amber-ink: #f2b33d;
  --amber-soft: rgba(242, 179, 61, .15);
  --ph-mejora: #8584ff;
  --ph-liderazgo: #2fc48b;
  --ph-debil: #f2b33d;
  --ph-rezago: #ff6a55;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 48px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-text); font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.num, td, .tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--ink-3); }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ----------------------------------------------------------------- tipos */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.05; margin: 0; font-stretch: 92%; }
.t-hero { font-size: clamp(44px, 7vw, 100px); font-weight: 700; letter-spacing: -.032em; line-height: .94; font-stretch: 82%; }
.t-1 { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.035em; font-stretch: 84%; }
.t-2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.025em; }
.t-3 { font-size: 21px; letter-spacing: -.015em; }
.t-4 { font-size: 17px; letter-spacing: -.005em; font-stretch: 100%; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin: 0; }
p { margin: 0 0 1em; max-width: 72ch; }
.small { font-size: 14px; } .xs { font-size: 12.5px; }
.bignum { font-family: var(--f-display); font-weight: 600; font-stretch: 85%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; font-stretch: 85%; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--ink-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current='page'] { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger { display: flex; align-items: center; gap: 10px; min-width: 230px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); cursor: pointer; font-size: 14.5px; text-align: left; }
.search-trigger:hover { border-color: var(--ink-3); color: var(--ink-2); }
.search-trigger kbd { margin-left: auto; }
.search-trigger svg { width: 17px; height: 17px; flex: none; }
.nav-links a { white-space: nowrap; }
kbd { font: 500 12px/1 var(--f-text); padding: 4px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status[data-state='live'] i { background: var(--up); box-shadow: 0 0 0 4px var(--up-soft); }
.status[data-state='snapshot'] i { background: var(--amber); }

@media (max-width: 1200px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; padding: 12px var(--gut) 20px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav-links a { font-size: 19px; padding: 12px 14px; }
  .nav[data-open='true'] .nav-links { display: flex; }
  .menu-btn { display: grid; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .nav .status { display: none; }
}

/* ------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: var(--bg); font-weight: 550; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.brand { background: var(--brand); color: var(--brand-ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.btn.sm { height: 34px; padding: 0 13px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 16px; height: 16px; }

.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line); font-weight: 550; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); }
.chip:hover { background: var(--surface); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip b { font-weight: 600; }

input[type='text'], input[type='search'], input[type='number'], input[type='password'], input[type='url'], select, textarea { height: 42px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); min-width: 0; }
textarea { height: auto; padding: 10px 14px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
label.field { display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
input[type='range'] { accent-color: var(--brand); width: 100%; }

/* ------------------------------------------------------------- estructura */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section.tight { padding: clamp(32px, 4vw, 56px) 0; }
.section + .section { padding-top: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--bg); }
.band-ink .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
:root[data-theme='dark'] .band-ink { background: #050c0f; color: var(--ink); border-block: 1px solid var(--line); }
:root[data-theme='dark'] .band-ink .muted { color: var(--ink-2); }
.band-ink .btn.inv { background: var(--bg); color: var(--ink); }
:root[data-theme='dark'] .band-ink .btn.inv { background: var(--ink); color: var(--bg); }
.src-card h3 { overflow-wrap: anywhere; }
.mini-clock svg { overflow: visible; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.head .lead { margin-top: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); box-shadow: var(--shadow); min-width: 0; }
.panel.flat { box-shadow: none; }
.panel h3 { margin-bottom: 4px; }
.panel .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 16px; }
.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* -------------------------------------------------------------- tablas */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; }
table.data th.r, table.data td.r { text-align: right; }
table.data th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
table.data th button:focus-visible { outline: 2px solid var(--brand); border-radius: 4px; }
table.data th[aria-sort] button { color: var(--ink); }
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data tr.link { cursor: pointer; }
.asset-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.asset-cell .tk { font-weight: 600; font-family: var(--f-display); letter-spacing: -.01em; font-size: 15.5px; }
.asset-cell .nm { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.glyph { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 650 12px/1 var(--f-display); letter-spacing: -.02em; flex: none; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-stretch: 80%; }
.glyph[data-cls='cripto'] { border-radius: 50%; }
.glyph[data-cls='metal'], .glyph[data-cls='energia'] { border-radius: 4px 14px; }
.glyph[data-cls='bono'] { border-radius: 4px; }
.glyph[data-cls='divisa'] { border-radius: 50% 6px 50% 6px; }
.glyph[data-cls='indice'] { border-radius: 10px 10px 2px 2px; }

/* -------------------------------------------------------- veredictos */
.verdict { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.verdict::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict[data-v='compra'] { background: var(--up-soft); color: var(--up); }
.verdict[data-v='acumular'] { background: color-mix(in srgb, var(--up-soft) 55%, transparent); color: var(--up); }
.verdict[data-v='esperar'] { background: var(--surface-2); color: var(--ink-2); }
.verdict[data-v='reducir'] { background: var(--amber-soft); color: var(--amber-ink); }
.verdict[data-v='salir'] { background: var(--down-soft); color: var(--down); }
.score-pill { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 8px; border-radius: 8px; font: 650 14px/1 var(--f-display); font-variant-numeric: tabular-nums; background: var(--surface-2); }
.phase { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.phase::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c, var(--ink-3)); transform: rotate(45deg); }
.phase[data-p='mejora'] { --c: var(--ph-mejora); } .phase[data-p='liderazgo'] { --c: var(--ph-liderazgo); }
.phase[data-p='debilitamiento'] { --c: var(--ph-debil); } .phase[data-p='rezago'] { --c: var(--ph-rezago); }
.delta { font-variant-numeric: tabular-nums; font-weight: 500; }
.bar-mini { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar-mini > i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }

/* -------------------------------------------------------- tooltip */
.tip { position: fixed; z-index: 60; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 10px 13px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); max-width: 280px; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.tip[data-show='true'] { opacity: 1; transform: none; }
.tip b { font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.tip .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }

/* ------------------------------------------------------- paleta de búsqueda */
.palette { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(8, 16, 19, .42); backdrop-filter: blur(5px); }
.palette[data-open='true'] { display: flex; }
.palette-box { width: min(680px, 100%); background: var(--surface); border-radius: 20px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); overflow: hidden; animation: pop .16s ease-out; }
@keyframes pop { from { transform: scale(.98) translateY(-6px); opacity: 0; } }
.palette-box input { width: 100%; height: 62px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: 19px; padding: 0 22px; outline: none; }
.palette-list { max-height: min(60vh, 520px); overflow: auto; padding: 8px; margin: 0; list-style: none; }
.palette-list li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.palette-list li[aria-selected='true'] { background: var(--surface-2); }
.palette-list .meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.palette-foot { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.palette-group { padding: 10px 12px 4px; font-size: 12.5px; color: var(--ink-3); }

/* ---------------------------------------------------------- toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 360px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); animation: pop .2s ease-out; }

/* ------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--ink-2); font-size: 14px; margin-top: 40px; }
.foot .grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .foot .grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: 15px; color: var(--ink); margin-bottom: 10px; font-stretch: 100%; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); max-width: 110ch; }

/* ---------------------------------------------------------- utilidades */
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.3s infinite linear; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
.badge.live { background: var(--up-soft); color: var(--up); }
.badge.snap { background: var(--amber-soft); color: var(--amber-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hidden { display: none !important; }
.spark { width: 100%; height: 34px; overflow: visible; }
.svgchart text { font-family: var(--f-text); fill: var(--ink-3); font-size: 11.5px; }
.svgchart .axis line, .svgchart .grid line { stroke: var(--line); }
.callout { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; color: var(--ink-2); font-size: 15px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .nav, .foot, .palette, .toasts { display: none !important; } body { background: #fff; } }

/* =================================================================== INICIO */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 0 0 22px; }
.hero h1 .l2 { display: block; color: var(--ink-3); font-weight: 300; }
.hero-search { margin-top: 30px; display: flex; align-items: center; gap: 12px; height: 60px; width: 100%; max-width: 520px; padding: 0 10px 0 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-3); font-size: 17px; cursor: text; box-shadow: var(--shadow); text-align: left; }
.hero-search svg { width: 20px; height: 20px; flex: none; }
.hero-search:hover { border-color: var(--ink-3); }
.hero-search .btn { margin-left: auto; }
.quick { margin-top: 16px; }
.stamp { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px 18px; flex-wrap: wrap; }
.stamp span { display: inline-flex; gap: 6px; align-items: center; }
.clock-wrap { position: relative; }
.clock-stage { position: relative; width: 100%; max-width: 640px; margin: 0 auto; aspect-ratio: 1; }
.clock-stage svg { width: 100%; height: 100%; overflow: visible; }
.kclock .kc-dot { cursor: pointer; transition: r .15s; }
.kclock .kc-dot:hover, .kclock .kc-dot:focus { r: 8; outline: none; }
.clock-controls { display: flex; justify-content: center; margin-bottom: 8px; }
.clock-caption { text-align: center; font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.phase-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.phase-card { padding: 22px clamp(14px, 1.6vw, 24px); border-left: 1px solid var(--line); text-decoration: none; display: block; transition: background .15s; }
.phase-card:first-child { border-left: 0; }
.phase-card:hover { background: var(--surface); }
.phase-card .n { font-size: clamp(34px, 3.6vw, 48px); display: block; margin: 6px 0 8px; }
.phase-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .phase-cards { grid-template-columns: repeat(2, 1fr); } .phase-card:nth-child(3) { border-left: 0; } .phase-card:nth-child(n+3) { border-top: 1px solid var(--line); } }

.pulse { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.pulse a { display: block; min-width: 0; overflow: hidden; padding: 18px clamp(12px, 1.4vw, 20px); border-left: 1px solid var(--line); text-decoration: none; transition: background .15s; }
.pulse a:first-child { border-left: 0; }
.pulse a:hover { background: var(--surface-2); }
.pulse .nm { font-size: 13.5px; color: var(--ink-2); display: block; }
.pulse .px { font-size: 24px; margin: 4px 0 2px; display: block; }
.pulse .ch { font-size: 13.5px; display: flex; gap: 10px; }
.pulse .spark { height: 30px; margin-top: 8px; }
@media (max-width: 1000px) { .pulse { grid-template-columns: repeat(3, 1fr); } .pulse a:nth-child(4) { border-left: 0; } .pulse a:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .pulse { grid-template-columns: repeat(2, 1fr); } .pulse a:nth-child(odd) { border-left: 0; } .pulse a:nth-child(4) { border-left: 1px solid var(--line); } .pulse a:nth-child(n+3) { border-top: 1px solid var(--line); } }

.balance { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
@media (max-width: 820px) { .balance { grid-template-columns: 1fr; } }
.balance h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dv-row { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr 72px; align-items: center; gap: 12px; padding: 7px 4px; text-decoration: none; border-radius: 8px; }
.dv-row:hover { background: var(--surface); }
.dv-label { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.dv-label b { font-family: var(--f-display); font-weight: 600; font-size: 15.5px; }
.dv-label span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-track { height: 12px; position: relative; }
.dv-bar { position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 3px; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.dv-bar.pos { left: 0; background: var(--up); }
.dv-bar.neg { left: 0; background: var(--down); }
@keyframes grow { from { transform: scaleX(0); } }
.dv-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }

.signals { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 820px) { .signals { grid-template-columns: 1fr; } }
.sig-list { list-style: none; margin: 0; padding: 0; }
.sig-list li { border-top: 1px solid var(--line); }
.sig-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 2px; text-decoration: none; }
.sig-list a:hover .tk { text-decoration: underline; }
.sig-list .what { font-size: 13.5px; color: var(--ink-2); }
.sig-list .tk { font-family: var(--f-display); font-weight: 600; }

.sectors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.sector { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.sector:hover .nm { text-decoration: underline; }
.sector .nm { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.sector .spark { grid-column: 1 / -1; height: 26px; }

.macro-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.macro-strip > div { padding: 22px clamp(12px, 2vw, 26px); border-left: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); }
.macro-strip > div:first-child { border-left: 0; padding-left: 0; }
.macro-strip .bignum { font-size: clamp(34px, 3.4vw, 46px); display: block; margin: 6px 0; }
@media (max-width: 860px) { .macro-strip { grid-template-columns: 1fr 1fr; } .macro-strip > div:nth-child(3) { border-left: 0; padding-left: 0; } }

.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 820px) { .cta-split { grid-template-columns: 1fr; } }
.cta { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta.ink { background: var(--brand); color: #fff; border-color: transparent; }
.cta.ink .muted { color: rgba(255, 255, 255, .8); }
.cta.ink .btn { background: #fff; color: #1b1a8f; }

/* ============================================================ TREEMAP */
.treemap { position: relative; width: 100%; border-radius: var(--r-md); overflow: hidden; background: var(--bg-deep); }
.tm-group { position: absolute; border: 1px solid var(--bg); box-sizing: border-box; }
.tm-gname { position: absolute; left: 6px; top: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; max-width: calc(100% - 10px); text-overflow: ellipsis; }
.tm-cell { position: absolute; display: flex; flex-direction: column; justify-content: center; align-items: center; text-decoration: none; color: var(--ink); overflow: hidden; border-radius: 3px; font-size: 12px; line-height: 1.15; transition: filter .12s; }
.tm-cell:hover { filter: brightness(1.12) saturate(1.1); z-index: 2; outline: 2px solid var(--ink); }
.tm-cell b { font-family: var(--f-display); font-size: 13.5px; font-weight: 650; }

.kclock text { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }

/* ==================================================================== ACTIVO */
.asset-head { padding: 28px 0 22px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ah-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; }
@media (max-width: 860px) { .ah-grid { grid-template-columns: 1fr; } }
.ah-title { display: flex; gap: 18px; align-items: center; }
.ah-title .glyph { width: 60px; height: 60px; font-size: 17px; border-radius: 16px; }
.ah-title .glyph[data-cls='cripto'] { border-radius: 50%; }
.ah-title h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.035em; font-stretch: 84%; }
.ah-title .nm { color: var(--ink-2); font-size: 17px; margin-top: 4px; }
.ah-price { text-align: right; }
@media (max-width: 860px) { .ah-price { text-align: left; } }
.ah-price .bignum { font-size: clamp(40px, 5vw, 64px); }
.ah-price .ch { font-size: 17px; display: flex; gap: 12px; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; }
@media (max-width: 860px) { .ah-price .ch { justify-content: flex-start; } }
.ah-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.btn[aria-pressed='true'] svg { fill: currentColor; }

.verdict-grid { display: grid; grid-template-columns: 1.25fr 1fr 0.9fr; gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 1100px) { .verdict-grid { grid-template-columns: 1fr 1fr; } .verdict-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .verdict-grid { grid-template-columns: 1fr; } }
.vd-top { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center; }
@media (max-width: 560px) { .vd-top { grid-template-columns: 1fr; } .vd-score { max-width: 220px; margin: 0 auto; } }
.vd-score { position: relative; }
.vd-score .bignum { display: block; text-align: center; font-size: 46px; margin-top: 4px; }
.vd-score .of { display: block; text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.vd-label { font-family: var(--f-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -.025em; line-height: 1.05; font-stretch: 88%; }
.vd-label[data-v='compra'], .vd-label[data-v='acumular'] { color: var(--up); }
.vd-label[data-v='reducir'] { color: var(--amber-ink); }
.vd-label[data-v='salir'] { color: var(--down); }
.narrative { font-size: 15.5px; color: var(--ink-2); margin: 18px 0 0; line-height: 1.6; }
.narrative b { color: var(--ink); font-weight: 550; }
.plan-ladder { position: relative; margin: 8px 0 4px; }
.plan-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.plan-row:last-child { border-bottom: 0; }
.plan-row .lbl { display: flex; align-items: center; gap: 9px; color: var(--ink-2); }
.plan-row .lbl i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.plan-row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-row .dist { font-size: 13px; color: var(--ink-3); min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.plan-row.now { border-bottom-style: solid; }
.mini-clock { max-width: 260px; margin: 0 auto; aspect-ratio: 1; }

.chart-panel { padding: 0; overflow: hidden; }
.chart-tools { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chart-main { height: clamp(360px, 52vh, 560px); position: relative; }
.chart-legend { position: absolute; left: 14px; top: 10px; z-index: 3; font-size: 13px; color: var(--ink-2); pointer-events: none; display: flex; gap: 14px; flex-wrap: wrap; }
.chart-legend b { color: var(--ink); font-weight: 600; }
.tv-frame { height: clamp(420px, 60vh, 620px); }
.tv-frame iframe { width: 100%; height: 100%; border: 0; }
.toggles { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.toggle i { width: 10px; height: 3px; border-radius: 2px; background: var(--c, var(--ink-3)); }
.toggle[aria-pressed='true'] { color: var(--ink); background: var(--surface-2); border-color: var(--ink-3); }

.comp-list { display: grid; gap: 16px; }
.comp { display: grid; grid-template-columns: 150px 1fr 48px; gap: 14px; align-items: center; }
@media (max-width: 560px) { .comp { grid-template-columns: 110px 1fr 40px; } }
.comp .name { font-weight: 550; font-size: 15px; }
.comp .why { grid-column: 2 / -1; font-size: 13.5px; color: var(--ink-2); margin-top: -8px; }
.comp-track { position: relative; height: 10px; background: var(--surface-2); border-radius: 6px; }
.comp-track::after { content: ''; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: var(--ink-3); }
.comp-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; }
.comp .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

table.data tr.sel { background: var(--brand-soft); }
table.data tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.sig-state { font-size: 13px; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.sig-state[data-s='entrada'], .sig-state[data-s='comprado'] { background: var(--up-soft); color: var(--up); }
.sig-state[data-s='salida'] { background: var(--down-soft); color: var(--down); }
.scen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 700px) { .scen { grid-template-columns: repeat(2, 1fr); } }
.scen > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.scen > div:first-child { border-left: 0; }
.scen h4 { font-size: 14px; color: var(--ink-2); font-weight: 500; font-family: var(--f-text); margin-bottom: 8px; letter-spacing: 0; }
.scen .r { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.scen .p { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.metric { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); }
.metric .k { font-size: 13px; color: var(--ink-2); display: block; }
.metric .v { font-family: var(--f-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; display: block; margin: 4px 0 2px; font-variant-numeric: tabular-nums; font-stretch: 90%; }
.metric .c { font-size: 12.5px; color: var(--ink-3); }
.range52 { position: relative; height: 8px; border-radius: 5px; background: linear-gradient(90deg, var(--down-soft), var(--surface-2), var(--up-soft)); margin: 22px 0 8px; }
.range52 i { position: absolute; top: -6px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-50%); }
.peers { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.peer { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; padding: 12px; border-radius: var(--r-md); border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.peer:hover { border-color: var(--ink-3); }
.peer .spark { grid-column: 1 / -1; height: 26px; }
.src-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.src-list li { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; }
.tabs-row { display: flex; gap: 6px; align-items: center; }
.anchor-nav { position: sticky; top: var(--nav-h); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.anchor-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.anchor-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.anchor-nav a:hover, .anchor-nav a.on { background: var(--surface); color: var(--ink); }
.anchor-target { scroll-margin-top: calc(var(--nav-h) + 64px); }

/* ================================================================== RANKING */
.race { position: relative; }
.race-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.race-date { font-size: clamp(40px, 5vw, 72px); line-height: .9; }
.race-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 40px); }
@media (max-width: 820px) { .race-cols { grid-template-columns: 1fr; } }
.race-col h3 { margin-bottom: 10px; }
.race-list { position: relative; }
.race-item { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: grid; grid-template-columns: 26px 92px 1fr 70px; gap: 10px; align-items: center; transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .2s; text-decoration: none; background: var(--surface); }
.race-item .rk { font-size: 12.5px; color: var(--ink-3); text-align: right; font-variant-numeric: tabular-nums; }
.race-item .lb { font-family: var(--f-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-item .tr { height: 22px; position: relative; }
.race-item .br { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; transition: width .34s cubic-bezier(.2, .8, .2, 1); }
.race-item .vl { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.race-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.race-ctrl input[type='range'] { flex: 1; }
.play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; cursor: pointer; flex: none; }
.play svg { width: 18px; height: 18px; }
.ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 6px; padding-left: 60px; }
.insight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
@media (max-width: 980px) { .insight { grid-template-columns: 1fr; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li a { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 14.5px; }
.mini-list li a:hover b { text-decoration: underline; }
.mini-list b { font-family: var(--f-display); font-weight: 600; }

/* ============================================================== LABORATORIO */
.lab { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(14px, 1.6vw, 22px); align-items: start; }
@media (max-width: 980px) { .lab { grid-template-columns: 1fr; } }
.lab-side { position: sticky; top: calc(var(--nav-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 980px) { .lab-side { position: static; } }
.picker { position: relative; }
.picker input { width: 100%; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); max-height: 300px; overflow: auto; }
.picker-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; }
.picker-list li:hover, .picker-list li[aria-selected='true'] { background: var(--surface-2); }
.param { display: grid; gap: 4px; }
.param .spread { font-size: 14px; }
.param output { font-weight: 600; font-variant-numeric: tabular-nums; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi .k { font-size: 13px; color: var(--ink-2); display: block; }
.kpi .v { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; font-stretch: 90%; }
.kpi .c { font-size: 12.5px; color: var(--ink-3); }
.heat { display: grid; gap: 2px; font-size: 11.5px; }
.heat button { overflow: hidden; white-space: nowrap; border: 0; border-radius: 4px; padding: 0; height: 34px; cursor: pointer; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 11.5px; }
.heat button[aria-pressed='true'] { outline: 2px solid var(--ink); outline-offset: 1px; position: relative; z-index: 1; }
.heat .hl { display: grid; place-items: center; color: var(--ink-3); font-size: 11.5px; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); text-align: center; transition: border-color .15s, background .15s; }
.drop[data-over='true'] { border-color: var(--brand); background: var(--brand-soft); }
.drop svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--ink-3); }
.fmt-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }

/* ================================================================ COMPARAR */
.cmp-slots { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.slot { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.slot i { width: 12px; height: 12px; border-radius: 50%; }
.slot b { font-family: var(--f-display); }
.slot button { border: 0; background: var(--surface-2); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.corr { display: grid; gap: 3px; }
.corr span { display: grid; place-items: center; height: 54px; border-radius: 6px; font-variant-numeric: tabular-nums; font-size: 14px; }
.corr .h { height: auto; padding: 4px; font-weight: 600; font-family: var(--f-display); background: none; }

/* =================================================================== MACRO */
.rates-list { display: grid; gap: 0; }
.rate-row { display: grid; grid-template-columns: minmax(140px, 1.3fr) 2fr 64px 90px; gap: 14px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rate-row .tr { height: 14px; background: var(--surface-2); border-radius: 4px; position: relative; overflow: hidden; }
.rate-row .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand); border-radius: 4px; }
.rate-row .vv { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.rate-row .ch { text-align: right; font-size: 13px; }
@media (max-width: 600px) { .rate-row { grid-template-columns: 1fr 1fr 56px; } .rate-row .ch { display: none; } }

/* ================================================================== FUENTES */
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.src-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.src-card h3 { font-size: 19px; }
.src-card .use { font-size: 14px; color: var(--ink-2); margin: 0; }
.src-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13.5px; }
.src-card dt { color: var(--ink-3); } .src-card dd { margin: 0; }
.src-card .foot-row { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.method { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 10px 40px; }
@media (max-width: 800px) { .method { grid-template-columns: 1fr; } }
.method h3 { font-size: 19px; }
.method p { color: var(--ink-2); font-size: 15.5px; }
.formula { max-width: 100%; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px; background: var(--surface-2); padding: 10px 14px; border-radius: 10px; display: block; margin: 6px 0 14px; overflow-x: auto; white-space: pre; color: var(--ink); }
.conn-log { font-size: 13px; max-height: 180px; overflow: auto; list-style: none; margin: 0; padding: 0; }
.conn-log li { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; }

@media (max-width: 1100px) { #cmp-low, .grid[style*="1.7fr"], .grid[style*="1.6fr"], .grid[style*="1.5fr"], .grid[style*="1.3fr"], .grid[style*="1.2fr"] { grid-template-columns: 1fr !important; } }
#cmp-t td, #cmp-t th { padding-left: 8px; padding-right: 8px; }
#cmp-t .verdict { font-size: 12px; padding: 3px 8px; }
.method > * { min-width: 0; }
@media (max-width: 560px) { .btn { white-space: normal; height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; line-height: 1.25; } }

/* ------------------------------------------------------------ radar diario */
.radar-level { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.radar-level i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.radar-level[data-nivel='critica'] { background: var(--down-soft); color: var(--down); }
.radar-level[data-nivel='preventiva'] { background: var(--amber-soft); color: var(--amber-ink); }
.radar-level[data-nivel='estandar'] { background: var(--up-soft); color: var(--up); }
.radar-meta { margin: 12px 0 0; max-width: 70ch; }
.radar-stale { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--amber-soft); color: var(--amber-ink); font-size: 14.5px; }
.radar-state { border-left: 4px solid var(--line-2); }
.radar-state[data-nivel='critica'] { border-left-color: var(--down); }
.radar-state[data-nivel='preventiva'] { border-left-color: var(--amber); }
.radar-state[data-nivel='estandar'] { border-left-color: var(--up); }
.radar-state h2 { margin: 14px 0 8px; max-width: 30ch; }
.radar-state .lead { max-width: 75ch; }
.radar-count { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 20px 0 0; }
.radar-count div { display: flex; flex-direction: column-reverse; }
.radar-count dt { font-size: 13px; color: var(--ink-3); }
.radar-count dd { margin: 0; font-family: var(--f-display); font-size: 28px; font-weight: 650; font-stretch: 85%; font-variant-numeric: tabular-nums; }
.radar-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.radar-alert { border-top: 3px solid var(--line-2); }
.radar-alert[data-nivel='critica'] { border-top-color: var(--down); }
.radar-alert[data-nivel='preventiva'] { border-top-color: var(--amber); }
.radar-alert h3 { margin: 12px 0 10px; }
.radar-kv { margin: 0; display: grid; gap: 4px; }
.radar-kv dt { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 8px; }
.radar-kv dd { margin: 0; font-size: 15px; line-height: 1.55; }
.radar-sub { margin: 16px 0 8px; font-weight: 600; }
.radar-calm { grid-column: 1 / -1; margin: 0; font-weight: 600; color: var(--up); background: var(--up-soft); border-color: transparent; }
.radar-assets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.radar-asset { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink); text-decoration: none; }
a.radar-asset:hover { background: var(--surface-2); border-color: var(--ink-3); }
.radar-dir { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.radar-dir[data-dir='alcista'] { background: var(--up-soft); color: var(--up); }
.radar-dir[data-dir='bajista'] { background: var(--down-soft); color: var(--down); }
.radar-dir[data-dir='volatil'] { background: var(--amber-soft); color: var(--amber-ink); }
.radar-src { margin: 14px 0 0; }
.radar-src a { color: var(--ink-2); }
.radar-text { margin: 8px 0 0; line-height: 1.6; color: var(--ink-2); }
.radar-agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.radar-event { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.radar-event.past { opacity: .62; }
.radar-when { font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.radar-what h3 { margin: 0 0 6px; }
.radar-what p { margin: 0 0 8px; }
.radar-scen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 4px; }
.radar-scen > div { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.radar-scen p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.radar-mon { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.radar-mon h3 { margin: 0 0 6px; }
.radar-mon p { margin: 0; }
.radar-home { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.radar-home-state { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.radar-home-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.radar-home-list a { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm); color: inherit; text-decoration: none; }
.radar-home-list a:hover { background: var(--surface-2); }
.radar-home-list a > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.radar-home-list .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.radar-dotlvl { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ink-3); }
.radar-home-list li[data-nivel='critica'] .radar-dotlvl { background: var(--down); }
.radar-home-list li[data-nivel='preventiva'] .radar-dotlvl { background: var(--amber); }
.radar-calm-li { color: var(--up); }
.radar-home-next { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 1px solid var(--line); }
.radar-home-next:empty { display: none; }
@media (max-width: 1000px) { .radar-home { grid-template-columns: 1fr; } .radar-home-next { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } .radar-mon { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .radar-alerts { grid-template-columns: 1fr; } .radar-event { grid-template-columns: 1fr; gap: 8px; } .radar-when { flex-direction: row; align-items: center; } }
@media (max-width: 560px) { .radar-scen { grid-template-columns: 1fr; } }
@media print { .radar-alert, .radar-scen > div { break-inside: avoid; } }
