/* Contenedor principal del selector de idioma */
.lang-selector {
  position: relative;
  display: inline-block;

  /* Estilos del botón principal */
  .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    outline: none;

    /* Icono del globo terráqueo */
    .icon-globe {
      width: 20px;
      height: 20px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
    }

    /* Icono de la flecha con transición */
    .icon-arrow {
      width: 12px;
      height: 12px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      transition: transform 0.2s ease;
    }
  }

  /* Menú desplegable oculto por defecto */
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    background-color: #07192b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    padding: 4px 0;
    display: none;
    z-index: 50;

    /* Enlaces dentro del menú */
    a {
      display: block;
      padding: 8px 16px;
      color: #ffffff;
      font-family: 'DM Sans', sans-serif;
      font-size: 14px;
      text-decoration: none;
      text-align: center;
      transition: background-color 0.2s ease;

      /* Efecto hover en las opciones del menú */
      &:hover {
        background-color: rgba(255, 255, 255, 0.1);
      }
    }
  }

  /* --- INTERACCIONES HOVER (CSS Puro) --- */
  
  /* Muestra el menú cuando el usuario pasa el mouse por encima del contenedor */
  &:hover {
    .dropdown-menu {
      display: block;
    }

    /* Rota la flecha 180 grados al abrirse el menú */
    .icon-arrow {
      transform: rotate(180deg);
    }
  }
}