/* TOGLE BAR LO BONITOOOO*/
.switch-container {
    display: flex;
    justify-content: flex-end; /* Mueve el contenido (el toggle switch y banderas) a la derecha */
    align-items: center;
    gap: 10px; /* Espaciado entre los elementos */
    margin-left:50px;
}

/* Estado predeterminado del toggle switch - azul para inglés */
.switch input:checked + .slider {
    background-color: #2196f3; /* Azul cuando está en inglés */
}

/* Estado cuando el idioma es español - rojo */
.switch.es input:checked + .slider {
    background-color: #e63946; /* Rojo cuando está en español */
}

.switch.es input:checked + .slider:before {
    transform: translateX(25px); /* Mueve el círculo al lado derecho */
}

/* Estilos para las banderas */
.flag {
    width: 23px; /* Tamaño ajustado de las banderas */
    height: 23px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos del switch de idioma */
.switch {
    position: relative;
    display: inline-block;
    width: 57px;
    height: 28px;
}

.switch input {
    opacity: 0; /* Oculta el checkbox */
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3C3B6E ;
    transition: 0.4s;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Alinea los textos EN y ES */
    padding: 0 5px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
    left: 7px;
    bottom: 4px;
}

.text-en, .text-es {
    font-size: 11px;
    font-weight: bold;
    color:white;
    transition: opacity 0.3s ease;
}

.text-en {
    margin-left:4px;
}

.text-es {
    margin-right:4px;
}
