/* Malla Curricular CSS - EduConnect */

/* Contenedor principal */
.malla-container {
    margin-top: 80px;
    padding: 40px 20px;
    font-family: "Castoro", serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Header de la página */
.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 3rem;
    color: #4a90e2;
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Grid de semestres */
.malla-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 50px;
}

/* Tarjeta de semestre */
.semestre-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    position: relative;
    overflow: hidden;
}

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

/* Header del semestre */
.semestre-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.semestre-header h2 {
    color: #4a90e2;
    font-size: 1.8rem;
    margin: 0;
    font-weight: bold;
}

.semestre-badge {
    background: linear-gradient(45deg, #4a90e2, #667eea);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

/* Lista de materias */
.materias-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Item de materia */
.materia-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4a90e2;
    cursor: pointer;
}

.materia-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.profesor-name {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
}

.profesor-name::before {
    content: "👨‍🏫";
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Sección de información */
.info-section {
    max-width: 1400px;
    margin: 0 auto;
}

.info-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.info-card h3 {
    color: #4a90e2;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: bold;
}

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(74, 144, 226, 0.1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #4a90e2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #4a90e2;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .malla-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 25px;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .malla-container {
        padding: 30px 15px;
    }
    
    .malla-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .semestre-card {
        padding: 20px;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .semestre-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .semestre-header h2 {
        font-size: 1.5rem;
    }
    
    .materia-name {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
