/* ============================================================
   VECTOR · Tablero gerencial (Inversiones AD, canal masivo)
   Puerto del prototipo aprobado por Darío (29-sep-2026) a la app.
   Fuente original (NO tocar): material/design/tablero_gerencial_ad/claude/app.css
   Todo el selector va bajo .vxtg (contenedor propio de #vtg-body) para no
   pisar css/main.css, css/identity.css ni css/brand_ad.css. Las variables
   custom también viven scoped en .vxtg (prefijo --vtg-) para no chocar con
   ningún token global del shell.
   ============================================================ */

.vxtg{
  --vtg-brand:#DA291C;
  --vtg-brand-soft:#FBE7E5;
  --vtg-ink:#16191D;
  --vtg-ink-2:#434A53;
  --vtg-muted:#575E67;
  --vtg-line:#E5E7EA;
  --vtg-bg:#F5F6F7;
  --vtg-card:#FFFFFF;
  --vtg-tigo:#3D4B5C;
  --vtg-tigo-soft:#DDE2E8;
  --vtg-neutral:#B9C0C8;
  --vtg-warn:#B45309;
  --vtg-radius:14px;
  --vtg-shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06);
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color:var(--vtg-ink);
  font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;
  font-feature-settings:"tnum" 1,"cv11" 1;
}
.vxtg, .vxtg *{box-sizing:border-box}
.vxtg b, .vxtg strong{font-weight:600}
.vxtg .wrap{max-width:1280px;margin:0 auto;padding-top:8px;padding-bottom:40px;display:flex;flex-direction:column;gap:24px}

/* Tipografía */
.vxtg .eyebrow{margin:0 0 10px;font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--vtg-brand)}
.vxtg .h1{margin:0;font-size:22px;font-weight:700;letter-spacing:-.015em}
.vxtg .h2{margin:0;font-size:17px;font-weight:600;letter-spacing:-.01em}
.vxtg .h3{margin:20px 0 4px;font-size:14px;font-weight:600}
.vxtg .sub{margin:4px 0 0;font-size:15px;color:var(--vtg-muted)}
.vxtg .fine{margin:12px 0 0;font-size:14px;color:var(--vtg-muted)}
.vxtg .takeaway{margin:16px 0 0;font-size:15px;color:var(--vtg-ink-2);border-left:3px solid var(--vtg-ink);padding:2px 0 2px 12px}
.vxtg .takeaway b{color:var(--vtg-ink)}

.vxtg .card{background:var(--vtg-card);border:1px solid var(--vtg-line);border-radius:var(--vtg-radius);box-shadow:var(--vtg-shadow);padding:24px}
.vxtg .card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.vxtg .block__head{margin-bottom:14px}

/* 01 · Hero mercado */
.vxtg .hero{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;padding:32px}
.vxtg .hero__title{margin:0;font-size:36px;line-height:1.12;font-weight:700;letter-spacing:-.025em;max-width:16ch}
.vxtg .hero__title span{color:var(--vtg-brand)}
.vxtg .hero__lead{margin:14px 0 20px;font-size:15px;color:var(--vtg-ink-2);max-width:48ch}
.vxtg .hero__right{border-left:1px solid var(--vtg-line);padding-left:40px;display:flex;flex-direction:column;justify-content:center}

.vxtg .legend span,.vxtg .duel__key span,.vxtg .map__legend span{display:inline-flex;align-items:center;gap:6px}
.vxtg .sw{display:inline-block;width:10px;height:10px;border-radius:2px}
.vxtg .sw--claro{background:var(--vtg-brand)}
.vxtg .sw--tigo{background:var(--vtg-tigo)}

