/* =====================================================
   HORARIOS - Diseņo Moderno 2024
   ===================================================== */

.horarios-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.horarios-hero {
    background: linear-gradient(135deg, #d4a853 0%, #c9952c 50%, #b8860b 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(212, 168, 83, 0.3);
}

.horarios-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.horarios-hero p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.selector-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.selector-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.selector-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f5;
}

.selector-card-header .icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.icon-carrera {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.icon-grupo {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.icon-horario {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.icon-clase {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.selector-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

.selector-card-header .step-badge {
    background: #e8e8e8;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.step-badge.active {
    background: linear-gradient(135deg, #d4a853 0%, #c9952c 100%);
    color: white;
}

.form-label-custom {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom,
.form-select-custom {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control-custom:focus,
.form-select-custom:focus {
    border-color: #d4a853;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
    outline: none;
}

.btn-primary-gold {
    background: linear-gradient(135deg, #d4a853 0%, #c9952c 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 168, 83, 0.4);
    color: white;
}

.btn-success-modern {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
}

.btn-success-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
    color: white;
}

.btn-danger-modern {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-danger-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid #e2e8f0;
    background: white;
    color: #4a5568;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-custom:hover {
    border-color: #d4a853;
    color: #d4a853;
    background: rgba(212, 168, 83, 0.05);
}

.selection-info {
    background: linear-gradient(135deg, #f6f9fc 0%, #edf2f7 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-left: 4px solid #d4a853;
}

.selection-info .info-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selection-info .info-value {
    font-size: 1rem;
    color: #2d3748;
    font-weight: 600;
    margin-top: 0.25rem;
}

.clases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.clase-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4a853, #f5af19);
}

.clase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.clase-card .materia-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.clase-card .profesor-name {
    color: #718096;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.clase-card .horario-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.clase-card .horario-badge {
    background: #f7fafc;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.clase-card .delete-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clase-card .delete-btn:hover {
    background: #dc2626;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #a0aec0;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 2rem;
}

.loading-state .spinner-border {
    color: #d4a853;
    width: 3rem;
    height: 3rem;
}

.alert-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    min-width: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.horarios-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
}

.horarios-table-modern thead th {
    background: #f7fafc;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

.horarios-table-modern tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #2d3748;
}

.horarios-table-modern tbody tr:hover {
    background: #fafafa;
}

.form-section {
    background: linear-gradient(135deg, #fefefe 0%, #f8f9fa 100%);
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group-modern {
    display: flex;
    gap: 0.5rem;
}

.input-group-modern .form-control-custom {
    flex: 1;
}

.input-group-modern .btn {
    border-radius: 10px;
    padding: 0.75rem 1rem;
}
