/*
Theme Name: Inicianet Child Theme
Theme URI: https://inicianet.com/
Author: Inicianet
Author URI: https://inicianet.com/
Description: Un theme hijo de Inicianet Exclusive Theme, creado para personalizar y extender las funcionalidades del theme principal.
Template: inicianet
Version: 1.0
Text Domain: inicianet-child
*/

/* Aquí puedes añadir tus estilos personalizados */
/* =====================================================
   WPML – Selector de idioma como dropdown
   Shortcode:
   [wpml_language_selector_widget flags=0 translated=0]
   ===================================================== */
.lang-header .wpml-ls-legacy-list-horizontal {padding:0;}

.lang-header .wpml-ls-current-language > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;
  background-color: var(--e-global-color-ca19c60);
  color: #ffffff;

  font-weight: 500;
  font-size: 16px;
  line-height: 24px;

  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;

  transition: background-color .2s ease;
}

.lang-header .wpml-ls-current-language > a:hover {
  background-color: var(--e-global-color-d37608f);
}

/* Flecha */
.lang-header .wpml-ls-current-language > a::after {
  content: "\f0d7";
  font-family: "Font Awesome 5 Free";
  font-size: 16px;
  margin-top: 0;
  color: #ffffff;
  font-weight: 600;
}


/* ======================
   COMPORTAMIENTO DROPDOWN
   ====================== */

/* Wrapper WPML (crea "puente" dentro del área hover) */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls {
  position: relative;
  display: inline-block;
  padding-bottom: 6px; /* <-- clave */
}

/* UL base */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

/* Todos los LI */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls > ul > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Idioma activo */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls
> ul > li.wpml-ls-current-language {
  position: relative;
  z-index: 2;
}

/* Idiomas NO activos: ocultos y reposicionados */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls
> ul > li:not(.wpml-ls-current-language) {
  display: none;
  position: absolute;
  top: 100%;              /* <-- sin +6 */
  left: 0;
  min-width: 100%;
  z-index: 9999;
  transform: translateY(6px); /* <-- gap visual */
}

/* Mostrar dropdown al hover del wrapper (y mantenerlo al hover del item) */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls:hover
> ul > li:not(.wpml-ls-current-language),
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls
> ul > li:not(.wpml-ls-current-language):hover {
  display: block;
}



/* ======================
   ESTILO ITEM DESPLEGABLE
   ====================== */

.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls
> ul > li:not(.wpml-ls-current-language) > a {
  display: block;

  padding: 10px 16px;
  background-color: var(--e-global-color-ca19c60);
  color: #ffffff;

  font-weight: 500;
  font-size: 16px;
  line-height: 24px;

  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;

  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  opacity: 1;

  transition: background-color .2s ease;
}


/* Hover → fondo al 50% */
.lang-header .wpml-ls-statics-shortcode_actions.wpml-ls
> ul > li:not(.wpml-ls-current-language) > a:hover {
  background-color: color-mix(
    in srgb,
    var(--e-global-color-ca19c60) 50%,
    transparent
  );
}


