/* ============================================
🎾 COURT SIGHT TENNIS - ESTADÍSTICAS CSS
🎨 TEMA: PRO CIRCUIT DARK (Tenis Premium Nocturno)
📦 VERSIÓN: 1.0 - KPIs + Gráficos + Análisis por escenario
============================================ */

/* ============================================
🔹 VARIABLES SEMÁNTICAS PARA ESTADÍSTICAS
============================================ */
:root {
    /* KPIs */
    --kpi-positive: #10b981;
    --kpi-negative: #ef4444;
    --kpi-neutral: #64748b;
    
    /* Escenarios */
    --scenario-validacion: #10b981;      /* Verde: validación */
    --scenario-inversion: #38bdf8;        /* Azul: inversión */
    --scenario-discrepancia: #f59e0b;     /* Ámbar: discrepancia */
    
    /* Gráficos */
    --chart-grid: rgba(51, 65, 85, 0.4);
    --chart-line: var(--accent);
    --chart-fill: rgba(184, 212, 50, 0.1);
    --chart-bar-validacion: var(--scenario-validacion);
    --chart-bar-inversion: var(--scenario-inversion);
    --chart-bar-discrepancia: var(--scenario-discrepancia);
    
    /* Tablas */
    --table-header: var(--bg-card);
    --table-row-hover: var(--accent-dim);
    
    /* Skeleton */
    --skeleton-base: rgba(51, 65, 85, 0.4);
    --skeleton-shine: rgba(184, 212, 50, 0.08);
}

/* ============================================
🔹 BASE & HEADER
============================================ */
.page-estadisticas {
    background: var(--bg-primary);
}

.main-estadisticas {
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: calc(100vh - 140px);
}

@media (min-width: 1024px) {
    .main-estadisticas {
        padding: 2rem 2.5rem;
        margin-left: 260px;
    }
}

.header-estadisticas {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1rem;
    min-height: 64px;
}

/* ============================================
🔹 SECCIÓN HEADER
============================================ */
.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.5rem 0;
}

.section-title i { color: var(--accent); font-size: 1.3rem; }

.section-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 500px;
    line-height: 1.5;
}

/* ============================================
🔹 KPIs GRID
============================================ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.kpi-content {
    flex: 1;
    min-width: 0;
}

.kpi-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.kpi-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.kpi-delta {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
}

.kpi-delta.positive { color: var(--kpi-positive); }
.kpi-delta.negative { color: var(--kpi-negative); }
.kpi-delta.neutral { color: var(--kpi-neutral); }

.kpi-sub {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
🔹 GRÁFICO PRINCIPAL
============================================ */
.chart-section {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.chart-title i { color: var(--accent); }

.chart-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.bank-dot { background: var(--chart-line); }

.chart-container {
    position: relative;
    height: 280px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.chart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.chart-empty p {
    font-size: 0.9rem;
    max-width: 280px;
}

/* ============================================
🔹 GRID DE ESCENARIOS
============================================ */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.scenario-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.scenario-card:hover {
    transform: translateY(-2px);
}

/* Colores por escenario */
.scenario-validacion { border-top: 3px solid var(--scenario-validacion); }
.scenario-inversion { border-top: 3px solid var(--scenario-inversion); }
.scenario-discrepancia { border-top: 3px solid var(--scenario-discrepancia); }

.scenario-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.scenario-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.scenario-validacion .scenario-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--scenario-validacion);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.scenario-inversion .scenario-icon {
    background: rgba(56, 189, 248, 0.15);
    color: var(--scenario-inversion);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.scenario-discrepancia .scenario-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--scenario-discrepancia);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.scenario-info { flex: 1; min-width: 0; }

.scenario-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.scenario-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.scenario-stake {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 0.3rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid var(--accent);
    white-space: nowrap;
}

/* Stats del escenario */
.scenario-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Gráfico del escenario */
.scenario-chart {
    flex: 1;
    min-height: 120px;
    position: relative;
}

.scenario-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ============================================
🔹 TABLA RESUMEN
============================================ */
.summary-section {
    margin-bottom: 2rem;
}

.summary-section .section-subtitle {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-section .section-subtitle i {
    color: var(--accent);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.summary-table thead {
    background: var(--table-header);
    border-bottom: 2px solid var(--border);
}

.summary-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.summary-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.summary-table tbody tr:hover {
    background: var(--table-row-hover);
}

.summary-table td {
    padding: 1rem;
    color: var(--text-secondary);
}

.summary-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.summary-table .mono {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
🔹 ESTADO SIN DATOS
============================================ */
.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.state-container.hidden { display: none; }

.state-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.state-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.state-container p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ============================================
🔹 RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .scenarios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-estadisticas { padding: 1rem 0.75rem 1.5rem; }
    .section-title { font-size: 1.3rem; }
    .section-subtitle { font-size: 0.85rem; }
    
    .kpi-grid { grid-template-columns: 1fr; }
    .kpi-card { padding: 1rem; }
    .kpi-value { font-size: 1.3rem; }
    
    .chart-container { height: 220px; }
    
    .scenario-stats { grid-template-columns: 1fr; }
    
    .summary-table th,
    .summary-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.2rem; }
    .chart-container { height: 180px; }
    .scenario-card { padding: 1rem; }
    .stat-value { font-size: 1rem; }
}

/* ============================================
🔹 UTILIDADES & ACCESIBILIDAD
============================================ */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

.mono {
    font-family: var(--font-mono);
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: -0.02em;
}

/* Scrollbar personalizado */
.table-responsive::-webkit-scrollbar { height: 8px; }
.table-responsive::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 4px; }
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
    transition: background 0.2s ease;
}
.table-responsive::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Focus visible */
.btn-cta:focus-visible,
.kpi-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
🔹 ANIMACIONES
============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.kpi-card,
.scenario-card,
.summary-table {
    animation: fadeInUp 0.3s ease-out;
    animation-fill-mode: both;
}

