:root {
    --blue-main: #0047cc;
    --blue-dark: #0035a8;
    --green-success: #28a745;
    --orange-warning: #f59e0b;
    --red-danger: #dc3545;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Inter', sans-serif;

    
    
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-bottom: 70px; /* Espacio para nav inferior */
}

/* HEADER MINIMALISTA */
header {
    background-color: var(--blue-main);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; z-index: 1000;
}

header h2 { font-size: 1.1rem; font-weight: 700; }
header i { font-size: 1.3rem; }

/* CONTENEDORES */
.contenedor-principal {
    max-width: 500px; /* Mantiene el look móvil en PC */
    margin: 0 auto;
    padding: 10px;
}

/* SELECTOR DE FECHA */
.date-selector {
    background: white;
    margin: 10px auto;
    padding: 8px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#dateInput {
    border: none; font-weight: 600; font-size: 0.9rem; color: var(--text-main);
}

/* TARJETAS RESUMEN - Arregla el tamaño gigante */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.summary-card {
    background: white;
    padding: 15px 10px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.summary-card.full {
    grid-column: span 2;
    background: var(--blue-main);
    color: white;
}

.summary-card p { font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; }
.summary-card h3 { font-size: 1.4rem; font-weight: 800; }

/* ACORDEONES */
.collapsible-container {
    background: white;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.collapsible-header {
    padding: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* GRÁFICOS - Solución al tamaño desbordado */
.chart-container {
    position: relative;
    height: 220px; /* Tamaño controlado */
    width: 100%;
    margin-bottom: 20px;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 380px;
    border-radius: 20px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

/* NAV INFERIOR - Iconos y texto */
.bottom-nav {
    position: fixed; bottom: 0; width: 100%;
    background: var(--blue-main);
    display: flex; height: 60px;
    z-index: 1000;
}

.nav-item {
    flex: 1; color: white; opacity: 0.7;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 0.7rem;
}

.nav-item i { font-size: 1.2rem; margin-bottom: 3px; }
.nav-item.active { opacity: 1; font-weight: 700; }


/* BANNER DE INSTALACIÓN */
.install-banner {
    position: fixed; bottom: 70px; left: 10px; right: 10px;
    background: white; padding: 12px;
    border-radius: 12px; display: flex; align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1100;
}

.install-icon { width: 40px; height: 40px; border-radius: 8px; margin-right: 12px; }
.install-text h4 { font-size: 0.9rem; }
.install-text p { font-size: 0.75rem; color: var(--text-muted); }
.install-btn {
    background: var(--blue-main); color: white; border: none;
    padding: 6px 12px; border-radius: 6px; margin-left: auto;
    font-weight: 700; font-size: 0.8rem;
}

