/* --- Estilos Generales --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 20px;
}

/* --- Encabezado --- */
.main-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #003366; /* Color institucional DGETI */
    color: white;
    padding: 15px;
    border-radius: 8px;
}

.logo-dgeti {
    width: 50px;
    height: auto;
    border-radius: 8px;
}

.main-header h1 {
    margin: 0;
    /*font-size: 2.5em;*/
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* --- Información del Plantel (usando Flexbox) --- */
.info-plantel {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background-color: #ffffff;
    color: #003366;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-plantel div {
    flex: 1 1 200px; /* Flex-grow, flex-shrink, flex-basis */
    text-align: center;
    padding: 5px;
}

.info-plantel span {
    font-weight: 200;
    display: block;
    color: #003366;
}

/* --- Estilos de la Tabla --- */
.schedule-container {
    overflow-x: auto; /* Para responsividad en móviles */
    margin-bottom: 20px;
}

.class-schedule {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.class-schedule caption {
    caption-side: top;
    font-size: 1.5em;
    font-weight: 700;
    padding: 10px;
    color: #003366;
}

.class-schedule th, .class-schedule td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.class-schedule thead {
    background-color: #005a9e;
    color: white;
}

.class-schedule tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.class-schedule tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Celdas con Colores y Combinadas --- */
.receso {
    background-color: #ffc107;
    font-weight: 700;
    letter-spacing: 5px;
    color: #333;
}

/* Colores de fondo para las materias */
.materia-calculo { background-color: #e3f2fd; }
.materia-ingles { background-color: #e8f5e9; }
.materia-fisica { background-color: #fff3e0; }
.materia-programacion { background-color: #f3e5f5; }
.materia-redes { background-color: #e0f7fa; }
.materia-bd { background-color: #ffebee; }
.materia-ecologia { background-color: #dcedc8; }
.materia-soporte { background-color: #fce4ec; }
.materia-ctsv { background-color: #e1f5fe; }
.materia-tutoria { background-color: #f0f4c3; }