/* ==========================================================================
   Horario de Clases - Tabla Semanal con Navegación
   ========================================================================== */

.horario-clases-wrapper {
    max-width: 960px;
    margin: 60px auto;
    padding: 0 16px;
    font-family: inherit;
}

/* Header */
.horario-clases-header {
    text-align: center;
    margin-bottom: 32px;
}

.horario-clases-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.horario-clases-subtitulo {
    font-size: 14px;
    color: #666;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================
   Navegación semanal
   ========================================== */

.horario-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.horario-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid #d4c08a;
    border-radius: 50%;
    background: #fff;
    color: #5c4a1e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.horario-nav-btn:hover {
    background: #e8d5a0;
    color: #3a2e0f;
}

.horario-nav-btn:active {
    transform: scale(0.93);
}

.horario-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.horario-nav-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 180px;
    text-align: center;
}

/* Loading state */
#horario-inner.horario-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s;
}

/* ==========================================
   Table
   ========================================== */

.horario-clases-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.horario-clases-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Thead */
.horario-clases-table thead th {
    background: #e8d5a0;
    color: #5c4a1e;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: center;
    border: none;
}

.horario-clases-table thead th:first-child {
    border-radius: 12px 0 0 0;
}

.horario-clases-table thead th:last-child {
    border-radius: 0 12px 0 0;
}

.horario-th-dia {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.horario-th-num {
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}

/* Body cells */
.horario-clases-table tbody td {
    padding: 10px 6px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
    height: 90px;
}

.horario-clases-table tbody tr:last-child td {
    border-bottom: none;
}

/* Hora column */
.horario-col-hora {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    min-width: 90px;
    background: #fafafa;
}

.horario-clases-table thead .horario-col-hora {
    background: #d4c08a;
}

/* Empty state */
.horario-empty {
    padding: 48px 16px !important;
    font-size: 15px;
    color: #999;
    height: auto !important;
}

/* Class cell block */
.horario-clase-celda {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 12px 8px;
    border-radius: 10px;
    min-height: 70px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horario-clase-celda:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.horario-clase-celda strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.horario-clase-celda span {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.85;
}

/* Hover en fila */
.horario-clases-table tbody tr:hover {
    background: #fafaf5;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .horario-clases-wrapper {
        margin: 32px auto;
    }

    .horario-clases-titulo {
        font-size: 22px;
    }

    .horario-clases-subtitulo {
        font-size: 13px;
    }

    .horario-nav-label {
        font-size: 14px;
        min-width: 140px;
    }

    .horario-clases-table thead th {
        font-size: 11px;
        padding: 8px 6px;
    }

    .horario-th-num {
        font-size: 15px;
    }

    .horario-clases-table tbody td {
        padding: 6px 4px;
        height: 75px;
    }

    .horario-clase-celda {
        padding: 8px 4px;
        min-height: 60px;
    }

    .horario-clase-celda strong {
        font-size: 11px;
    }

    .horario-clase-celda span {
        font-size: 10px;
    }
}