.kpi-card:nth-child(1) { animation-delay: 0.05s; }
.kpi-card:nth-child(2) { animation-delay: 0.1s; }
.kpi-card:nth-child(3) { animation-delay: 0.15s; }
.kpi-card:nth-child(4) { animation-delay: 0.2s; }

/* Desactivar animaciones en móvil para rendimiento */
@media (max-width: 768px) {
    .kpi-card, .scenario-card, .summary-table { animation: none !important; }
}
/* ============================================
🔧 FIX: HEADER COMPACTO UNIFICADO (Igual que Pronósticos)
📦 APLICAR EN: biblioteca.css y estadisticas.css
============================================ */

/* 1. Header base compacto */
.header-biblioteca,
.header-estadisticas {
    min-height: 64px !important;
    padding: 0.6rem 1rem !important;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 2. Contenido del header */
.header-biblioteca .header-content,
.header-estadisticas .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

/* 3. Logo compacto */
.header-biblioteca .logo-link,
.header-estadisticas .logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-biblioteca .logo-img,
.header-estadisticas .logo-img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}

.header-biblioteca .logo-text,
.header-estadisticas .logo-text {
    font-size: 1rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.header-biblioteca .logo-pro,
.header-estadisticas .logo-pro {
    font-size: 0.5rem !important;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* 4. Botón menú hamburguesa */
.header-biblioteca .menu-toggle,
.header-estadisticas .menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
}

.header-biblioteca .hamburger,
.header-estadisticas .hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.header-biblioteca .hamburger::before,
.header-biblioteca .hamburger::after,
.header-estadisticas .hamburger::before,
.header-estadisticas .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
}

.header-biblioteca .hamburger::before,
.header-estadisticas .hamburger::before { top: -6px; }
.header-biblioteca .hamburger::after,
.header-estadisticas .hamburger::after { top: 6px; }

/* 5. Estado de conexión compacto */
.header-biblioteca .connection-status,
.header-estadisticas .connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--data-negative);
    background: rgba(239, 68, 68, 0.1);
    color: var(--data-negative);
}

.header-biblioteca .connection-status.online,
.header-estadisticas .connection-status.online {
    border-color: var(--data-positive);
    background: rgba(16, 185, 129, 0.1);
    color: var(--data-positive);
}

.header-biblioteca .status-dot,
.header-estadisticas .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* 🔹 CRÍTICO: Sidebar y Overlay alineados debajo del header */
.sidebar {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
}

.sidebar-overlay {
    top: 64px !important;
    height: calc(100vh - 64px) !important;
}

/* Contenido principal: padding superior para no quedar detrás del header */
.main-biblioteca,
.main-estadisticas {
    padding-top: 1rem !important;
}

