/**
 * Estilos para Selección de Carreras
 * Sistema de selección de carreras técnicas para alumnos de 1er semestre
 */

/* Contenedor principal */
.seleccion-carreras-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

/* Tarjeta principal */
.seleccion-carreras-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.seleccion-carreras-card h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.seleccion-carreras-card h3 {
    color: #34495e;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.seleccion-carreras-card h4 {
    color: #34495e;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Descripciones y textos informativos */
.seleccion-carreras-descripcion {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
}

.seleccion-carreras-info {
    background: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2c3e50;
}

.seleccion-carreras-info-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.seleccion-carreras-info-box h3 {
    color: #155724;
    margin-top: 0;
    font-size: 18px;
}

.seleccion-carreras-info-box p {
    color: #155724;
    margin: 8px 0 0 0;
}

.seleccion-carreras-nota {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px;
    margin-top: 20px;
    font-size: 13px;
    color: #856404;
}

/* Grupos de formulario */
.seleccion-carreras-form-group {
    margin-bottom: 20px;
}

.seleccion-carreras-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.seleccion-carreras-input,
.seleccion-carreras-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.seleccion-carreras-input:focus,
.seleccion-carreras-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.seleccion-carreras-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

/* Checkbox de confirmación */
.seleccion-carreras-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 2px solid #dee2e6;
    transition: all 0.3s;
}

.seleccion-carreras-checkbox-label:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.seleccion-carreras-checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.seleccion-carreras-checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}

/* Botones */
.seleccion-carreras-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 15px;
}

.seleccion-carreras-btn-primary {
    background: #3498db;
    color: #fff;
}

.seleccion-carreras-btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.seleccion-carreras-btn-success {
    background: #27ae60;
    color: #fff;
}

.seleccion-carreras-btn-success:hover:not(:disabled) {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.seleccion-carreras-btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.seleccion-carreras-btn-secondary:hover:not(:disabled) {
    background: #7f8c8d;
}

.seleccion-carreras-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensajes */
.seleccion-carreras-mensaje {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    font-size: 14px;
}

.seleccion-carreras-mensaje-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.seleccion-carreras-mensaje-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Datos del alumno */
.seleccion-carreras-datos-alumno {
    background: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.dato-alumno {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.dato-alumno:last-child {
    border-bottom: none;
}

.dato-label {
    font-weight: 600;
    color: #495057;
    min-width: 100px;
}

.dato-valor {
    color: #2c3e50;
    font-size: 16px;
}

/* Divisor */
.seleccion-carreras-divider {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 25px 0;
}

/* Opciones guardadas */
.seleccion-carreras-opciones-guardadas {
    margin-top: 20px;
}

.opcion-guardada {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.opcion-numero {
    font-weight: 600;
    color: #3498db;
    min-width: 120px;
    font-size: 15px;
}

.opcion-carrera {
    color: #2c3e50;
    font-size: 16px;
}

/* Modal */
.seleccion-carreras-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.seleccion-carreras-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.seleccion-carreras-modal-content h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.modal-datos-confirmacion p,
.modal-opciones-confirmacion p {
    margin: 10px 0;
    font-size: 15px;
}

.modal-datos-confirmacion strong,
.modal-opciones-confirmacion strong {
    color: #2c3e50;
}

.modal-opciones-confirmacion {
    margin-top: 15px;
}

.modal-opciones-confirmacion h4 {
    color: #34495e;
    font-size: 16px;
    margin-bottom: 12px;
}

.modal-acciones {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-acciones .seleccion-carreras-btn {
    flex: 1;
    margin-top: 0;
}

/* Pasos */
.seleccion-carreras-paso {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .seleccion-carreras-wrapper {
        padding: 15px;
        margin: 20px auto;
    }
    
    .seleccion-carreras-card {
        padding: 20px;
    }
    
    .seleccion-carreras-card h2 {
        font-size: 20px;
    }
    
    .modal-acciones {
        flex-direction: column;
    }
    
    .dato-alumno {
        flex-direction: column;
    }
    
    .dato-label {
        margin-bottom: 5px;
    }
    
    .opcion-guardada {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .opcion-numero {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .seleccion-carreras-wrapper {
        padding: 10px;
    }
    
    .seleccion-carreras-card {
        padding: 15px;
    }
    
    .seleccion-carreras-card h2 {
        font-size: 18px;
    }
    
    .seleccion-carreras-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
