/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/
 Description:  Tema hijo para el tema Hello Elementor.
 Author:       Tu Nombre
 Author URI:   https://tudominio.com
 Template:     hello-elementor
 Version:      1.0.0
*/
/* Contenedor principal */
.custom-dropdown-lang {
    position: relative;
    display: inline-block !important;
    z-index: 99999 !important;
    padding-bottom: 10px; /* "Puente" invisible para que no se cierre al mover el ratón */
}

/* El botón visible */
.lang-current-btn {
    background: transparent !important;
    border: none !important;
    color: #69412E !important;
    padding: 0 !important; /* Quitamos padding para que la flecha se acerque */
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    gap: 6px; /* CONTROL DE DISTANCIA: Aquí ajustas qué tan cerca está la flecha */
}

/* Icono de la flecha */
.arrow-icon {
    font-size: 9px;
    color: #69412E !important;
    transition: transform 0.3s ease;
    line-height: 1;
}

/* La lista desplegable */
.lang-dropdown-list {
    position: absolute;
    top: 100% !important; /* Pegado justo debajo del texto */
    right: 0;
    min-width: 100px;
    background: #F4F4DD !important; /* Cambia esto si quieres otro color de fondo */
    border: 1px solid #F4F4DD !important;
    list-style: none !important;
    padding: 0 !important;
    margin: -5px 0 0 0 !important; /* Sube un poco la lista para que no haya hueco */
    display: none; 
    box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

.lang-dropdown-list li a {
    display: block !important;
    padding: 10px 15px !important;
    color: #69412E !important;
    text-decoration: none !important;
    font-size: 14px;
    text-transform: uppercase;
}

.lang-dropdown-list li a:hover {
    background: #b5b5b5 !important;
}

/* Mostrar al pasar el ratón */
.custom-dropdown-lang:hover .lang-dropdown-list {
    display: block !important;
}

.custom-dropdown-lang:hover .arrow-icon {
    transform: rotate(180deg);
}


/* estilos para home */

body.home.lang-dropdown-list li a {
    color: #F4F4DD !important;
}
body.home .lang-current-btn {
    color: #F4F4DD !important;
}
body.home .lang-dropdown-list li a:hover {
    color: #69412E !important;
}
body.home .arrow-icon {
    color: #F4F4DD !important;
}