/* ════════════════════════════════════════════════════════════════
   TuPlanVital PRO — Panel profesional de Adri · "Editorial Performance"
   Acotado a body.tpv-pro. Re-tematiza el admin existente (que usa variables
   CSS) a negro+turquesa, sin tocar su lógica. NO afecta al cliente
   (body.tpv-premium) ni a nada fuera de body.tpv-pro.
   ════════════════════════════════════════════════════════════════ */
body.tpv-pro{
  --bg:#06090C; --panel:#0B1015; --panel2:#12181F; --elev:#12181F;
  --stroke:#1b2530; --stroke2:#263447; --text:#F4F7FA; --muted:#B8C1CC; --muted2:#7B8794;
  --accent:#22E6E6; --accent2:#22E6E6; --accent-ink:#06090C;
  --accent-dim:rgba(34,230,230,.14); --accent-soft:rgba(34,230,230,.06);
  --red:#FF5C7A; --radius:18px; --radius-sm:12px;
  --shadow:0 2px 10px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.38);
  --shadow-lg:0 26px 60px rgba(0,0,0,.65);
  --glow:0 0 0 4px rgba(34,230,230,.18);
  --fontD:'Space Grotesk','Inter',sans-serif;
  background:
    radial-gradient(1100px 560px at 92% -12%, rgba(34,230,230,.07), transparent 60%),
    radial-gradient(800px 480px at -6% 110%, rgba(34,230,230,.04), transparent 60%), var(--bg) !important;
  color:var(--text);
}
/* Tipografía editorial para títulos/botones/pestañas */
body.tpv-pro .page-head h1,body.tpv-pro .sec-h h2,body.tpv-pro .brand .bn,
body.tpv-pro .btn,body.tpv-pro .editor-tabs .tab{font-family:var(--fontD) !important}
body.tpv-pro .brand .bs{color:var(--accent)}
/* Scroll + selección */
body.tpv-pro ::-webkit-scrollbar-thumb{background:#1b2530;border:3px solid transparent;background-clip:content-box}
body.tpv-pro ::selection{background:rgba(34,230,230,.28)}
/* Arreglos de colores "claros" cableados que no usan variable */
body.tpv-pro .nav-item .count{background:var(--panel2);border-color:var(--stroke2);color:var(--muted)}
body.tpv-pro .editor-tabs{box-shadow:none}
body.tpv-pro .editor-tabs .tab .tn{background:var(--panel2);color:var(--muted)}
body.tpv-pro .editor-tabs .tab:hover{color:var(--text);background:var(--accent-soft)}
body.tpv-pro .editor-tabs .tab.active{background:linear-gradient(135deg,var(--accent),var(--accent));color:var(--accent-ink);box-shadow:0 6px 16px rgba(34,230,230,.28)}
body.tpv-pro .editor-tabs .tab.active .tn{background:rgba(6,9,12,.25);color:var(--accent-ink)}
body.tpv-pro .fld input,body.tpv-pro .fld select,body.tpv-pro .fld textarea{background:#070b0f;border-color:var(--stroke2);color:var(--text)}
body.tpv-pro .fld input:hover,body.tpv-pro .fld select:hover,body.tpv-pro .fld textarea:hover{border-color:var(--stroke2)}
body.tpv-pro .fld input:focus,body.tpv-pro .fld select:focus,body.tpv-pro .fld textarea:focus{border-color:var(--accent);box-shadow:var(--glow);background:#070b0f}
body.tpv-pro .fld select option{background:#0b1015}
body.tpv-pro .btn{background:var(--panel2);box-shadow:none}
body.tpv-pro .btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
body.tpv-pro .btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent));color:var(--accent-ink);box-shadow:0 6px 16px rgba(34,230,230,.26)}
body.tpv-pro .btn.primary:hover{filter:brightness(1.07);color:var(--accent-ink)}
body.tpv-pro .btn.danger:hover{border-color:var(--red);color:var(--red);background:rgba(255,92,122,.08)}
body.tpv-pro .brand{border-bottom-color:var(--stroke)}
body.tpv-pro .sec-h .si svg,body.tpv-pro .nav-item.active svg{stroke:var(--accent)}
/* Badges verdes cableados → turquesa/estado */
body.tpv-pro .pill,body.tpv-pro .tag,body.tpv-pro .badge{background:var(--accent-dim);color:var(--accent);border-color:rgba(34,230,230,.3)}

/* ───────── Sidebar profesional (marca "Pro") ───────── */
body.tpv-pro .sidebar{background:var(--panel);border-right-color:var(--stroke)}
body.tpv-pro .brand .bn::after{content:' Pro';color:var(--accent)}

/* ════════════ DASHBOARD (Inicio) — componentes nuevos ════════════ */
body.tpv-pro .ad-hero{position:relative;border-radius:var(--radius);overflow:hidden;margin-bottom:24px;min-height:150px;display:flex;align-items:center;border:1px solid var(--stroke)}
body.tpv-pro .ad-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.5}
body.tpv-pro .ad-hero .ah-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,9,12,.95),rgba(6,9,12,.55) 60%,rgba(6,9,12,.2))}
body.tpv-pro .ad-hero .ah-in{position:relative;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;gap:20px;width:100%;flex-wrap:wrap}
body.tpv-pro .ad-hero h1{font-family:var(--fontD);font-weight:700;font-size:34px;letter-spacing:-.02em;color:#fff;line-height:1.05}
body.tpv-pro .ad-hero p{color:var(--muted);font-size:14px;margin-top:8px}
body.tpv-pro .ad-hero .ah-cta{display:flex;gap:10px;flex-wrap:wrap}

body.tpv-pro .kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
body.tpv-pro .kpi{background:var(--panel2);border:1px solid var(--stroke);border-radius:var(--radius);padding:20px 22px;cursor:pointer;transition:border-color .16s,transform .12s}
body.tpv-pro .kpi:hover{border-color:var(--accent);transform:translateY(-2px)}
body.tpv-pro .kpi .k-ic{width:40px;height:40px;border-radius:12px;background:var(--accent-dim);display:flex;align-items:center;justify-content:center;margin-bottom:14px}
body.tpv-pro .kpi .k-ic svg{width:20px;height:20px;stroke:var(--accent);fill:none;stroke-width:1.9}
body.tpv-pro .kpi .k-v{font-family:var(--fontD);font-weight:700;font-size:30px;color:var(--accent);line-height:1}
body.tpv-pro .kpi .k-l{font-size:13px;color:var(--muted);margin-top:6px}
body.tpv-pro .kpi.warn .k-v{color:var(--warning,#FFB84D)}

body.tpv-pro .ad-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;align-items:start}
body.tpv-pro .ad-card{background:var(--panel2);border:1px solid var(--stroke);border-radius:var(--radius);padding:22px 24px;margin-bottom:20px}
body.tpv-pro .ad-card .ac-h{display:flex;align-items:center;gap:12px;margin-bottom:18px}
body.tpv-pro .ad-card .ac-h .si{width:38px;height:38px;border-radius:11px;background:var(--accent-dim);display:flex;align-items:center;justify-content:center;flex-shrink:0}
body.tpv-pro .ad-card .ac-h .si svg{width:19px;height:19px;stroke:var(--accent);fill:none;stroke-width:1.9}
body.tpv-pro .ad-card .ac-h h2{font-family:var(--fontD);font-weight:700;font-size:17px}
body.tpv-pro .ad-card .ac-h p{font-size:12.5px;color:var(--muted);margin-top:3px}
body.tpv-pro .ad-card .ac-link{margin-left:auto;color:var(--accent);font-size:13px;font-weight:600;cursor:pointer;background:none;border:none;font-family:var(--fontD)}

/* Tareas */
body.tpv-pro .task{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--stroke)}
body.tpv-pro .task .t-box{width:22px;height:22px;border-radius:7px;border:1.6px solid var(--stroke2);flex-shrink:0;display:flex;align-items:center;justify-content:center}
body.tpv-pro .task.done .t-box{background:var(--accent-dim);border-color:var(--accent)}
body.tpv-pro .task.done .t-box svg{width:13px;height:13px;stroke:var(--accent);fill:none;stroke-width:2.6}
body.tpv-pro .task .t-l{flex:1;min-width:0;font-size:14px;font-weight:600}
body.tpv-pro .task .t-c{color:var(--muted);font-family:var(--fontD);font-weight:700;font-size:13px}

/* Lista de acción / actividad */
body.tpv-pro .ad-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid var(--stroke);cursor:pointer}
body.tpv-pro .ad-row:hover{opacity:.85}
body.tpv-pro .ad-row .ar-av{width:40px;height:40px;border-radius:11px;background:linear-gradient(135deg,var(--accent),#17C9CD);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;font-family:var(--fontD);font-weight:700;flex-shrink:0}
body.tpv-pro .ad-row .ar-ic{width:40px;height:40px;border-radius:11px;background:var(--panel);border:1px solid var(--stroke);display:flex;align-items:center;justify-content:center;flex-shrink:0}
body.tpv-pro .ad-row .ar-ic svg{width:18px;height:18px;stroke:var(--accent);fill:none;stroke-width:1.9}
body.tpv-pro .ad-row .ar-b{flex:1;min-width:0}
body.tpv-pro .ad-row .ar-b b{display:block;font-family:var(--fontD);font-weight:600;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tpv-pro .ad-row .ar-b span{display:block;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.tpv-pro .ad-row .ar-meta{margin-left:auto;text-align:right;flex-shrink:0;display:flex;align-items:center;gap:12px}
body.tpv-pro .ad-row .ar-when{font-size:12px;color:var(--muted2);white-space:nowrap}
body.tpv-pro .ad-row .ar-tag{font-size:11px;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--accent-dim);color:var(--accent);white-space:nowrap}
body.tpv-pro .ad-row .ar-tag.warn{background:rgba(255,184,77,.15);color:#FFB84D}
body.tpv-pro .ad-row .ar-tag.ok{background:rgba(34,230,230,.14);color:var(--accent)}
body.tpv-pro .ad-row .ar-chev{stroke:var(--muted2);width:18px;height:18px;fill:none;stroke-width:2}

body.tpv-pro .ad-empty{padding:26px;text-align:center;color:var(--muted2);font-size:13.5px}

/* Estado "en construcción" honesto para secciones no implementadas aún */
body.tpv-pro .ad-soon{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:70px 24px;color:var(--muted)}
body.tpv-pro .ad-soon .as-ic{width:72px;height:72px;border-radius:50%;background:var(--panel2);border:1px solid var(--stroke);display:flex;align-items:center;justify-content:center;margin-bottom:18px}
body.tpv-pro .ad-soon .as-ic svg{width:32px;height:32px;stroke:var(--accent);fill:none;stroke-width:1.7}
body.tpv-pro .ad-soon h2{font-family:var(--fontD);font-weight:700;font-size:20px;color:var(--text);margin-bottom:8px}
body.tpv-pro .ad-soon p{max-width:46ch;line-height:1.6;font-size:14px}

@media (max-width:1100px){ body.tpv-pro .kpi-row{grid-template-columns:repeat(2,1fr)} body.tpv-pro .ad-grid{grid-template-columns:1fr} }
@media (max-width:560px){ body.tpv-pro .kpi-row{grid-template-columns:1fr} body.tpv-pro .ad-hero h1{font-size:26px} }
