#horarios-profesor-container {
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

#horarios-main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.3);
}

#horarios-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#horarios-icon-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

#horarios-page-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

#horarios-title-divider {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin-left: 1rem;
}

#profesor-info-section {
    margin-bottom: 2rem;
}

#profesor-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.info-card-content {
    display: flex;
    flex-direction: column;
}

.info-card-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

#materias-resumen-section {
    margin-bottom: 2rem;
}

#materias-resumen-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

#materias-resumen-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

#materias-resumen-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

#materias-resumen-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

#materias-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.materia-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.materia-chip:hover {
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    color: white;
    border-color: transparent;
}

.materia-chip:hover i {
    color: white;
}

.materia-chip i {
    color: #b8860b;
    font-size: 0.85rem;
}

.materia-nombre {
    font-weight: 500;
}

.materia-grupo {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

#horario-card-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#horario-card-header {
    background: linear-gradient(135deg, #b8860b 0%, #d4a853 100%);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#horario-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

#horario-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

#horario-table-wrapper {
    padding: 1.5rem;
    overflow-x: auto;
}

.horario-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.horario-table th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
}

.horario-table th:first-child {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.horario-table td {
    padding: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    min-width: 120px;
}

.cell-horario {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.horario-time {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cell-dia {
    color: #999;
    font-size: 0.9rem;
}

.cell-dia.tiene-clase {
    background: rgba(184, 134, 11, 0.08);
    padding: 0.5rem;
}

.clase-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.clase-materia {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    line-height: 1.3;
}

.sin-clase {
    color: #ccc;
    font-size: 1rem;
}

.state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #b8860b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.state-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.state-icon-wrapper i {
    font-size: 2rem;
    color: #b8860b;
}

.state-text {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.state-subtext {
    font-size: 0.9rem;
    color: #666;
    margin: 0.5rem 0 0 0;
}

@media (max-width: 768px) {
    #horarios-profesor-container {
        padding: 1rem;
    }

    #horarios-page-title {
        font-size: 1.5rem;
    }

    #horarios-icon-wrapper img {
        width: 40px;
        height: 40px;
    }

    .horario-table th,
    .horario-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .horario-time {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .materia-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
