/* Reset y base */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%);
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo i {
    font-size: 2rem;
    color: #667eea;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Secciones */
.section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #23272f;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #23272f;
}

.lead {
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.metric-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.metric-card h3 {
    color: #23272f;
    margin: 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.metric-card p {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Gráficos */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.chart-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.chart-card h4 {
    color: #23272f;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

canvas {
    width: 100% !important;
    height: 300px !important;
    background: linear-gradient(135deg, #e0e7ff 0%, #fff 100%);
    border-radius: 1.2rem;
    box-shadow: 0 2px 12px rgba(78,84,200,0.08);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { 
        display: none; 
    }
    
    .metrics-grid, .charts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section h1 {
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .metric-card {
        padding: 2rem 1.5rem;
    }
    
    .chart-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container { 
        padding: 0 15px; 
    }
    
    .logo { 
        font-size: 1.4rem; 
    }
    
    .header { 
        padding: 0.8rem 0; 
    }
    
    .section h1 {
        font-size: 2rem;
    }
    
    .metric-card h3 {
        font-size: 2rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card, .chart-card {
    animation: fadeInUp 0.6s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

.card, .modal-content {
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(78,84,200,0.18);
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(8px);
    border: none;
    animation: fadeInUp 0.7s;
}

.btn-primary, .btn-info, .btn-outline-primary, .btn-outline-info {
    border-radius: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(78,84,200,0.10);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-primary {
    background: linear-gradient(90deg, #8f94fb, #4e54c8);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #4e54c8, #8f94fb);
    color: #fff;
    transform: scale(1.05);
}
.btn-info {
    background: linear-gradient(90deg, #43e97b, #38f9d7);
    border: none;
    color: #23272f;
}
.btn-info:hover {
    background: linear-gradient(90deg, #38f9d7, #43e97b);
    color: #23272f;
    transform: scale(1.05);
}
.table {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.98);
}
.table th {
    background: #f3f4f6;
    color: #23272f;
    font-weight: 700;
}
.table-hover tbody tr:hover {
    background: #e0e7ff;
    transition: background 0.2s;
}
.form-control, .form-select {
    border-radius: 1rem;
    border: 1.5px solid #e0e7ff;
    background: rgba(255,255,255,0.95);
    font-weight: 500;
} 