/* General */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #f0f2f5; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0;
} 

.container { 
    background: white; 
    padding: 40px; 
    border-radius: 15px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); 
    width: 400px; 
    text-align: left; 
} 

img.logo {
    display: block;
    margin: 0 auto 20px auto; /* centrado horizontal + espacio debajo */
    max-width: 150px;
}

.container h2 {
    text-align: center;
    margin-bottom: 20px; /* opcional, para separar del formulario */
}

input, select, button { 
    width: 90%; 
    padding: 10px; 
    margin: 8px 0; 
    border-radius: 8px; 
    border: 1px solid #ccc; 
    font-size: 1rem; 
    box-sizing: border-box;
} 

select option {
    background: white;
    color: black;
    padding: 5px;
}

button { 
    background: #007BFF; 
    color: white; 
    border: none; 
    cursor: pointer; 
    font-weight: bold; 
} 

button:hover { 
    background: #0056b3; 
} 

.error { 
    color: red; 
} 

.success { 
    color: green; 
    font-weight: bold; 
} 

.container label {
    font-style: italic ;
    color: #000080 ;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif ;
    text-align: left ;
    display: block; 
    width: 100%;
    margin-bottom: 5px;
}

/* Switch federado en línea con el texto, sin partir el texto */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
}

.toggle-container label.toggle-text {
    font-style: italic;
    color: #000080;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: inline;
    flex: 1;
    margin-bottom: 0;
    white-space: normal;
    max-width: 75%;
}

.toggle-container .switch {
    flex: none;
    width: 1.5cm;
    height: 24px;
}

/* Switch visual */
.switch { 
    position: relative; 
    display: inline-block; 
    width: 1.5cm;    
    height: 24px; 
    flex-shrink: 0;
} 

.switch input { 
    display:none; 
} 

.slider { 
    position: absolute; 
    cursor: pointer; 
    background-color: #ccc; 
    border-radius: 24px; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    transition: .4s; 
} 

.slider:before { 
    position: absolute; 
    content: ""; 
    height: 18px; 
    width: 18px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    border-radius: 50%; 
    transition: .4s; 
} 

input:checked + .slider { 
    background-color: #007BFF; 
} 

input:checked + .slider:before { 
    transform: translateX(26px); 
} 

.slider.round { 
    border-radius: 24px; 
} 

/* Casilla privacidad alineada con texto */
.privacidad-container {
    display: flex;
    flex-direction: row;     /* Pone el texto debajo del checkbox */
    align-items: flex-start;    /* Alinea todo al margen izquierdo */
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.privacidad-label {
    margin-top: 5px;
    color: #222;
    line-height: 1.4;
}
.privacidad-label a {
    color: #007BFF;
    text-decoration: underline;
}
.privacidad-label a:hover {
    color: #0056b3;
}

/* Ajuste del contenedor en móviles */
@media (max-width: 450px) {
    .container {
        width: 90%; /* ocupa la mayor parte de la pantalla */
        padding: 20px; /* menos padding */
    }

    input, select, button {
        width: 100%; /* ocupan todo el ancho disponible */
    }

    img.logo {
        max-width: 80%; /* se reduce en pantallas pequeñas */
    }
}


.formulario-texto {
    font-weight: bold;        /* negrita */
    font-style: italic;       /* cursiva */
    font-size: 0.9rem;        /* más pequeño que el h2 */
    color: #000080;           /* azul marino */
    margin-bottom: 10px;      /* espacio debajo del texto */
    text-align: center;       /* centrado horizontal */
}

