#pdPrestadoresBlock{display:grid;gap:24px;padding-bottom:24px;}
#pdPrestadoresBlock.pd-prestadores-stack{display:grid;gap:24px;}
#pdPrestadoresBlock .pd-card{margin-bottom:0;}

/* Panel base */
#pdPrestadoresBlock .pd-panel{background:var(--pd-card-bg,var(--surface,#fff));border:0;border-radius:16px;box-shadow:var(--pd-card-shadow);overflow:hidden;background-clip:padding-box;}

/* Summary hero */
#pdPrestadoresBlock .pd-prs-right{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-self:center;min-width:0;}

#pdPrestadoresBlock .pd-prs-stat{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:12px 16px;border-left:var(--pd-dash);text-align:center;}
#pdPrestadoresBlock .pd-prs-stat-label{font-size:var(--qpd-note-size,11px);line-height:1.1;font-weight:var(--qpd-data-weight,600);letter-spacing:normal;text-transform:none;color:var(--qpd-text-muted,var(--pd-ink-50));text-align:center;}
#pdPrestadoresBlock .pd-prs-stat-value{margin-top:10px;font-size:36px;line-height:.95;font-weight:var(--qpd-metric-weight,700);letter-spacing:-.05em;color:var(--qpd-text-ink,var(--pd-ink-90));text-align:center;}
#pdPrestadoresBlock .pd-prs-stat-sub{margin-top:10px;font-size:var(--qpd-note-size,12px);line-height:1.5;color:var(--qpd-text-muted,var(--pd-ink-62));text-align:center;text-wrap:balance;}

/* Table panels */
#pdPrestadoresBlock .pd-prs-networkSplit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;}
#pdPrestadoresBlock .pd-prs-networkSplit>.pd-panel--table{height:auto;align-self:start;}

#pdPrestadoresBlock .pd-panel--table{display:flex;flex-direction:column;min-height:0;height:100%;}
#pdPrestadoresBlock .pd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--pd-border);background:transparent;}
#pdPrestadoresBlock .pd-panel-title{font-size:var(--qpd-section-size,13px);line-height:1.3;font-weight:600;letter-spacing:-.02em;color:var(--qpd-text-ink,color-mix(in oklch,var(--pd-ink,#0f172a) 90%,transparent 10%));}
#pdPrestadoresBlock .pd-panel-actions{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;justify-content:flex-end;}
#pdPrestadoresBlock .pd-mini{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 9px;border-radius:999px;border:1px solid var(--pd-pill-border);background:var(--pd-pill-bg);font-size:var(--qpd-note-size,11px);line-height:1;font-weight:400;letter-spacing:-.01em;color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 58%,transparent 42%));white-space:nowrap;}

#pdPrestadoresBlock .pd-table{padding:6px 12px 10px;flex:1 1 auto;min-height:0;overflow:visible;}
#pdPrestadoresBlock .pd-panel--table:not(.is-expanded) .pd-table > .pd-tr:nth-child(n+8){display:none;}

#pdPrestadoresBlock .pd-table--cov .pd-tr,
#pdPrestadoresBlock .pd-table--cov .pd-th{display:grid;grid-template-columns:minmax(0,2.8fr) minmax(84px,1fr) minmax(84px,1fr);align-items:center;gap:10px;}

#pdPrestadoresBlock .pd-th{padding:6px 8px 8px;background:var(--pd-card-bg,var(--surface,#fff));border-radius:0;font-size:var(--qpd-note-size,10px);line-height:1.35;font-weight:var(--qpd-data-weight,600);letter-spacing:normal;text-transform:none;color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 42%,transparent 58%));}
#pdPrestadoresBlock .pd-th>div:nth-child(2),
#pdPrestadoresBlock .pd-th>div:nth-child(3){text-align:center;}

