.informes-body {
    display: block;
    align-items: initial;
    justify-content: initial;
    min-height: 100vh;
    background: #f1f1f1;
}

.informes-wrap {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.selector label {
    font-size: 0.9rem;
    color: #444;
}

.selector select {
    flex: 1;
    min-width: 260px;
    padding: 0.55rem 0.7rem;
    border: 1px solid #d5d7dc;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-print {
    padding: 0.6rem 1rem;
    background: var(--gasco-rojo);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    width: auto;
}

.btn-print:hover {
    background: var(--gasco-rojo-oscuro);
}

.muted {
    color: #666;
    font-size: 0.9rem;
}

.report {
    background: #fff;
    border-radius: 10px;
    border-top: 4px solid var(--gasco-rojo);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 1.75rem;
}

.report-header h2 {
    margin: 0 0 0.25rem;
    color: #1a1a1a;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: #f8f9fb;
    border: 1px solid #ececef;
    border-top: 3px solid var(--gasco-azul);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-unit {
    font-size: 0.9rem;
    font-weight: 400;
    color: #888;
    margin-left: 0.15rem;
}

.tendencia {
    margin-bottom: 1.5rem;
}

.tendencia-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.delta-pos { color: #1e7a34; }
.delta-neg { color: var(--gasco-rojo-oscuro); }
.delta-neutral { color: #666; }

h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    margin-top: 2rem;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

th {
    color: #555;
    font-weight: 600;
    background: #fafafa;
}

.badge-grupo {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.grupo-A { background: #e6f4ea; color: #1e7a34; }
.grupo-B { background: #fff4e5; color: #a15c00; }
.grupo-C { background: #fdecea; color: var(--gasco-rojo-oscuro); }
.grupo-D { background: #f1e5fd; color: #6a1cb3; }
.grupo-x { background: #eee; color: #666; }

.chart-evolucion {
    width: 100%;
    height: auto;
    max-width: 720px;
}

.grid-line {
    stroke: #eee;
    stroke-width: 1;
}

.axis-label {
    font-size: 10px;
    fill: #888;
}

.chart-point {
    transform-box: fill-box;
    transform-origin: center;
    animation: chart-point-pulse 2.4s ease-in-out infinite;
}

.chart-point-halo {
    transform-box: fill-box;
    transform-origin: center;
    animation: chart-point-halo 2.4s ease-out infinite;
}

@keyframes chart-point-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.5); }
}

@keyframes chart-point-halo {
    0%   { transform: scale(1);   opacity: 0.45; }
    100% { transform: scale(3.2); opacity: 0; }
}

@media print {
    .chart-point, .chart-point-halo {
        animation: none !important;
    }
}

.chart-legend {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.legend-item {
    font-size: 0.85rem;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.cmp-row {
    margin-bottom: 1rem;
}

.cmp-label {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.cmp-bars {
    margin-bottom: 0.25rem;
}

.cmp-bar-track {
    position: relative;
    background: #f0f0f2;
    border-radius: 999px;
    height: 14px;
    overflow: visible;
}

.cmp-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--gasco-azul);
}

.cmp-marker {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 20px;
    background: var(--gasco-rojo);
}

.cmp-values {
    font-size: 0.85rem;
    color: #333;
}

@media print {
    .no-print {
        display: none !important;
    }

    .informes-body, .informes-wrap {
        background: #fff;
        padding: 0;
        margin: 0;
        max-width: none;
    }

    .report {
        box-shadow: none;
        padding: 0;
    }

    table {
        font-size: 11px;
    }

    @page {
        margin: 1.2cm;
    }
}
