.reporte-wrap{
    width:min(1440px,calc(100% - 32px));
    margin:32px auto 64px;
    color:#172033;
}
.reporte-hero{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    padding:32px;
    border-radius:24px;
    background:linear-gradient(135deg,#0f172a,#1e3a8a);
    color:white;
    box-shadow:0 18px 45px rgba(15,23,42,.16);
}
.reporte-hero h1{font-size:clamp(2rem,4vw,3.4rem);font-weight:800;line-height:1.05;margin:8px 0 12px}
.reporte-hero p{max-width:760px;color:#dbeafe;font-size:1.02rem}
.reporte-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:800;color:#2563eb}
.reporte-hero .reporte-eyebrow{color:#93c5fd}
.reporte-panel{
    margin-top:22px;
    padding:24px;
    border:1px solid #e2e8f0;
    border-radius:20px;
    background:#fff;
    box-shadow:0 10px 30px rgba(15,23,42,.055);
}
.reporte-filtros{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.reporte-filtros label{display:grid;gap:6px;font-size:.86rem;font-weight:700;color:#475569}
.reporte-filtros input{
    min-width:180px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;
}
.btn-reporte{padding:11px 16px;border:0;border-radius:10px;font-weight:800;cursor:pointer}
.btn-primary{background:#2563eb;color:#fff}
.btn-secondary{background:#fff;color:#1e3a8a}
.reporte-meta{margin-top:14px;color:#64748b;font-size:.88rem}
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-top:22px}
.kpi-card{
    min-height:145px;padding:19px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;
    display:flex;flex-direction:column;justify-content:center;box-shadow:0 8px 24px rgba(15,23,42,.045)
}
.kpi-card span{font-size:.83rem;color:#64748b;font-weight:700}
.kpi-card strong{font-size:2rem;line-height:1;margin:12px 0 10px;color:#0f172a}
.kpi-card small{font-size:.78rem;color:#64748b}
.kpi-warning{border-color:#fed7aa;background:#fffaf5}
.reporte-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.panel-heading h2{font-size:1.35rem;font-weight:800;margin-top:4px;color:#0f172a}
.chart-box{height:320px}
.hallazgos-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.hallazgo{padding:18px;border-radius:15px;background:#f8fafc;border-left:4px solid #2563eb}
.hallazgo h3{font-size:1rem;font-weight:800;color:#0f172a}
.hallazgo p{margin-top:8px;color:#475569;line-height:1.65}
.nota{padding:13px 15px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px;color:#854d0e}
.proyecciones-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.proyeccion-card{display:grid;gap:8px;padding:21px;border-radius:16px;border:1px solid #dbeafe;background:#eff6ff}
.proyeccion-card span{text-transform:uppercase;font-size:.72rem;letter-spacing:.1em;font-weight:900;color:#1d4ed8}
.proyeccion-card strong{font-size:1.15rem;color:#0f172a}
.proyeccion-card b{font-size:1rem;color:#0f766e}
.proyeccion-card small{color:#64748b;line-height:1.45}
.plan-list{display:grid;gap:12px;padding-left:22px;color:#334155}
.plan-list li{padding-left:7px;line-height:1.55}
.table-responsive{overflow-x:auto}
.reporte-table{width:100%;border-collapse:collapse}
.reporte-table th,.reporte-table td{padding:12px 14px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:.87rem}
.reporte-table th{color:#475569;background:#f8fafc}
.badge-etapa{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e0e7ff;color:#3730a3;font-weight:800;font-size:.74rem}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){
    .reporte-wrap{width:min(100% - 20px,1440px);margin-top:15px}
    .reporte-hero{align-items:flex-start;flex-direction:column;padding:24px}
    .kpi-grid,.reporte-grid-2,.hallazgos-grid,.proyecciones-grid{grid-template-columns:1fr}
    .reporte-panel{padding:18px}
}
@media print{
    body{background:white!important}
    header,footer,#btnTop,a[href*="wa.me"],.reporte-filtros,.reporte-actions{display:none!important}
    .reporte-wrap{width:100%;margin:0}
    .reporte-hero{background:#fff;color:#0f172a;box-shadow:none;border:1px solid #cbd5e1}
    .reporte-hero p{color:#475569}
    .reporte-panel,.kpi-card{box-shadow:none;break-inside:avoid}
    .chart-box{height:260px}
}