#pdPrestadoresBlock .pd-tr:not(.pd-th){margin-top:0;padding:10px 8px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:var(--qpd-data-size,12.5px);line-height:1.4;color:var(--qpd-text-ink,color-mix(in oklch,var(--pd-ink,#0f172a) 82%,transparent 18%));}
#pdPrestadoresBlock .pd-tr:not(.pd-th)+.pd-tr:not(.pd-th){border-top:1px solid var(--qpd-divider-soft,var(--pd-border));}
#pdPrestadoresBlock .pd-tr:not(.pd-th)>div:nth-child(2),
#pdPrestadoresBlock .pd-tr:not(.pd-th)>div:nth-child(3){text-align:center;font-weight:var(--qpd-data-weight,600);color:var(--qpd-text-ink,color-mix(in oklch,var(--pd-ink,#0f172a) 72%,transparent 28%));}

#pdPrestadoresBlock .pd-cell-prestador{display:flex;align-items:center;gap:9px;min-width:0;padding-left:2px;font-weight:500;color:var(--qpd-text-ink,color-mix(in oklch,var(--pd-ink,#0f172a) 90%,transparent 10%));white-space:normal;overflow-wrap:anywhere;line-height:1.4;}

#pdPrestadoresBlock .pd-empty{display:flex;align-items:center;min-height:74px;padding:20px 18px 22px;font-size:var(--qpd-body-size,14px);line-height:1.5;color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 54%,transparent 46%));}
#pdPrestadoresBlock .pd-empty.muted{color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 54%,transparent 46%));}

/* Toggle */
#pdPrestadoresBlock .pd-panel-foot{display:flex;justify-content:center;padding:14px 12px 16px;border-top:1px solid var(--qpd-divider-soft,var(--pd-border));margin-top:6px;}
#pdPrestadoresBlock .pd-toggle-block{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 4px;border:0;border-radius:999px;background:transparent;font-size:var(--qpd-action-size,12px);line-height:1.4;font-weight:var(--qpd-data-weight,600);letter-spacing:-.01em;color:var(--brand);cursor:pointer;box-shadow:none;transition:color .14s ease,opacity .14s ease,background-color .14s ease;}
#pdPrestadoresBlock .pd-toggle-block:active{transform:none;}
#pdPrestadoresBlock .pd-toggle-block:focus-visible{outline:2px solid transparent;box-shadow:var(--qv-ring0),var(--qv-ring1);border-radius:999px;}

/* Hover */
@media (hover:hover){
  #pdPrestadoresBlock .pd-tr:not(.pd-th):hover{background:color-mix(in oklch,var(--surface,#fff) 95%,var(--bg-subtle,#f4f8ff) 5%);}
  #pdPrestadoresBlock .pd-toggle-block:hover{background:transparent;}
}

/* ==========================================================================
   06. Responsive específico de la capa nueva
   ========================================================================== */
