/* Globo de inteligencia comercial — HUD premium sobre los tokens GeaIQ.
   Reusa las variables :root de card-indicador.css (cargado antes). */

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; height: 100%; overflow: hidden;
    background: var(--gea-ink, #05070B);
    font-family: 'Inter', sans-serif; color: var(--t-primary, #E6EAF1);
}
#globe { position: fixed; inset: 0; z-index: 0; }
#globe canvas { display: block; }

/* ── Capa HUD (paneles flotantes con glassmorphism) ───────────────────────── */
.hud {
    position: fixed; z-index: 10;
    background: rgb(10 14 20 / 60%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--gea-line, rgba(255,255,255,0.06));
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}
/* ── Accordion de lentes (panel izquierdo) ────────────────────────────────── */
.lp-accordion { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.lp-acc-tab { display: flex; flex-direction: column; }
.lp-acc-tab.active { flex: 1; min-height: 0; }
.lp-acc-hd { display: flex; align-items: center; }
.lp-acc-item.active .lp-acc-hd { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; margin-bottom: 2px; }
.lp-acc-btn {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 9px 2px; border: none; cursor: pointer;
    background: transparent; color: var(--t-secondary, #C6CBD4);
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    text-align: left; transition: color 0.15s;
}
.lp-acc-btn .material-symbols-outlined { font-size: 17px; flex-shrink: 0; }
.lp-acc-tab:not(.active) .lp-acc-hd:hover .lp-acc-btn { color: var(--t-primary, #E6EAF1); }
.lp-acc-tab.active .lp-acc-btn { color: var(--kpi-green, #21D959); cursor: default; }
.lp-acc-body { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; padding: 6px 0 2px; padding-right: 4px; }
.lp-acc-body::-webkit-scrollbar { width: 6px; }
.lp-acc-body::-webkit-scrollbar-track { background: transparent; }
.lp-acc-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }

.lp-scroll-body { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; padding-right: 4px; }
.lp-scroll-body::-webkit-scrollbar { width: 6px; }
.lp-scroll-body::-webkit-scrollbar-track { background: transparent; }
.lp-scroll-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.mc-scroll-body { overflow-y: auto; overflow-x: hidden; flex: 1; min-height: 0; padding-right: 4px; }
.mc-scroll-body::-webkit-scrollbar { width: 6px; }
.mc-scroll-body::-webkit-scrollbar-track { background: transparent; }
.mc-scroll-body::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.help-card::-webkit-scrollbar { width: 6px; }
.help-card::-webkit-scrollbar-track { background: transparent; }
.help-card::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
.hud-tl { top: 22px; left: 22px; padding: 16px 20px; }
.hud-bc { bottom: 22px; left: 50%; transform: translateX(-50%); padding: 6px; }
.hud-tr { top: 22px; right: 22px; padding: 12px 14px; }
.hud-br { bottom: 22px; right: 22px; width: 320px; max-height: 56vh; padding: 16px 18px; overflow: hidden; display: flex; flex-direction: column; }

/* ── Título / leyenda ─────────────────────────────────────────────────────── */
.g-title {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 20px;
    letter-spacing: -0.02em; line-height: 1;
}
.g-title b { color: var(--gea-celeste, #4FC3F7); font-weight: 700; }
.g-sub { font-size: 11px; color: var(--t-muted, #98A2B3); margin-top: 6px; max-width: 280px; line-height: 1.5; }
.g-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 10.5px; color: var(--t-muted, #98A2B3); }
.g-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg-dot { width: 9px; height: 9px; border-radius: 3px; }
.lg-ref { background: var(--kpi-green, #21D959); }
.lg-esp {
    color: var(--kpi-yellow, #FFD83D); font-weight: 800; font-size: 8px; text-transform: uppercase;
    background: rgba(255,216,61,0.12); border: 1px solid rgba(255,216,61,0.30);
    border-radius: 4px; padding: 1px 4px;
}

/* ── Selector de lente ────────────────────────────────────────────────────── */
.lens-tabs { display: flex; gap: 4px; }
.lens-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border: none; border-radius: 11px; cursor: pointer;
    background: transparent; color: var(--t-secondary, #C6CBD4);
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
    transition: background 0.18s, color 0.18s;
}
.lens-tab .material-symbols-outlined { font-size: 17px; }
.lens-tab:hover { background: rgba(255,255,255,0.05); color: var(--t-primary, #E6EAF1); }
.lens-tab.active { background: rgba(33,217,89,0.14); color: var(--kpi-green, #21D959); }

/* ── Controles ────────────────────────────────────────────────────────────── */
.controls { display: flex; align-items: center; gap: 8px; }
.ac { position: relative; }
.controls input {
    padding: 8px 10px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 9px;
    color: var(--t-primary, #E6EAF1); font-family: 'Inter', sans-serif;
    font-size: 12px; outline: none; transition: border-color 0.15s;
}
#inp-country { width: 150px; }
#inp-product { width: 180px; }
#inp-year { width: 70px; }
.controls input:focus { border-color: var(--gea-turquesa, #14E0C4); }
.ac-dd {
    position: absolute; top: calc(100% + 5px); left: 0; width: 300px;
    background: #141d29; border: 1px solid rgba(255,255,255,0.12);
    border-radius: 9px; z-index: 50; max-height: 280px; overflow-y: auto;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7); display: none;
}
.ac-dd.open { display: block; }
.dd-item { padding: 8px 11px; cursor: pointer; font-size: 12px; display: flex; gap: 8px; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,0.04); }
.dd-item:last-child { border-bottom: none; }
.dd-item:hover, .dd-item.hi { background: rgba(20,224,196,0.10); }
.dd-sym { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--gea-turquesa, #14E0C4); flex-shrink: 0; }
.dd-name { color: var(--t-secondary, #C6CBD4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-msg { padding: 9px 11px; font-size: 12px; color: var(--t-muted, #98A2B3); font-style: italic; }
.apply-btn {
    padding: 8px 16px; background: var(--gea-turquesa, #14E0C4); color: #0B1018;
    font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 700;
    border: none; border-radius: 9px; cursor: pointer; transition: opacity 0.15s; height: 34px;
}
.apply-btn:hover { opacity: 0.85; }
.apply-btn:disabled { opacity: 0.5; cursor: wait; }
.share-btn {
    height: 34px; width: 34px; flex-shrink: 0; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 9px; color: var(--t-secondary, #C6CBD4);
    font-size: 15px; cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.share-btn:hover { color: var(--gea-turquesa, #14E0C4); border-color: rgba(20,224,196,0.4); background: rgba(20,224,196,0.08); }

/* Toast (confirmación de "enlace copiado") */
.toast {
    position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(8px); z-index: 40;
    background: rgba(10,14,20,0.95); border: 1px solid var(--gea-line, rgba(255,255,255,0.06));
    color: var(--t-primary, #E6EAF1); font-size: 12px; padding: 9px 16px; border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6); opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Panel de detalle de la lente ─────────────────────────────────────────── */
.lp-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.lp-head .material-symbols-outlined { font-size: 20px; color: var(--kpi-green, #21D959); }
.lp-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; }
.lp-sub { font-size: 10.5px; color: var(--t-muted, #98A2B3); margin-bottom: 10px; line-height: 1.5; }
.lp-legend { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.lp-legend .lg-i { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--t-muted, #98A2B3); }
.lp-legend .lg-i i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.lp-kpi { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.lp-kpi-val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 26px; letter-spacing: -0.03em; }
.lp-kpi-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--t-muted, #98A2B3); }
.chip { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 8px; border-radius: 20px; }
.chip-alto { background: rgba(33,217,89,0.14); color: var(--kpi-green, #21D959); }
.chip-medio { background: rgba(255,216,61,0.14); color: var(--kpi-yellow, #FFD83D); }
.chip-bajo { background: rgba(232,72,85,0.14); color: var(--kpi-red, #E84855); }

.lp-row {
    display: flex; align-items: center; gap: 8px; padding: 6px 4px;
    border-radius: 7px; cursor: pointer; transition: background 0.12s;
}
.lp-row[data-code] { cursor: pointer; }
.lp-row:hover { background: rgba(255,255,255,0.07); }
.lp-row[data-code]:hover { box-shadow: inset 2px 0 0 var(--kpi-green, #21D959); }
.lp-row.is-ref { background: rgba(33,217,89,0.08); }
.lp-row.is-ref .lp-name { color: var(--kpi-green, #21D959); }
.lp-row.pinned { background: rgba(33,217,89,0.12); box-shadow: inset 2px 0 0 var(--kpi-green, #21D959); }
.lp-rank { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.30); min-width: 18px; text-align: right; }
.lp-name { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-name .src-mirror {
    font-size: 8px; font-weight: 800; text-transform: uppercase; color: var(--kpi-yellow, #FFD83D);
    background: rgba(255,216,61,0.12); border: 1px solid rgba(255,216,61,0.30);
    border-radius: 4px; padding: 1px 4px; margin-left: 5px; vertical-align: middle;
}
.lp-val { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; }
.lp-meta { font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; color: var(--gea-celeste, #4FC3F7); min-width: 56px; text-align: right; }
.lp-empty { color: var(--t-muted, #98A2B3); font-size: 12px; font-style: italic; padding: 10px 0; }

/* ── Estado / errores ─────────────────────────────────────────────────────── */
.g-status {
    position: fixed; left: 50%; top: 52%; transform: translate(-50%,-50%);
    z-index: 20; color: var(--t-muted, #98A2B3); font-size: 13px; text-align: center;
    background: rgba(10,14,20,0.7); padding: 16px 22px; border-radius: 12px;
    border: 1px solid var(--gea-line, rgba(255,255,255,0.06)); display: none;
}
.g-status.show { display: block; }

/* Tooltip nativo de Globe.gl re-skineado */
.scene-tooltip {
    font-family: 'Inter', sans-serif !important; font-size: 11.5px !important;
    background: rgba(10,14,20,0.95) !important; border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 9px !important; padding: 8px 11px !important; color: var(--t-primary, #E6EAF1) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.6) !important; backdrop-filter: blur(6px);
}
.tt-t { font-weight: 700; color: var(--gea-celeste, #4FC3F7); margin-bottom: 3px; }
.tt-b { font-size: 11px; color: rgba(255,255,255,0.8); line-height: 1.5; }

/* ── Desplegables nativos <select> (ventana temporal, nivel CIIU) ──────────────
   Alinea los <select> con el resto de los controles GeaIQ (mismo alto, radio, borde
   y foco turquesa que los inputs). Sin esto renderizan con el chrome nativo del SO. */
.controls select {
    height: 34px; padding: 0 30px 0 11px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 9px;
    color: var(--t-primary, #E6EAF1); font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 500; cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none; color-scheme: dark;
    transition: border-color 0.15s, background 0.15s;
    /* Flecha ▾ dibujada como fondo (el chevron nativo desaparece con appearance:none). */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2398A2B3' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
}
.controls select:hover { border-color: rgba(20,224,196,0.35); }
.controls select:focus { border-color: var(--gea-turquesa, #14E0C4); background: rgba(20,224,196,0.06); }
/* El popup del <select> hereda el blanco del SO: forzar la paleta del sitio. */
.controls select option { background: #0c1422; color: var(--t-secondary, #C6CBD4); }

/* ── Línea de tiempo (scrubber temporal) ───────────────────────────────────────
   Navega los años de la ventana cargada (0 llamadas a la red). Estilo GeaIQ: pista
   fina, thumb verde con halo, ticks monoespaciados y año activo destacado. */
.scrubber {
    bottom: 80px; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 14px; padding: 10px 18px;
}
.scrub-play {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(33,217,89,0.14); border: 1px solid rgba(33,217,89,0.35);
    color: var(--kpi-green, #21D959); font-size: 12px; cursor: pointer; line-height: 1;
    transition: background 0.15s, transform 0.1s;
}
.scrub-play:hover { background: rgba(33,217,89,0.24); }
.scrub-play:active { transform: scale(0.92); }
.scrub-play.playing { background: rgba(33,217,89,0.28); }
.scrub-track { position: relative; width: 240px; }
.scrub-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: rgba(255,255,255,0.16); border-radius: 3px; outline: none; cursor: pointer; margin: 0;
}
.scrub-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: var(--kpi-green, #21D959); border: 2px solid var(--gea-ink, #05070B); cursor: grab;
    box-shadow: 0 0 0 1px rgba(33,217,89,0.5), 0 0 10px rgba(33,217,89,0.6);
}
.scrub-range::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%; background: var(--kpi-green, #21D959);
    border: 2px solid var(--gea-ink, #05070B); cursor: grab; box-shadow: 0 0 10px rgba(33,217,89,0.6);
}
.scrub-ticks {
    display: flex; justify-content: space-between; margin-top: 5px;
    font-family: 'Space Grotesk', monospace; font-size: 9px; color: var(--t-faint, #6B7280);
}
.scrub-tick { transition: color 0.15s; }
.scrub-tick.on { color: var(--kpi-green, #21D959); font-weight: 700; }
.scrub-tick.prelim { color: rgba(255,122,41,0.55); }
.scrub-year {
    flex-shrink: 0; min-width: 58px; text-align: right;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px;
    color: var(--t-primary, #E6EAF1); letter-spacing: -0.02em;
}

/* ── Brushing inverso + foco (fila resaltada desde el mapa) ─────────────────── */
.lp-row.brush { background: rgba(79,195,247,0.14); box-shadow: inset 2px 0 0 var(--gea-celeste, #4FC3F7); }
.lp-row.focus-rival { background: rgba(255,216,61,0.14); box-shadow: inset 2px 0 0 var(--kpi-yellow, #FFD83D); }

/* ── Banner de foco (Competidores / Oportunidades) ────────────────────────── */
.lp-focus {
    display: flex; align-items: center; gap: 7px; margin: 8px 0 6px;
    padding: 7px 9px; border-radius: 8px;
    background: rgba(255,122,41,0.10); border: 1px solid rgba(255,122,41,0.28);
    font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--t-primary, #E6EAF1);
}
.lp-focus .material-symbols-outlined { font-size: 16px; color: var(--gea-naranja, #FF7A29); }
.lp-focus b { font-weight: 700; }
.lp-focus-x {
    margin-left: auto; flex-shrink: 0; width: 18px; height: 18px;
    border: none; border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,0.10); color: var(--t-muted, #98A2B3); transition: background 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.lp-focus-x .material-symbols-outlined { font-size: 14px; color: var(--t-muted, #98A2B3); }
.lp-focus-x:hover { background: rgba(255,122,41,0.35); }
.lp-hint {
    margin: 7px 0 5px; font-family: 'Inter', sans-serif; font-size: 10.5px;
    color: var(--t-faint, #6B7280); font-style: italic;
}
/* Popover de destinos liderados (KPI de Competidores). */
.lp-kpi-pop { margin: 6px 0 4px; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.lp-pop-h { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--t-faint, #6B7280); margin-bottom: 4px; }
.lp-pop-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; padding: 1px 0; color: var(--t-secondary, #C6CBD4); }
.lp-pop-row b { font-family: 'Space Grotesk', sans-serif; color: var(--kpi-green, #21D959); }
.lp-pop-agg { font-style: normal; font-size: 8.5px; color: var(--t-faint, #6B7280); }

/* ── Botón de ayuda (?) en el head del panel ──────────────────────────────── */
.lp-help-btn {
    margin-left: auto; flex-shrink: 0; width: 20px; height: 20px;
    border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; cursor: pointer;
    background: rgba(255,255,255,0.04); color: var(--t-muted, #98A2B3);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lp-help-btn .material-symbols-outlined { font-size: 15px; color: var(--t-muted, #98A2B3); }
.lp-help-btn:hover { background: rgba(79,195,247,0.2); color: var(--gea-celeste, #4FC3F7); border-color: rgba(79,195,247,0.5); }

/* ── Card de ayuda (overlay por lente) ────────────────────────────────────── */
.help-overlay {
    position: fixed; inset: 0; z-index: 60; display: none;
    align-items: center; justify-content: center;
    background: rgba(5,7,11,0.7); backdrop-filter: blur(4px);
}
.help-overlay.show { display: flex; animation: helpFade 0.18s ease; }
@keyframes helpFade { from { opacity: 0; } to { opacity: 1; } }
.help-card {
    position: relative; max-width: 440px; width: calc(100% - 48px); max-height: 80vh; overflow-y: auto;
    padding: 22px 24px; border-radius: 16px;
    background: var(--gea-panel, rgba(15,20,28,0.97)); border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    font-family: 'Inter', sans-serif; color: var(--t-secondary, #C6CBD4);
}
.help-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.help-head .material-symbols-outlined { font-size: 26px; color: var(--gea-celeste, #4FC3F7); }
.help-head h2 {
    margin: 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px;
    color: var(--t-primary, #E6EAF1); letter-spacing: -0.01em;
}
.help-legend { margin-bottom: 14px; }
.help-body { font-size: 13px; line-height: 1.55; }
.help-body p { margin: 0 0 10px; }
.help-body ul { margin: 0 0 10px; padding-left: 18px; }
.help-body li { margin-bottom: 4px; }
.help-body b { color: var(--t-primary, #E6EAF1); }
.help-x {
    position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; line-height: 22px;
    border: none; border-radius: 50%; cursor: pointer; font-size: 18px;
    background: rgba(255,255,255,0.08); color: var(--t-primary, #E6EAF1); transition: background 0.15s;
}
.help-x:hover { background: rgba(255,255,255,0.18); }

/* ── Ficha del mercado / país enfocado (Competidores + Oportunidades) ──────────
   La card que aparece a la izquierda al clickear un país en el mapa 2D: título,
   KPIs, sparkline de la serie y ranking con barras. Estilo GeaIQ (verde referencia,
   celeste otros, naranja foco). */
.market-card { animation: mcIn 0.22s ease; }
@keyframes mcIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.mc-head .material-symbols-outlined { font-size: 20px; color: var(--gea-naranja, #FF7A29); }
.mc-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
    color: var(--t-primary, #E6EAF1); letter-spacing: -0.01em; flex: 1;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-x { flex-shrink: 0; width: 22px; height: 22px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: var(--t-muted, #98A2B3); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s; }
.mc-x .material-symbols-outlined { font-size: 16px; color: var(--t-muted, #98A2B3); }
.mc-x:hover { background: rgba(255,122,41,0.32); }
.mc-sub { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--t-faint, #6B7280); margin-bottom: 9px; }
.mc-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 9px; }
.mc-kpi { background: rgba(255,255,255,0.04); border-radius: 8px; padding: 6px 8px; }
.mc-kpi-val { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
    color: var(--t-primary, #E6EAF1); display: block; line-height: 1.2; }
.mc-kpi-lbl { font-family: 'Inter', sans-serif; font-size: 9px; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--t-faint, #6B7280); }
.mc-kpi.hl .mc-kpi-val { color: var(--kpi-green, #21D959); }
.mc-note { font-family: 'Inter', sans-serif; font-size: 10px; line-height: 1.4;
    color: var(--t-secondary, #C6CBD4); margin: -3px 0 10px; }
.mc-spark { margin-bottom: 9px; }
.mc-spark-lbl { font-family: 'Inter', sans-serif; font-size: 9px; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--t-faint, #6B7280); margin-bottom: 3px; }
.mc-spark svg { display: block; width: 100%; height: 34px; }
.mc-spark-ax { display: flex; justify-content: space-between; margin-top: 2px;
    font-family: 'Space Grotesk', monospace; font-size: 8.5px; color: var(--t-faint, #6B7280); }
.mc-rk-lbl { font-family: 'Inter', sans-serif; font-size: 9px; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--t-faint, #6B7280); margin-bottom: 4px; }
/* .mc-rk-sub y el acento de .mc-row.is-shared los define map.css (variante celeste GeaIQ). */
.mc-row { display: flex; align-items: center; gap: 7px; padding: 2px 0; font-family: 'Inter', sans-serif;
    font-size: 11.5px; color: var(--t-secondary, #C6CBD4); }
.mc-row.is-ref { color: var(--kpi-green, #21D959); font-weight: 600; }
.mc-row-rank { flex-shrink: 0; width: 16px; text-align: right; color: var(--t-faint, #6B7280); font-size: 10px; }
.mc-row-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row-val { flex-shrink: 0; font-family: 'Space Grotesk', sans-serif; }
.mc-row-share { flex-shrink: 0; width: 42px; text-align: right; font-family: 'Space Grotesk', sans-serif;
    color: var(--t-faint, #6B7280); font-size: 11px; }
.mc-bar { position: relative; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.07);
    margin: 1px 0 3px; overflow: hidden; }
.mc-bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--gea-celeste, #4FC3F7); }
.mc-row.is-ref + .mc-bar > i { background: var(--kpi-green, #21D959); }
/* El acento de .mc-row.is-shared, el chip import/export (.mc-chips/.mc-chip-btn) y el
   desglose de importaciones (.mc-*-import) los define map.css (capa específica del mapa). */
