.panel-pro-page{
  max-width:1480px;
  margin:0 auto;
  display:grid;
  gap:18px;
  color:var(--heading);
}

.panel-pro-page *,
.panel-pro-page *::before,
.panel-pro-page *::after{
  box-sizing:border-box;
}

.panel-pro-hero,
.panel-pro-filters,
.panel-pro-map-card,
.panel-pro-side,
.panel-pro-card{
  border:1px solid var(--line-soft);
  border-top:4px solid var(--primary);
  border-radius:32px;
  background:
    radial-gradient(circle at 88% 12%,rgba(25,165,125,.12),transparent 34%),
    #fff;
  box-shadow:var(--shadow);
}

.panel-pro-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:30px 36px;
}

.panel-pro-hero span,
.panel-pro-card-head span,
.panel-pro-card span{
  display:block;
  margin-bottom:8px;
  color:var(--primary);
  font-size:11px;
  font-weight:950;
  letter-spacing:.17em;
  text-transform:uppercase;
}

.panel-pro-hero h1{
  margin:0;
  font-size:50px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.06em;
}

.panel-pro-hero p{
  max-width:760px;
  margin:12px 0 0;
  color:var(--muted);
  font-size:16px;
  line-height:1.45;
  font-weight:780;
}

.panel-pro-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px;
}

.panel-pro-actions .pro-btn,
.panel-pro-actions .ghost-btn,
.panel-pro-clear{
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
  cursor:pointer;
}

.panel-pro-actions .pro-btn{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),#10b981);
  box-shadow:0 16px 30px rgba(4,120,87,.20);
}

.panel-pro-actions .ghost-btn,
.panel-pro-clear{
  border:1px solid var(--line-soft);
  background:#fff;
  color:var(--primary);
}

.panel-pro-actions .danger{
  color:#b91c1c;
}

.panel-pro-filters{
  display:grid;
  grid-template-columns:auto repeat(3,minmax(180px,1fr));
  gap:12px;
  align-items:center;
  padding:20px 24px;
}

.panel-pro-filter-tools,
.panel-pro-side-tools{
  display:flex;
  gap:8px;
}

.panel-pro-filter-tools button,
.panel-pro-side-tools button{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-soft);
  border-radius:16px;
  background:#fff;
  color:var(--primary);
  font-weight:950;
  cursor:pointer;
}

.panel-pro-filter-tools button.active,
.panel-pro-side-tools button.active{
  background:var(--primary);
  color:#fff;
}

.panel-pro-input{
  width:100%;
  min-height:48px;
  padding:0 16px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:#fff;
  color:var(--heading);
  font-size:14px;
  font-weight:850;
}

.panel-pro-clear{
  min-width:180px;
}

.panel-pro-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 430px;
  gap:18px;
  align-items:start;
}

.panel-pro-map-card,
.panel-pro-side,
.panel-pro-card{
  padding:22px 24px;
}

.panel-pro-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.panel-pro-card-head h2{
  margin:0;
  font-size:32px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.045em;
}

.panel-pro-card-head strong{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  padding:0 16px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.panel-pro-map{
  height:560px;
  overflow:hidden;
  border-radius:26px;
  border:1px solid var(--line-soft);
  background:#f8fafc;
}

.panel-pro-legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.panel-pro-legend span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  background:#f8fafc;
  color:var(--muted);
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}

.panel-pro-legend i{
  width:10px;
  height:10px;
  border-radius:999px;
}

.panel-pro-legend .ok{background:#16a34a;}
.panel-pro-legend .warn{background:#f97316;}
.panel-pro-legend .bad{background:#dc2626;}
.panel-pro-legend .info{background:#2563eb;}

.panel-pro-side{
  display:grid;
  gap:14px;
}

.panel-pro-kpis{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.panel-pro-kpis article{
  min-height:104px;
  padding:16px;
  border:1px solid var(--line-soft);
  border-top:4px solid var(--primary);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}

.panel-pro-kpis small{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
}

.panel-pro-kpis strong{
  display:block;
  margin-top:8px;
  font-size:34px;
  line-height:1;
  font-weight:1000;
}

.panel-pro-card{
  min-height:128px;
}

.panel-pro-card h3{
  margin:0 0 10px;
  font-size:24px;
  line-height:1;
  font-weight:1000;
  letter-spacing:-.04em;
}

.panel-pro-card p,
.panel-pro-card li{
  color:var(--muted);
  font-size:13px;
  line-height:1.42;
  font-weight:760;
}

.panel-pro-card ul{
  margin:10px 0 0;
  padding-left:20px;
}

.panel-pro-card b,
.panel-pro-card strong{
  color:var(--heading);
  font-weight:950;
}

@media(max-width:1280px){
  .panel-pro-filters{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .panel-pro-main{
    grid-template-columns:1fr;
  }
}

@media(max-width:780px){
  .panel-pro-hero{
    flex-direction:column;
    align-items:flex-start;
  }

  .panel-pro-hero h1{
    font-size:38px;
  }

  .panel-pro-filters{
    grid-template-columns:1fr;
  }

  .panel-pro-map{
    height:460px;
  }

  .panel-pro-kpis{
    grid-template-columns:1fr 1fr;
  }
}
/* PANEL · FIX TABLET PRO FINAL */

@media(min-width:901px){
  .panel-pro-main{
    grid-template-columns:minmax(0,1fr) 390px !important;
    align-items:start !important;
  }

  .panel-pro-side{
    position:sticky !important;
    top:14px !important;
  }

  .panel-pro-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

.panel-pro-map{
  height:520px !important;
}

.panel-pro-side{
  padding:18px !important;
}

.panel-pro-kpis article{
  min-height:92px !important;
  padding:14px !important;
}

.panel-pro-card{
  min-height:0 !important;
  padding:18px !important;
}

.panel-pro-card h3{
  font-size:22px !important;
}

.panel-pro-card ul{
  margin-top:10px !important;
}

.panel-pro-card li{
  font-size:13px !important;
  line-height:1.35 !important;
}

/* Que las tarjetas de insight no se estiren enormes */
#panelInsightBox,
#panelOpportunitiesBox,
#panelCoverageBox{
  border-top-color:var(--primary) !important;
}

/* Quitamos el media anterior que apilaba demasiado pronto */
@media(max-width:1280px){
  .panel-pro-main{
    grid-template-columns:minmax(0,1fr) 390px !important;
  }
}

@media(max-width:900px){
  .panel-pro-main{
    grid-template-columns:1fr !important;
  }

  .panel-pro-side{
    position:static !important;
  }
}
/* FIX mapa dentro ficha cliente */
.crm-account-drawer .leaflet-container,
.drawer .leaflet-container {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
  border-radius: 24px !important;
  overflow: hidden !important;
}

.crm-account-drawer [id*="map"],
.drawer [id*="map"] {
  width: 100% !important;
  height: 260px !important;
  max-height: 260px !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px !important;
}

.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 2 !important;
}

.drawer {
  overflow-y: auto !important;
}