/* ============================================
📱 RESPONSIVE: Tablet (≤768px)
============================================ */
@media (max-width: 768px) {
    .header-biblioteca,
    .header-estadisticas {
        min-height: 60px !important;
        padding: 0.5rem 0.75rem !important;
    }
    
    .header-biblioteca .logo-text,
    .header-estadisticas .logo-text {
        font-size: 0.95rem !important;
    }
    
    .header-biblioteca .logo-pro,
    .header-estadisticas .logo-pro {
        font-size: 0.45rem !important;
        padding: 1px 3px;
    }
    
    .sidebar {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    
    .sidebar-overlay {
        top: 60px !important;
        height: calc(100vh - 60px) !important;
    }
    
    .main-biblioteca,
    .main-estadisticas {
        padding-top: 0.75rem !important;
    }
}

/* ============================================
📱 RESPONSIVE: Móvil pequeño (≤480px)
============================================ */
@media (max-width: 480px) {
    .header-biblioteca,
    .header-estadisticas {
        min-height: 56px !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .header-biblioteca .logo-text,
    .header-estadisticas .logo-text {
        font-size: 0.9rem !important;
    }
    
    .header-biblioteca .logo-pro,
    .header-estadisticas .logo-pro {
        font-size: 0.4rem !important;
        padding: 1px 3px;
    }
    
    .header-biblioteca .connection-status,
    .header-estadisticas .connection-status {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .sidebar {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
    }
    
    .sidebar-overlay {
        top: 56px !important;
        height: calc(100vh - 56px) !important;
    }
    
    .main-biblioteca,
    .main-estadisticas {
        padding-top: 0.5rem !important;
    }
}

/* ============================================
🔧 SOLUCIÓN DEFINITIVA: TABLAS COMO TARJETAS EN MÓVIL
📦 Reemplaza el media query anterior en estadisticas.css
============================================ */

@media (max-width: 600px) {
    
    /* 1. KPIs: 2 columnas compactas */
    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem;
    }
    .kpi-card { padding: 0.75rem; }
    .kpi-value { font-size: 1.1rem; }
    .kpi-label { font-size: 0.65rem; }

    /* 2. Gráfico: Altura fija y contenedor scrollable */
    .chart-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
    .chart-container {
        min-width: 320px; /* Ancho mínimo para que se vea bien */
        height: 220px;
    }

    /* 3. Escenarios: Una tarjeta por fila */
    .scenarios-grid {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .scenario-card {
        min-width: auto;
        padding: 1rem;
    }
    .scenario-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }
    .stat-item { padding: 0.4rem; }
    .stat-value { font-size: 0.9rem; }
    .stat-label { font-size: 0.65rem; }

    /* ============================================
    🔹 TABLA CONVERTIDA EN TARJETAS (MÓVIL)
    ============================================ */
    .summary-section {
        margin-top: 1.5rem;
    }
    
    /* Ocultar la tabla tradicional en móvil */
    .summary-table thead {
        display: none;
    }
    
    .summary-table,
    .summary-table tbody,
    .summary-table tr,
    .summary-table td {
        display: block;
        width: 100%;
    }
    
    .summary-table tr {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        margin-bottom: 0.75rem;
        padding: 0.75rem;
        box-shadow: var(--shadow-sm);
    }
    
    .summary-table td {
        padding: 0.5rem 0;
        text-align: left !important;
        border: none;
        font-size: 0.85rem;
        position: relative;
        padding-left: 45% !important; /* Espacio para la etiqueta */
    }
    
    .summary-table td:first-child {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        padding-left: 0.75rem !important;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0.5rem;
    }
    
    /* Añadir etiquetas con ::before */
    .summary-table td:nth-child(2)::before { content: "Apuestas"; }
    .summary-table td:nth-child(3)::before { content: "Aciertos"; }
    .summary-table td:nth-child(4)::before { content: "Win Rate"; }
    .summary-table td:nth-child(5)::before { content: "Stake Total"; }
    .summary-table td:nth-child(6)::before { content: "Retorno"; }
    .summary-table td:nth-child(7)::before { content: "Beneficio"; }
    .summary-table td:nth-child(8)::before { content: "Yield"; }
    
    .summary-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.75rem;
        top: 0.5rem;
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }
    
    .summary-table td:first-child::before {
        display: none;
    }
}

/* 📱 Móviles muy pequeños (<375px) */
@media (max-width: 375px) {
    .kpi-grid { grid-template-columns: 1fr !important; }
    .chart-container { min-width: 280px; height: 180px; }
    .scenario-stats { grid-template-columns: 1fr !important; }
    
    .summary-table td {
        font-size: 0.8rem;
        padding-left: 40% !important;
    }
    .summary-table td::before {
        font-size: 0.7rem;
    }
}

