/* Language Switch Styles */
.language-switch {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 30px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.1);
}

/* Círculo deslizante del switch */
.language-switch-slider {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #FE3F40;
    top: 3px;
    left: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 15;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(to bottom, #FE3F40, #FE3F40);
    pointer-events: none; /* Para que los clics pasen a través del círculo */
}

/* Posición del círculo cuando está en inglés */
.language-switch.en .language-switch-slider {
    transform: translateX(40px);
}

.language-switch-inner {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    justify-content: space-between;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100%;
    color: white;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 5;
    pointer-events: auto;
    position: relative;
}

/* Estilo para la opción activa */
.language-switch.es .language-option.es,
.language-switch.en .language-option.en {
    color: black;
    z-index: 10;
}

/* Estilo para la opción inactiva */
.language-switch.es .language-option.en,
.language-switch.en .language-option.es {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive styles */
@media (max-width: 768px) {
    .language-switch {
        width: 60px;
        height: 26px;
    }
    
    .language-switch-slider {
        width: 20px;
        height: 20px;
    }
    
    .language-switch.en .language-switch-slider {
        transform: translateX(34px);
    }
    
    .language-option {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .language-switch {
        width: 50px;
        height: 24px;
    }
    
    .language-switch-slider {
        width: 18px;
        height: 18px;
    }
    
    .language-switch.en .language-switch-slider {
        transform: translateX(26px);
    }
    
    .language-option {
        font-size: 10px;
    }
}