@media (max-width:640px){
#pdPrestadoresBlock{gap:18px;padding-bottom:18px;}
#pdPrestadoresBlock.pd-prestadores-stack{gap:18px;}
#pdPrestadoresBlock .pd-panel{border-radius:18px;}
#pdPrestadoresBlock .pd-prs-right{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding-top:14px;border-top:var(--pd-dash);}
#pdPrestadoresBlock .pd-prs-stat{align-items:flex-start;justify-content:flex-start;padding:0 10px;border-top:0;border-left:0;text-align:left;}
#pdPrestadoresBlock .pd-prs-stat:first-child{padding-left:0;}
#pdPrestadoresBlock .pd-prs-stat:last-child{padding-right:0;}
#pdPrestadoresBlock .pd-prs-stat:not(:first-child){border-left:1px dashed var(--qpd-divider,var(--pd-border));}
#pdPrestadoresBlock .pd-prs-stat-label,#pdPrestadoresBlock .pd-prs-stat-value,#pdPrestadoresBlock .pd-prs-stat-sub{text-align:left;line-height:1.5;}
#pdPrestadoresBlock .pd-prs-stat-label{font-size:var(--qpd-note-size,10px);line-height:1.2;letter-spacing:normal;text-transform:none;}
#pdPrestadoresBlock .pd-prs-stat-value{margin-top:6px;font-size:24px;line-height:.96;}
#pdPrestadoresBlock .pd-prs-stat-sub{margin-top:6px;font-size:var(--qpd-note-size,11.5px);line-height:1.5;text-wrap:pretty;}

#pdPrestadoresBlock .pd-prs-networkSplit{grid-template-columns:1fr;gap:14px;}
#pdPrestadoresBlock .pd-panel-head{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 16px;}
#pdPrestadoresBlock .pd-panel-title{font-size:var(--qpd-section-size,14px);line-height:1.3;letter-spacing:-.01em;}
#pdPrestadoresBlock .pd-panel-actions{width:100%;justify-content:flex-start;gap:8px;}
#pdPrestadoresBlock .pd-mini{max-width:100%;min-height:24px;padding:0 10px;font-size:var(--qpd-note-size,12px);line-height:1;font-weight:400;}

#pdPrestadoresBlock .pd-table{padding:6px 10px 10px;overflow:visible;}
#pdPrestadoresBlock .pd-table--cov .pd-tr,#pdPrestadoresBlock .pd-table--cov .pd-th{grid-template-columns:minmax(0,1fr) minmax(44px,44px) minmax(44px,44px);gap:8px;}
#pdPrestadoresBlock .pd-th{padding:6px 6px 8px;font-size:var(--qpd-note-size,10px);line-height:1.35;letter-spacing:normal;text-transform:none;}
#pdPrestadoresBlock .pd-th>div:nth-child(2),#pdPrestadoresBlock .pd-th>div:nth-child(3){position:relative;min-width:44px;text-align:right;color:transparent;}
#pdPrestadoresBlock .pd-th>div:nth-child(2)::after{content:"%Hosp.";position:absolute;right:0;top:0;display:block;width:44px;text-align:right;color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 42%,transparent 58%));}
#pdPrestadoresBlock .pd-th>div:nth-child(3)::after{content:"%Amb.";position:absolute;right:0;top:0;display:block;width:44px;text-align:right;color:var(--qpd-text-muted,color-mix(in oklch,var(--pd-ink,#0f172a) 42%,transparent 58%));}
#pdPrestadoresBlock .pd-tr:not(.pd-th){padding:10px 6px;font-size:var(--qpd-data-size,13.5px);line-height:1.4;}
#pdPrestadoresBlock .pd-tr:not(.pd-th)>div:nth-child(2),#pdPrestadoresBlock .pd-tr:not(.pd-th)>div:nth-child(3){min-width:44px;font-size:var(--qpd-data-size,13px);text-align:right;}
#pdPrestadoresBlock .pd-cell-prestador{display:flex;align-items:center;gap:8px;min-width:0;padding-left:0;font-size:var(--qpd-data-size,13.5px);line-height:1.4;}
#pdPrestadoresBlock .pd-empty{min-height:64px;padding:16px;font-size:var(--qpd-body-size,13.5px);line-height:1.5;}

#pdPrestadoresBlock .pd-panel-foot{padding:14px 10px 16px;margin-top:4px;}
#pdPrestadoresBlock .pd-toggle-block{font-size:var(--qpd-action-size,13.5px);line-height:1.4;}

}

