/* Importar tipografía futurista */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&display=swap');

body {
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ecf0f1;
}

/* Contenedor principal con efecto glass */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Títulos */
h1, h2, h3 {
    color: #00d4ff;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    transition: transform 0.3s ease, color 0.3s ease;
}

h1:hover, h2:hover, h3:hover {
    transform: scale(1.05);
    color: #00ffcc;
}

/* Secciones de formulario */
.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ecf0f1;
}

input, select {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    outline: none;
}

/* Estilo de botones futurista */
button {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

button:hover {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    transform: scale(1.08);
    box-shadow: 0 0 15px #00c6ff, 0 0 25px #0072ff;
}

/* Botón para eliminar */
.remove-btn {
    background: linear-gradient(135deg, #ff4b2b, #ff416c);
}

.remove-btn:hover {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    box-shadow: 0 0 15px #ff4b2b, 0 0 25px #ff416c;
}

/* Tarjetas de cursos y grupos */
.course-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0,198,255,0.4);
}

.group-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
}

/* Items de horarios */
.schedule-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.schedule-item > div {
    flex: 1;
    min-width: 120px;
}

/* Resultados y combinaciones */
.results {
    margin-top: 30px;
}

.combination {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.combination h3 {
    margin-top: 0;
    color: #00d4ff;
}

.course-schedule {
    margin-left: 20px;
    margin-bottom: 10px;
}

.time-slots {
    font-style: italic;
    color: #7f8c8d;
}

/* Opciones de preferencia */
.preference-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.preference-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

.preference-btn:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 0 15px #2ecc71, 0 0 25px #27ae60;
}

/* Tabla visual del horario */
.schedule-visual {
    margin-top: 15px;
    border-collapse: collapse;
    width: 100%;
    color: #ecf0f1;
}

.schedule-visual th, .schedule-visual td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px;
    text-align: center;
}

.schedule-visual th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Bloques de horario con neón */
.schedule-block {
    background-color: #00c6ff;
    color: white;
    border-radius: 4px;
    padding: 5px;
    margin: 2px 0;
    font-size: 13px;
    box-shadow: 0 0 10px #00c6ff, 0 0 20px #0072ff;
}

.morning-block {
    background-color: #00c6ff;
}

.afternoon-block {
    background-color: #e67e22;
    box-shadow: 0 0 10px #e67e22, 0 0 20px #f39c12;
}

.evening-block {
    background-color: #9b59b6;
    box-shadow: 0 0 10px #9b59b6, 0 0 20px #8e44ad;
}

/* Badges */
.rating {
    font-weight: bold;
    color: #f39c12;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
    display: inline-block;
    color: white;
}

.perfect-badge {
    background-color: #2ecc71;
}

.good-badge {
    background-color: #f1c40f;
}

.regular-badge {
    background-color: #e67e22;
}

.bad-badge {
    background-color: #e74c3c;
}

/* Caja de advertencia */
.warning-box {
    background-color: rgba(255, 243, 205, 0.2);
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin-bottom: 20px;
    color: #fff8dc;
}

/* Checkbox para selección de cursos */
.course-checkbox {
    margin-right: 10px;
}

.course-option {
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* Responsivo */
@media (max-width: 768px) {
    .schedule-item {
        flex-direction: column;
    }
    .schedule-item > div {
        width: 100%;
    }
    .preference-options {
        flex-direction: column;
    }
}












.schedule-visual {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.schedule-visual th, 
.schedule-visual td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px;
    text-align: center;
}

.schedule-visual th {
    background-color: rgba(255, 255, 255, 0.05);
}

.schedule-block {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
}















.precision-mode {
    table-layout: auto;
}

.precision-mode th, 
.precision-mode td {
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.precision-block {
    transition: all 0.2s ease;
}

.precision-block:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
}





.precision-mode {
    border-collapse: collapse;
    width: 100%;
}

.precision-mode th, 
.precision-mode td {
    padding: 2px;
    border: 1px solid #ddd;
    text-align: center;
}

.precision-block {
    transition: all 0.2s ease;
    z-index: 1;
}

.precision-block:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
}











.unified-blocks {
    border-collapse: collapse;
    width: 100%;
}

.unified-blocks th, 
.unified-blocks td {
    padding: 0;
    border: 1px solid #ddd;
    text-align: center;
}

.unified-block {
    transition: all 0.3s ease;
    z-index: 1;
}

.unified-block:hover {
    z-index: 10;
    transform: scale(1.03);
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    font-weight: bold;
}









.unified-blocks {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
}



.unified-block {
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    text-overflow: ellipsis;
}

.unified-block:hover {
    z-index: 10;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    font-weight: bold;
}









.unified-blocks {
    border-collapse: collapse;
    width: 100%;
    font-family: Arial, sans-serif;
}



.unified-block {
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

.unified-block:hover {
    z-index: 10;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2), 0 0 15px rgba(0,0,0,0.2);
}

.unified-block span {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}







