/* =========================================================
   PANEL LOCAL – BAJÓN DEL DADIER (Match MI PROGRESO)
   Solo estética. No toca lógica.
   Clases usadas: bpl-*
   ========================================================= */

:root{
  --bg0:#06131e;
  --bg1:#0b2233;

  --card: rgba(255,255,255,.055);
  --card2: rgba(255,255,255,.038);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.66);

  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.14);

  --red:#14b8a6;
  --red2:#0f766e;

  --gold:#60a5fa;
  --gold2:#93c5fd;

  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --shadow2: 0 14px 34px rgba(0,0,0,.40);

  --radius: 20px;
  --container: 1200px;

  --ease: cubic-bezier(.4,0,.2,1);
  --t: .26s var(--ease);
}

/* Base */
.bpl-wrap{
  min-height: 100vh;
  padding: clamp(26px, 4vw, 58px) 18px 72px;
  background:
    radial-gradient(900px 360px at 14% 0%, rgba(20,184,166,.18), transparent 60%),
    radial-gradient(900px 360px at 86% 0%, rgba(96,165,250,.12), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.bpl-wrap *{ box-sizing: border-box; }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
}

/* Hero */
.bpl-hero{
  max-width: var(--container);
  margin: 0 auto 16px;
  display:grid;
  gap:14px;
}

.bpl-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  border-radius:999px;
  color: var(--gold2);
  font-weight:950;
  letter-spacing:.25px;
  width: fit-content;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
  transition: var(--t);
}

.bpl-kicker::before{
  content:"✦";
  color: var(--red);
  font-weight: 950;
  transform: translateY(-1px);
}

.bpl-kicker:hover{
  transform: translateY(-2px);
  border-color: rgba(242,210,123,.30);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.bpl-title{
  margin: 10px 0 6px;
  font-family: "Cinzel", serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height:1.05;
  color: rgba(255,255,255,.95);
  text-shadow: 0 14px 34px rgba(0,0,0,.55);
}

.bpl-sub{
  margin:0;
  color: var(--muted);
  font-weight:900;
  line-height:1.7;
  max-width: 78ch;
}

.bpl-chips{ display:flex; flex-wrap:wrap; gap:8px; }

.bpl-chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-weight:950;
  font-size:12.5px;
  letter-spacing:.15px;
  backdrop-filter: blur(10px);
  transition: var(--t);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.bpl-chip:hover{
  transform: translateY(-2px);
  border-color: rgba(20,184,166,.32);
  box-shadow: 0 16px 44px rgba(0,0,0,.42);
}

/* Grid */
.bpl-grid{
  max-width: var(--container);
  margin:0 auto;
  display:grid;
  gap:14px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .bpl-grid{ grid-template-columns: 1fr 1fr 1fr; gap:16px; }
  .bpl-span-2{ grid-column: span 3; }
}

/* Cards */
.bpl-card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 16px;
  transition: var(--t);
  position: relative;
  overflow:hidden;
}

.bpl-card::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:0;
  background:
    radial-gradient(900px 240px at 20% 0%, rgba(96,165,250,.10), transparent 60%),
    radial-gradient(900px 240px at 80% 0%, rgba(20,184,166,.10), transparent 60%);
  transition: var(--t);
  pointer-events:none;
}

.bpl-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(242,210,123,.20);
}
.bpl-card:hover::before{ opacity:1; }

.bpl-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
  position: relative;
  z-index: 1;
}

.bpl-card h2{
  margin:0;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  font-weight: 950;
  letter-spacing:.2px;
}

.bpl-badge{
  font-size:12px;
  font-weight:950;
  color: rgba(255,255,255,.72);
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  padding:7px 12px;
  border-radius:999px;
  white-space:nowrap;
  backdrop-filter: blur(10px);
}

/* KPIs */
.bpl-kpi{
  font-size: 38px;
  font-weight: 950;
  color: rgba(255,255,255,.96);
  line-height: 1;
  position: relative;
  z-index: 1;
}
.bpl-kpi-sub{
  margin-top: 8px;
  color: rgba(255,255,255,.70);
  font-weight: 950;
  position: relative;
  z-index: 1;
}

/* Table */
.bpl-table-wrap{
  border:1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.22);
  box-shadow: 0 14px 44px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

.bpl-table{
  width:100%;
  border-collapse:collapse;
  font-size:14px;
  min-width: 520px;
}

.bpl-table th, .bpl-table td{
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.bpl-table th{
  background: rgba(255,255,255,.07);
  text-align:left;
  font-weight:950;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing:.55px;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.bpl-table td{
  color: rgba(255,255,255,.88);
  font-weight: 900;
}

.bpl-muted{ color: rgba(255,255,255,.62); }

.bpl-pill{
  display:inline-flex;
  padding:4px 8px;
  border-radius:999px;
  background: rgba(96,165,250,.12);
  border:1px solid rgba(96,165,250,.22);
  color: rgba(255,255,255,.92);
  font-weight:950;
  font-size:11px;
}

tr.is-best td{ background: rgba(20,184,166,.07); }

/* Empty / Footnote */
.bpl-empty{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:16px;
  padding:14px;
  color: rgba(255,255,255,.72);
  font-weight:950;
  background: rgba(0,0,0,.22);
}

.bpl-footnote{
  margin-top:12px;
  color: rgba(255,255,255,.60);
  font-weight:950;
  font-size:12.5px;
  text-align:center;
  padding: 12px;
  background: rgba(0,0,0,.18);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}

/* Selection / Focus */
::selection{
  background: rgba(20,184,166,.35);
  color: rgba(255,255,255,.95);
}
.bpl-wrap a, .bpl-wrap button{
  outline-color: rgba(20,184,166,.55);
}