/* Comparación de coberturas: una tabla, sin tarjetas anidadas. */
#pdPrestadoresBlock .pd-prs-coverage-card{padding:24px;}
#pdPrestadoresBlock .pd-prs-coverage-title{margin:0;font-size:var(--qpd-section-size,14px);font-weight:600;line-height:1.25;color:var(--qpd-text-ink,var(--pd-ink-90));}
#pdPrestadoresBlock .pd-prs-coverage{margin-top:24px;}
#pdPrestadoresBlock .pd-prs-coverage-intro{margin:0 0 20px;font-size:var(--qpd-body-size,14px);line-height:1.5;color:var(--qpd-text-muted,var(--pd-ink-90));}
#pdPrestadoresBlock .pd-prs-coverage-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:var(--qpd-data-size,14px);line-height:1.4;}
#pdPrestadoresBlock .pd-prs-coverage-table th,#pdPrestadoresBlock .pd-prs-coverage-table td{padding:14px 12px;border-bottom:1px solid var(--qpd-divider-soft,var(--pd-border));text-align:right;white-space:normal;overflow-wrap:anywhere;}
#pdPrestadoresBlock .pd-prs-coverage-table th:first-child{text-align:left;width:38%;padding-left:0;}
#pdPrestadoresBlock .pd-prs-coverage-table thead th{font-size:var(--qpd-note-size,12px);font-weight:500;color:var(--qpd-text-muted,var(--pd-ink-62));}
#pdPrestadoresBlock .pd-prs-coverage-table tbody th{font-weight:400;color:var(--qpd-text-ink,var(--pd-ink-90));}
#pdPrestadoresBlock .pd-prs-coverage-table td{font-weight:500;color:var(--qpd-text-ink,var(--pd-ink-90));font-variant-numeric:tabular-nums;}
#pdPrestadoresBlock .pd-prs-coverage-table thead th{border-bottom-color:var(--qpd-divider,var(--pd-border));}
#pdPrestadoresBlock .pd-prs-coverage-table tbody tr:last-child :is(th,td){border-bottom:0;}
#pdPrestadoresBlock .pd-prs-coverage-note{margin:16px 0 0;font-size:var(--qpd-note-size,12px);line-height:1.5;color:var(--qpd-text-muted,var(--pd-ink-62));}
@media(max-width:600px){
  #pdPrestadoresBlock .pd-prs-coverage-table th,#pdPrestadoresBlock .pd-prs-coverage-table td{padding:12px 6px;}
  #pdPrestadoresBlock .pd-prs-coverage-table th:first-child{width:36%;padding-left:0;}
}

/* Distribuciones hospitalaria y ambulatoria, sin tarjetas internas. */
#pdPrestadoresBlock .pd-prs-distributions{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;margin-top:24px;}
#pdPrestadoresBlock .pd-prs-distributions::before{content:"";position:absolute;inset:0 auto 0 50%;width:1px;background:var(--qpd-divider,var(--pd-border));pointer-events:none;}
#pdPrestadoresBlock .pd-prs-distribution{min-width:0;}
#pdPrestadoresBlock .pd-prs-distribution h4{margin:0 0 18px;font-size:var(--qpd-label-size,13px);line-height:1.3;font-weight:600;color:var(--qpd-text-ink,var(--pd-ink-90));}
#pdPrestadoresBlock .pd-prs-bars{display:grid;gap:14px;}
#pdPrestadoresBlock .pd-prs-bar-row{display:grid;grid-template-columns:40px minmax(0,1fr) 96px;gap:12px;align-items:center;}
#pdPrestadoresBlock .pd-prs-bar-label{font-size:var(--qpd-data-size,13px);color:var(--qpd-text-ink,var(--pd-ink-80));}
#pdPrestadoresBlock .pd-prs-bar-track{height:8px;border-radius:999px;overflow:hidden;background:var(--qpd-chart-track,#e5e7eb);}
#pdPrestadoresBlock .pd-prs-bar-fill{height:100%;border-radius:inherit;background:var(--qpd-chart-fill,#b7c1ce);}
#pdPrestadoresBlock .pd-prs-bar-meta{text-align:right;font-size:var(--qpd-note-size,12px);color:var(--qpd-text-muted,var(--pd-ink-62));font-variant-numeric:tabular-nums;white-space:nowrap;}
#pdPrestadoresBlock .pd-prs-barsNote{margin:18px 0 0;font-size:var(--qpd-note-size,12px);line-height:1.5;color:var(--qpd-text-muted,var(--pd-ink-62));}
@media(max-width:640px){
  #pdPrestadoresBlock .pd-prs-distributions{grid-template-columns:1fr;gap:28px;}
  #pdPrestadoresBlock .pd-prs-distributions::before{display:none;}
}
