/* ============================================
   TABLA DE HORARIO DE ATENCIÓN 2026
   ============================================ */

.horario-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
}

.horario-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #dee2e6;
}

.horario-subtitle {
    font-size: 1.1rem;
    color: #495057;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.horario-subtitle i {
    color: #2c7da0;
    margin-right: 10px;
    font-size: 1.3rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.horario-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    font-size: 0.95rem;
}

.horario-table thead {
    background: linear-gradient(135deg, #1e6091 0%, #2c7da0 100%);
    color: white;
}

.horario-table th {
    padding: 16px 12px;
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.horario-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.horario-table tbody tr {
    transition: all 0.3s ease;
}

.horario-table tbody tr:hover {
    background-color: #f1f9ff;
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Colores para los días */
.dia {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    margin: 2px;
}

.dia.lunes { background: #e3f2fd; color: #1565c0; }
.dia.martes { background: #fff3e0; color: #e65100; }
.dia.miercoles { background: #e8f5e9; color: #2e7d32; }
.dia.jueves { background: #fce4ec; color: #c62828; }
.dia.viernes { background: #f3e5f5; color: #6a1b9a; }

.hora {
    display: inline-block;
    font-weight: 600;
    color: #2c7da0;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .horario-container {
        padding: 15px;
    }
    
    .horario-table thead {
        display: none;
    }
    
    .horario-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border-radius: 16px;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 15px;
    }
    
    .horario-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-bottom: 1px solid #e9ecef;
        padding: 12px 10px;
    }
    
    .horario-table td:last-child {
        border-bottom: none;
    }
    
    .horario-table td::before {
        content: attr(data-label);
        font-weight: 700;
        text-align: left;
        color: #1e6091;
        font-size: 0.85rem;
    }
    
    .dia, .hora {
        display: inline-block;
        text-align: center;
    }
}

/* Footer de la tabla */
.horario-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.horario-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.legend-title {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.legend-item {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.legend-item.lunes { background: #e3f2fd; color: #1565c0; }
.legend-item.martes { background: #fff3e0; color: #e65100; }
.legend-item.miercoles { background: #e8f5e9; color: #2e7d32; }
.legend-item.jueves { background: #fce4ec; color: #c62828; }
.legend-item.viernes { background: #f3e5f5; color: #6a1b9a; }

.horario-nota {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 15px;
}

.horario-nota i {
    color: #ffc107;
    margin-right: 8px;
}

/* Animación de entrada */
.horario-container {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}