/* world.css  —  planisferio de indicadores GeaIQ (complementa globe.css + card-indicador.css)
   Propósito: estilos específicos del mapa 2D de indicadores; HUD compartido viene de globe.css */

#map {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(120% 120% at 50% 38%, #0d1722 0%, #070c14 70%, #05070b 100%);
}

#map-svg {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}

#map-svg.grabbing {
    cursor: grabbing;
}

/* ── Geografía base ───────────────────────────────────────────────────────── */
.country {
    fill: rgba(30, 42, 58, 0.85);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.4px;
    transition: fill 0.35s ease, stroke 0.18s ease, stroke-width 0.18s ease, filter 0.18s ease;
}

.graticule {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 0.5px;
}

.sphere {
    fill: none;
    stroke: rgba(79, 195, 247, 0.14);
    stroke-width: 1px;
}

.country.has-data {
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 0.5px;
    cursor: pointer;
}

.country.has-data:hover {
    stroke: var(--gea-turquesa, #14E0C4);
    stroke-width: 1.6px;
    filter: brightness(1.4) saturate(1.2) drop-shadow(0 0 6px rgba(20, 224, 196, 0.5));
}

.country.focused {
    stroke: var(--kpi-yellow, #FFD83D);
    stroke-width: 2px;
    filter: drop-shadow(0 0 8px rgba(255, 216, 61, 0.75));
}

/* ── Tooltip ─────────────────────────────────────────────────────────────── */
.map-tooltip {
    position: fixed;
    z-index: 30;
    pointer-events: none;
    max-width: 260px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    background: rgba(10, 14, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    padding: 8px 12px;
    color: var(--t-primary, #E6EAF1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.12s;
    transform: translate(-50%, calc(-100% - 12px));
}

.map-tooltip.show {
    opacity: 1;
}

/* ── Panel izquierdo: acordión de indicadores ─────────────────────────────── */
.lp-col {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 10;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: calc(100vh - 160px);
    max-height: 520px;
}

body.embed .lp-col {
    bottom: 14px;
    left: 14px;
}

.lp-col .hud {
    position: relative;
    z-index: auto;
}

.lp-acc-item {
    padding: 6px 14px;
    transition: border-color 0.18s, background 0.18s;
    cursor: pointer;
}

.lp-acc-item.active {
    border-color: rgba(20, 224, 196, 0.28);
    background: rgba(20, 224, 196, 0.06);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    cursor: default;
}

.lp-acc-item:not(.active):hover {
    background: rgb(10 14 20 / 70%);
}

.lp-acc-hd {
    display: flex;
    align-items: center;
}

.lp-acc-item.active .lp-acc-hd {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.lp-acc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    border: none;
    cursor: inherit;
    background: transparent;
    color: var(--t-secondary, #C6CBD4);
    padding: 0;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s;
}

.lp-acc-btn .material-symbols-outlined {
    font-size: 18px;
    flex-shrink: 0;
}

.lp-acc-item:not(.active):hover .lp-acc-btn {
    color: var(--t-primary, #E6EAF1);
}

.lp-acc-item.active .lp-acc-btn {
    color: var(--gea-turquesa, #14E0C4);
}

.lp-acc-body {
    margin-top: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

.lp-acc-body::-webkit-scrollbar {
    width: 5px;
}

.lp-acc-body::-webkit-scrollbar-track {
    background: transparent;
}

.lp-acc-body::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

/* Indicadores dentro del cuerpo del acordión */
.ind-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s;
    font-size: 12px;
}

.ind-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.ind-row.active {
    background: rgba(20, 224, 196, 0.10);
    box-shadow: inset 2px 0 0 var(--gea-turquesa, #14E0C4);
    padding-left: 6px;
}

.ind-row.active .ind-name {
    color: var(--gea-turquesa, #14E0C4);
    font-weight: 600;
}

.ind-icon {
    font-size: 13px;
    color: var(--t-faint, #6B7280);
    flex-shrink: 0;
}

.ind-name {
    flex: 1;
    color: var(--t-secondary, #C6CBD4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ind-src {
    font-size: 10px;
    color: var(--t-faint, #6B7280);
    flex-shrink: 0;
}

/* ── Leyenda (inferior central) ──────────────────────────────────────────── */
.world-legend {
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 10px;
}

body.embed .world-legend {
    bottom: 14px;
}

.leg-label {
    color: var(--t-muted, #98A2B3);
    font-size: 10px;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leg-scale {
    display: flex;
    gap: 2px;
    align-items: stretch;
}

.leg-bin {
    width: 36px;
    height: 14px;
    border-radius: 3px;
    cursor: default;
    position: relative;
    transition: transform 0.12s;
}

.leg-bin:hover {
    transform: scaleY(1.4);
}

.leg-range {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 9px;
    color: var(--t-primary, #E6EAF1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.12s;
}

.leg-bin:hover .leg-range {
    opacity: 1;
}

.leg-dir {
    color: var(--t-faint, #6B7280);
    font-size: 9px;
    padding: 0 2px;
}

/* ── Modal de país ────────────────────────────────────────────────────────── */
#country-backdrop {
    position: fixed;
    inset: 0;
    z-index: 498;
    background: rgba(5, 7, 11, 0.60);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#country-backdrop.show {
    opacity: 1;
    visibility: visible;
}

#country-modal {
    position: fixed;
    z-index: 499;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(540px, 94vw);
    max-height: min(82vh, 680px);
    padding: 18px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

#country-modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.cm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.cm-head .material-symbols-outlined {
    font-size: 22px;
    color: var(--gea-turquesa, #14E0C4);
    flex-shrink: 0;
}

/* Bandera circular (flag-icons) */
.flag-circle {
    display: inline-block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px rgba(20, 224, 196, 0.18);
}

.cm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    flex: 1;
}

.cm-close {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: var(--t-muted, #98A2B3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.cm-close:hover {
    background: rgba(20, 224, 196, 0.2);
    color: var(--gea-turquesa, #14E0C4);
}

.cm-close .material-symbols-outlined {
    font-size: 15px;
    color: inherit;
}

.cm-sub {
    font-size: 12px;
    color: var(--t-muted, #98A2B3);
    margin-bottom: 14px;
}

.cm-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
}

.cm-scroll::-webkit-scrollbar {
    width: 5px;
}

.cm-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.cm-scroll::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

/* KPIs principales */
.cm-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.cm-kpi {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 10px 12px;
}

.cm-kpi.hl {
    background: rgba(20, 224, 196, 0.07);
    border-color: rgba(20, 224, 196, 0.18);
}

.cm-kpi-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--t-primary, #E6EAF1);
}

.cm-kpi.hl .cm-kpi-val {
    color: var(--gea-turquesa, #14E0C4);
    filter: brightness(1.5);
}



.cm-kpi-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--t-muted, #98A2B3);
    margin-top: 2px;
}

/* Sparkline */
.cm-spark {
    margin-bottom: 14px;
}

.cm-spark-lbl {
    font-size: 10px;
    color: var(--t-faint, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.cm-spark-svg {
    width: 100%;
    height: 42px;
}

.cm-spark-svg svg {
    width: 100%;
    height: 100%;
}

.cm-spark-years {
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
    font-size: 11px;
    color: var(--t-faint, #6B7280);
    font-family: 'Space Grotesk', monospace;
}

/* Separador de sección */
.cm-section {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--t-faint, #6B7280);
    margin: 14px 0 8px;
}

/* Grid de todos los indicadores */
.cm-all-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cm-all-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 6px;
    border-radius: 7px;
    transition: background 0.12s;
    cursor: pointer;
}

.cm-all-row:hover {
    background: rgba(255, 255, 255, 0.06);
}

.cm-all-row.active-ind {
    background: rgba(20, 224, 196, 0.07);
    cursor: default;
}

.cm-all-name {
    flex: 1;
    font-size: 13px;
    color: var(--t-secondary, #C6CBD4);
}

.cm-all-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-primary, #E6EAF1);
}

.cm-all-row.active-ind .cm-all-name {
    color: var(--gea-turquesa, #14E0C4);
}

.cm-all-row.active-ind .cm-all-val {
    color: var(--gea-turquesa, #14E0C4);
}

.cm-unit {
    font-size: 11px;
    color: var(--t-faint, #6B7280);
}

.cm-nodata {
    font-size: 11px;
    color: var(--t-faint, #6B7280);
    font-style: italic;
    padding: 4px 0;
}

/* ── Controles de mapa (zoom) ─────────────────────────────────────────────── */
.map-ctrls {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.embed .map-ctrls {
    right: 14px;
    bottom: 14px;
}

.map-ctrl-btn {
    width: 32px;
    height: 32px;
    background: rgb(10 14 20 / 70%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    color: var(--t-secondary, #C6CBD4);
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    font-family: monospace;
}

.map-ctrl-btn:hover {
    background: rgba(20, 224, 196, 0.12);
    color: var(--gea-turquesa, #14E0C4);
}

.map-ctrl-btn .material-symbols-outlined {
    font-size: 16px;
}

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

.g-status.show {
    display: block;
}

.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 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);
}

/* ── Botón de acción en el header HUD ───────────────────────────────────── */
.hud-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
    border: 1px solid rgba(20, 224, 196, 0.28);
    background: rgb(8 11 15 / 80%);
    border-radius: 8px;
    color: var(--gea-turquesa, #14E0C4);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.hud-action-btn:hover {
    background: rgba(20, 224, 196, 0.16);
    border-color: rgba(20, 224, 196, 0.55);
}

.hud-action-btn .material-symbols-outlined {
    font-size: 15px;
}

/* g-sub override (globe.css define 11px) */
.g-sub {
    font-size: 12px;
}

/* ── Global Dashboard Modal ─────────────────────────────────────────────── */
#global-dash-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(5, 7, 11, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#global-dash-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.global-dash {
    position: fixed;
    z-index: 501;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(1300px, 96vw);
    height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.global-dash.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.gd-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.gd-icon {
    font-size: 20px;
    color: var(--gea-turquesa, #14E0C4);
    flex-shrink: 0;
}

.gd-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}

.gd-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 8px;
    padding: 5px 10px;
    transition: border-color 0.15s;
}

.gd-search-wrap:focus-within {
    border-color: rgba(20, 224, 196, 0.4);
}

.gd-search-icon {
    font-size: 14px;
    color: var(--t-muted, #98A2B3);
    flex-shrink: 0;
}

.gd-search-input {
    background: none;
    border: none;
    outline: none;
    width: 180px;
    color: var(--t-primary, #E6EAF1);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
}

.gd-search-input::placeholder {
    color: var(--t-faint, #6B7280);
}

.gd-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: var(--t-muted, #98A2B3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.gd-close:hover {
    background: rgba(20, 224, 196, 0.2);
    color: var(--gea-turquesa, #14E0C4);
}

.gd-close .material-symbols-outlined {
    font-size: 15px;
    color: inherit;
}

.gd-region-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 7px 18px 6px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gd-reg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--t-secondary, #C6CBD4);
}

.gd-label {
    padding: 4px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--t-secondary, #C6CBD4);
    height: 32px;
    flex-shrink: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 5px;
    overflow: hidden;
}

.gd-hover-info {
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
}

.gd-label-hint {
    opacity: 0.38;
    white-space: nowrap;
}

.gd-label-reg {
    color: var(--t-muted, #98A2B3);
    font-size: 11px;
}

/* Tag de país activo */
.gd-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 3px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
    cursor: default;
    transition: background 0.12s;
}

.gd-tag:hover {
    filter: brightness(1.15);
}

.flag-circle-sm {
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    border-radius: 50% !important;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gd-tag-name {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gd-tag-x {
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 15px;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1px;
    transition: color 0.12s;
}

.gd-tag-x:hover {
    color: rgba(220, 70, 70, 0.9);
}

.gd-chart {
    flex: 1;
    min-height: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.gd-svg {
    display: block;
}

/* ── Country Modal — Tabs ────────────────────────────────────────────────── */
.cm-tabs {
    display: flex;
    gap: 3px;
    padding: 0 2px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 8px;
}

.cm-tab {
    flex: 1;
    padding: 6px 8px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--t-secondary, #C6CBD4);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.cm-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--t-primary, #E6EAF1);
}

.cm-tab.active {
    background: rgba(20, 224, 196, 0.10);
    color: var(--gea-turquesa, #14E0C4);
    font-weight: 600;
}

/* ── Comparison Tab — Strip Charts ──────────────────────────────────────── */
.cmp-intro {
    font-size: 11px;
    color: var(--t-muted, #98A2B3);
    margin-bottom: 12px;
    line-height: 1.45;
}

.cmp-intro b {
    color: var(--t-primary, #E6EAF1);
}

.cmp-strips {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmp-row {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 7px 10px 8px;
    transition: border-color 0.15s;
}

.cmp-row:hover {
    border-color: rgba(255, 255, 255, 0.10);
}

.cmp-row.cmp-nodata {
    opacity: 0.4;
}

.cmp-row-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.cmp-lbl {
    flex: 1;
    font-size: 13px;
    color: var(--t-secondary, #C6CBD4);
}

.cmp-rank {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.cmp-total {
    font-size: 13px;
    color: var(--t-faint, #6B7280);
    font-weight: 400;
}

.cmp-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--t-primary, #E6EAF1);
}

.cmp-nd {
    font-size: 10px;
    color: var(--t-faint, #6B7280);
    font-style: italic;
}

.cmp-chart {
    overflow: hidden;
}

.cmp-global-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid rgba(20, 224, 196, 0.25);
    background: rgba(20, 224, 196, 0.06);
    border-radius: 8px;
    color: var(--gea-turquesa, #14E0C4);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.cmp-global-btn:hover {
    background: rgba(20, 224, 196, 0.14);
    border-color: rgba(20, 224, 196, 0.5);
}

/* ── Toggle de vista del Dashboard Global ───────────────────────────────── */
.gd-view-toggle {
    display: flex;
    gap: 4px;
    margin: 0 4px;
    flex-shrink: 0;
}

.gd-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
    white-space: nowrap;
    box-sizing: border-box;
}

.gd-view-btn .material-symbols-outlined {
    font-size: 17px;
    flex-shrink: 0;
}

.gd-view-btn-label {
    font-size: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.gd-view-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.75);
}

.gd-view-btn--on {
    background: rgba(20, 224, 196, 0.12);
    border-color: rgba(20, 224, 196, 0.38);
    color: #14E0C4;
}

/* ── Vista Topológica — layout ──────────────────────────────────────────── */
.gd-topo-wrap {
    display: flex;
    width: 100%;
    height: 100%;
}

.gd-topo-scatter {
    flex: 1;
    min-width: 0;
    position: relative;
}

.gd-topo-detail {
    width: 260px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 12px;
}

.gd-topo-detail::-webkit-scrollbar {
    width: 5px;
}

.gd-topo-detail::-webkit-scrollbar-track {
    background: transparent;
}

.gd-topo-detail::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

.topo-detail-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0 2px;
}

.topo-detail-name {
    font-size: 14px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topo-detail-region {
    font-size: 11px;
    color: var(--t-muted, #98A2B3);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topo-detail-hint {
    font-size: 12px;
    color: var(--t-faint, #6B7280);
    text-align: center;
    padding: 20px 8px;
    line-height: 1.55;
}