/* ===== Colores por sistema ===== */
body.sae10 {
    --color-principal: #007bff; /* Azul */
}

body.sae8 {
    --color-principal: #c0392b; /* Rojo */
}

body {
    --color-principal: #007bff;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Contenedor */
.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Título */
h2 {
    color: var(--color-principal);
    margin-bottom: 20px;
    text-align: center;
}

/* Inputs */
.input-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

select, input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

input:focus {
    border-color: var(--color-principal);
    box-shadow: 0 0 5px var(--color-principal);
    outline: none;
}

/* Resultados */
#resultados {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--color-principal);
    color: white;
}

td, th {
    padding: 10px;
    border: 1px solid #ddd;
}

tr:nth-child(even) {
    background: #f2f2f2;
}

tr:hover {
    background: #d6eaff;
}

/* ===== Toggle ===== */

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #e6b0aa;
    border-radius: 30px;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.switch input:checked + .slider {
    background: var(--color-principal);
}

.switch input:checked + .slider::before {
    transform: translateX(30px);
}


/* Colores fijos para etiquetas del toggle */
.sae10-text {
    color: #007bff; /* Azul */
    font-weight: bold;
}

.sae8-text {
    color: #c0392b; /* Rojo */
    font-weight: bold;
}


