/* Estilos para el selector de idioma */
.language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-left: 10px;
    padding: 0;
    height: 30px;
}

.language-selector a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    vertical-align: middle;
}

.language-selector a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.flag-icon {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    font-size: 0;
    line-height: 0;
}

.flag-icon img {
    padding: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0;
}

.language-selector a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Animación para el cambio de idioma */
@keyframes flagRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.flag-rotate {
    animation: flagRotate 0.5s ease;
}