/* 01 · Dona "también Tigo" (propuesta A, aprobada por Dany 30-sep) */
.vxtg .donut-row{display:flex;align-items:center;gap:24px;margin-top:18px;flex-wrap:wrap}
.vxtg .donut{--vtg-share:0%;position:relative;flex:none;width:148px;height:148px;border-radius:50%;background:conic-gradient(var(--vtg-brand) var(--vtg-share),var(--vtg-tigo-soft) 0)}
.vxtg .donut::before{content:"";position:absolute;inset:16px;border-radius:50%;background:var(--vtg-card)}
.vxtg .donut__center{position:absolute;inset:0;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.vxtg .donut__center strong{font-size:38px;font-weight:700;letter-spacing:-.02em;line-height:1;color:var(--vtg-brand)}
.vxtg .donut__center span{margin-top:6px;max-width:96px;font-size:13px;line-height:1.2;font-weight:600;color:var(--vtg-ink-2);text-transform:uppercase;letter-spacing:.03em}
.vxtg .donut__phrase{margin:0;flex:1;min-width:220px;font-size:15px;line-height:1.5;color:var(--vtg-ink-2);border-left:3px solid var(--vtg-brand);padding:2px 0 2px 16px}
.vxtg .donut__phrase b{color:var(--vtg-ink)}
.vxtg .donut__foot{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px;padding-top:16px;border-top:1px solid var(--vtg-line)}
.vxtg .donut__foot>div{flex:1;min-width:130px}
.vxtg .donut__foot strong{display:block;font-size:22px;font-weight:700;letter-spacing:-.015em;color:var(--vtg-ink)}
.vxtg .donut__foot span{display:block;margin-top:4px;font-size:14px;line-height:1.4;color:var(--vtg-muted)}
.vxtg .donut__foot small{display:inline;font-size:13px;color:var(--vtg-muted)}

.vxtg .duel{margin-top:18px;display:flex;flex-direction:column;gap:18px}
.vxtg .duel__row{display:grid;grid-template-columns:96px 1fr;gap:6px 14px;align-items:center}
.vxtg .duel__label{font-size:15px;font-weight:600;grid-row:span 2}
.vxtg .duel__bar{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--vtg-ink-2)}
.vxtg .duel__track{flex:1;height:12px;background:#F0F1F3;border-radius:6px;overflow:hidden}
.vxtg .duel__fill{height:100%;border-radius:6px}
.vxtg .duel__val{width:118px;text-align:right;white-space:nowrap}
.vxtg .duel__val b{color:var(--vtg-ink)}
.vxtg .duel__key{display:flex;gap:18px;margin-top:14px;font-size:14px;color:var(--vtg-ink-2)}

/* 02 · Oportunidad */
.vxtg .ops{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.vxtg .op{background:#fff;border:1px solid var(--vtg-line);border-radius:var(--vtg-radius);box-shadow:var(--vtg-shadow);padding:22px;display:flex;flex-direction:column}
.vxtg .op__rank{font-size:13px;font-weight:600;color:var(--vtg-muted);letter-spacing:.04em;text-transform:uppercase}
.vxtg .op__n{margin:8px 0 2px;font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.vxtg .op__what{margin:0;font-size:15px;font-weight:600}
.vxtg .op__bar{margin:14px 0 6px;height:8px;border-radius:4px;background:#F0F1F3;overflow:hidden}
.vxtg .op__bar i{display:block;height:100%;background:var(--vtg-brand);border-radius:4px}
.vxtg .op__ctx{margin:0;font-size:14px;color:var(--vtg-muted)}
.vxtg .op__do{margin:14px 0 0;padding-top:12px;border-top:1px solid var(--vtg-line);font-size:15px;color:var(--vtg-ink-2)}
.vxtg .op__do b{color:var(--vtg-ink)}

/* 03 · Territorio (mapa) */
.vxtg .map{height:460px;border-radius:10px;border:1px solid var(--vtg-line);background:#EEF0F2}
.vxtg .map__legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:12px;font-size:14px;color:var(--vtg-ink-2)}
.vxtg .dot{display:inline-block;width:10px;height:10px;border-radius:50%}
.vxtg .seg{display:inline-flex;background:#F0F1F3;border-radius:9px;padding:3px;flex-shrink:0}
.vxtg .seg button{font:inherit;font-size:14px;font-weight:500;border:0;background:transparent;color:var(--vtg-ink-2);padding:7px 12px;border-radius:7px;cursor:pointer;min-height:34px}
.vxtg .seg button[aria-selected="true"]{background:#fff;color:var(--vtg-ink);box-shadow:0 1px 2px rgba(0,0,0,.08)}
.vxtg .seg button:focus-visible{outline:2px solid var(--vtg-ink);outline-offset:1px}

/* 04 · Por sucursal */
.vxtg .suc__legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0 16px;font-size:13px;color:var(--vtg-ink-2)}
.vxtg .suc__legend .dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:middle}
.vxtg .suc-table-wrap{overflow-x:auto}
.vxtg .suc-table{width:100%;border-collapse:collapse}
.vxtg .suc-table th{text-align:left;font-size:13px;font-weight:600;color:var(--vtg-muted);text-transform:uppercase;letter-spacing:.03em;padding:0 10px 10px;border-bottom:1px solid var(--vtg-line);white-space:nowrap}
.vxtg .suc-table td{padding:12px 10px;border-bottom:1px solid var(--vtg-line);vertical-align:middle;font-size:15px}
.vxtg .suc-table td small{display:block;margin-top:2px;font-size:13px;color:var(--vtg-muted);font-weight:400}
.vxtg .suc-table tr:last-child td{border-bottom:0}
.vxtg .suc__bar{display:flex;width:100%;min-width:160px;height:14px;border-radius:7px;overflow:hidden;background:var(--vtg-neutral)}
.vxtg .suc__seg{display:block;height:100%}
.vxtg .suc__sig{min-width:160px}
.vxtg .suc-table th:last-child,.vxtg .suc-table td:last-child{width:38%}
.vxtg .suc__pcts{display:flex;width:100%;margin-bottom:4px}
.vxtg .suc__pct{display:block;text-align:center;font-size:13px;font-weight:600;line-height:1.2;color:var(--vtg-ink-2);white-space:nowrap;overflow:visible;font-variant-numeric:tabular-nums}
.vxtg .suc__seg{cursor:help}
.vxtg .suc-cards{display:none;flex-direction:column;gap:12px}
.vxtg .suc-card{border:1px solid var(--vtg-line);border-radius:12px;padding:16px}
.vxtg .suc-card__head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.vxtg .suc-card__head strong{font-size:16px}
.vxtg .suc-card__head span{font-size:13px;color:var(--vtg-muted)}
.vxtg .suc-card__row{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 8px;font-size:14px;color:var(--vtg-ink-2);padding:6px 0;border-bottom:1px dashed var(--vtg-line)}
.vxtg .suc-card__row span{flex:1 0 auto}
.vxtg .suc-card__row b{color:var(--vtg-ink)}
.vxtg .suc-card__row small{width:100%;color:var(--vtg-muted);font-size:13px}
.vxtg .suc-card__senal{margin-top:10px}
.vxtg .suc-card__senal>span{display:block;font-size:13px;color:var(--vtg-muted);margin-bottom:6px}

/* Escala de señal: verde (buena) a violeta (muy mala), gris para sin dato.
   "Muy mala" NO usa --vtg-brand (rojo AD): se leería como alerta de marca.
   Pedido explícito: violeta oscuro en su lugar. */
.vxtg .sig-mb{background:#15803D}
.vxtg .sig-b{background:#84CC16}
.vxtg .sig-r{background:#EAB308}
.vxtg .sig-m{background:#EA580C}
.vxtg .sig-mm{background:#6D28D9}
.vxtg .sig-sd{background:var(--vtg-neutral)}

/* 05 · Qué perdí */
.vxtg .lost__grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}
.vxtg .lost__big{margin:14px 0 0;font-size:34px;font-weight:700;letter-spacing:-.02em;line-height:1.1}
.vxtg .lost__big small{font-size:15px;font-weight:500;color:var(--vtg-muted);margin-left:8px;letter-spacing:0}
.vxtg .lost__rows{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.vxtg .lrow{display:grid;grid-template-columns:1fr auto;gap:4px 10px;font-size:15px}
.vxtg .lrow__bar{grid-column:1/-1;height:6px;background:#F0F1F3;border-radius:3px;overflow:hidden}
.vxtg .lrow__bar i{display:block;height:100%;background:var(--vtg-ink-2);border-radius:3px}
.vxtg .lost__why{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.vxtg .why{display:flex;justify-content:space-between;font-size:14px;color:var(--vtg-ink-2);padding:6px 0;border-bottom:1px dashed var(--vtg-line)}
.vxtg .why:last-child{border-bottom:0}
.vxtg .why b{color:var(--vtg-ink)}

/* 06 · Equipo */
.vxtg .team__grid{display:grid;grid-template-columns:1.6fr 1fr;gap:40px}
.vxtg .chart{position:relative;height:280px}
.vxtg .bands{margin-top:14px;display:flex;flex-direction:column;gap:9px}
.vxtg .band{display:grid;grid-template-columns:92px 1fr 64px;gap:10px;align-items:center;font-size:14px;color:var(--vtg-ink-2)}
.vxtg .band__track{height:18px;background:#F0F1F3;border-radius:4px;overflow:hidden}
.vxtg .band__track i{display:block;height:100%;background:var(--vtg-tigo);border-radius:4px}
.vxtg .band__n{text-align:right}
.vxtg .band__n b{color:var(--vtg-ink)}

/* 07 · Confiabilidad */
.vxtg .trust{padding:18px 4px 0;border-top:1px solid var(--vtg-line)}
.vxtg .trust .h3{margin-top:0;color:var(--vtg-ink-2)}
.vxtg .trust__row{display:flex;flex-wrap:wrap;gap:12px 36px;margin-top:8px;font-size:14px;color:var(--vtg-ink-2)}
.vxtg .trust__row b{color:var(--vtg-ink)}
.vxtg .meter{display:inline-block;vertical-align:middle;width:72px;height:6px;background:#E6E8EB;border-radius:3px;overflow:hidden;margin-right:8px}
.vxtg .meter i{display:block;height:100%;background:var(--vtg-ink-2)}

.vxtg .leaflet-container{font-family:inherit}

/* Numeración de secciones */
.vxtg .secnum{display:inline-block;margin-right:10px;font-variant-numeric:tabular-nums;font-weight:700;color:#B42318;letter-spacing:.02em}
.vxtg .eyebrow .secnum{margin-right:8px}

/* Estados: cargando (skeleton), error, sin acceso, sin datos */
.vxtg .vtg-skel{padding:4px 0 8px;display:flex;flex-direction:column;gap:16px}
.vxtg .vtg-skel-block{background:linear-gradient(90deg,#EEF0F2 25%,#F7F8F9 37%,#EEF0F2 63%);background-size:400% 100%;animation:vtgSkeleton 1.4s ease infinite;border-radius:var(--vtg-radius);height:180px}
.vxtg .vtg-skel-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.vxtg .vtg-skel-row .vtg-skel-block{height:140px}
@keyframes vtgSkeleton{0%{background-position:100% 0}100%{background-position:0 0}}
.vxtg .vtg-retry-btn{margin-top:14px;padding:9px 18px;border-radius:10px;border:none;background:var(--vtg-brand,#DA291C);color:#fff;font:inherit;font-weight:600;font-size:13px;cursor:pointer}
.vxtg .vtg-retry-btn:hover{opacity:.9}

/* Celular */
@media (max-width:1100px){
  .vxtg .team__grid{grid-template-columns:1fr;gap:28px}
}
@media (max-width:860px){
  .vxtg .wrap{padding-top:16px;gap:16px}
  .vxtg .hero{grid-template-columns:1fr;gap:28px;padding:22px}
  .vxtg .hero__right{border-left:0;padding-left:0;border-top:1px solid var(--vtg-line);padding-top:24px}
  .vxtg .hero__title{font-size:28px}
  .vxtg .donut-row{gap:16px}
  .vxtg .donut{width:120px;height:120px}
  .vxtg .donut::before{inset:13px}
  .vxtg .donut__center strong{font-size:30px}
  /* El hueco interior baja a 94 px: "TAMBIÉN TIGO" en una línea se salía del aro. */
  .vxtg .donut__center span{max-width:76px;margin-top:4px;font-size:11px}
  .vxtg .donut__foot{gap:14px}
  .vxtg .ops{grid-template-columns:1fr;gap:12px}
  .vxtg .card{padding:18px}
  .vxtg .card__head{flex-direction:column}
  .vxtg .map{height:360px}
  .vxtg .duel__row{grid-template-columns:1fr}
  .vxtg .duel__label{grid-row:auto}
  .vxtg .duel__val{width:auto;min-width:104px}
  .vxtg .suc-table-wrap{display:none}
  .vxtg .suc-cards{display:flex}
  .vxtg .lost__grid{grid-template-columns:1fr;gap:20px}
  .vxtg .chart{height:240px}
  .vxtg .vtg-skel-row{grid-template-columns:1fr}
}
