/* =========================
   NAV GLASS
   ========================= */
:root{
  --nav-h: 70px;
  --radius: 999px;


  --ink: #1f2a37;
  --muted: rgba(31,42,55,.55);

  --ease: cubic-bezier(.25,1,.5,1);
}

.nav-glass{
  position: fixed;
  top: 14px;
  z-index: 999;
  width: 100%;
}

.nav-inner{
  height: var(--nav-h);
  max-width: 1180px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
  padding: 10px 14px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
}

.brand img{
  width: 180px;
}

/* Menu wrapper */
.nav-menu{
  display: flex;
  align-items: center;
  gap: 14px;
}

/* UL */
.menu{
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================
   LINKS + Hover animation (wave)
   basado en el pen: background svg + keyframes :contentReference[oaicite:1]{index=1}
   ========================= */

 .menu li a {
   font-size: 14px;
   font-weight: 700;
   text-transform: uppercase;
   color: #777;
   text-decoration: none;
   transition: all 0.45s;
 }

 .menu li a:hover{
   color: #4A87C699;

 }


/* Active state (azul “pill” como tu referencia) */
.nav-link.is-active{
  background: #4A87C699;
  color:#fff;
  border-radius: 4px;
}


/* =========================
   HAMBURGER (Mobile)
   ========================= */
.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
}
.nav-toggle span{
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: rgba(31,42,55,.7);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 15px; }
.nav-toggle span:nth-child(2){ top: 21px; }
.nav-toggle span:nth-child(3){ top: 27px; }

.nav-toggle.is-open span:nth-child(1){ top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

/**/



/* select principal */
.custom-select-t.sources{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  height:40px;
  padding:0 32px 0 44px; /* 👈 espacio para bandera izquierda + chevron derecha */
  border-radius:999px;

  border:2px solid #F57C2A;
  background:#fff;
  color:#F57C2A;

  font-weight:700;
  font-size:12px;
  cursor:pointer;

  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* Overlay del icono (bandera) */
.lang-flag{
  position:absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  pointer-events:none;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
}

/* banderas por idioma usando data-attr en el wrapper */
.lang-select-wrap[data-lang="ES"] .lang-flag{
  background-image:url("../../assets/img/mexico.svg"); /* o el svg que quieras */
}

.lang-select-wrap[data-lang="EN"] .lang-flag{
  background-image:url("../../assets/img/united-states.svg");
}

/* chevron igual que ya lo tienes */
.lang-chevron{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  color:#F57C2A;
  pointer-events:none;
}

/* Opciones (el dropdown abierto es del SO; esto puede o no aplicarse) */
.custom-select-t.sources option{
  color:#F17D37;
}

/* focus */
.custom-select-t.sources:focus{ outline:none; box-shadow:none; }
.custom-select-t.sources:focus-visible{ box-shadow:0 0 0 3px rgba(245,124,42,.25); }


/* Oculta el select real, pero sigue siendo accesible */
.sr-only-select{
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}

/* Botón (se ve como tu select) */
.lang-btn{
  height:40px;
  padding: 0 8px 0 40px;
  border-radius:999px;
  border:2px solid #F57C2A;
  background:#fff;
  color:#F57C2A;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.06);

  display:flex;
  justify-content: flex-start;
  align-items:center;
  gap:8px;
  position:relative;
}


/* Oculta el texto EN/ES en el botón */
.lang-btn .lang-code{
  display:none;
}

/* Bandera del botón */
.lang-flag{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  width:25px;
  height:25px;
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center;
  pointer-events:none;
}

.lang-select-wrap[data-lang="ES"] .lang-flag{ background-image:url("../../assets/img/mexico.svg"); }
.lang-select-wrap[data-lang="EN"] .lang-flag{ background-image:url("../../assets/img/united-states.svg"); }

/* Chevron ya lo tienes, pero aquí lo acomodamos dentro del botón */
.lang-btn .lang-chevron{
  margin-left:auto;
  position:static;
  transform:none;
}

/* Menú dropdown */
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  margin:0;
  padding:6px 0;
  list-style:none;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:10px;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
  display:none;
  z-index:9999;
}

.lang-select-wrap.open .lang-menu{ display:block; }

.lang-option{
  display:flex;
  align-items:center;
  gap: 5px;
    padding: 10px 10px;
  cursor:pointer;
  color:#F17D37;
  font-weight:700;
  font-size:12px;
}

.lang-option:hover{
  background:rgba(245,124,42,.10);
}

.lang-opt-flag{
  width:20px;
  height:20px;
  flex:0 0 18px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px){
  .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }

  .nav-menu{
  position: absolute;
  left: 0px;
  right: 0px;
  top: calc(14px + var(--nav-h) + 10px);

  display: flex;                 /* 👈 ya no usamos display none */
  flex-direction: column;
  align-items: stretch;
  gap: 12px;

  padding: 14px;
  border-radius: 18px;

  /* 👇 menos transparente (más “sólido”) */
  background: rgba(255,255,255,.98);

  /* 👇 glass pero más controlado */
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);

  /* 👇 borde + sombra más parecidos a card */
  border: 1px solid rgba(255,255,255,.9);
  box-shadow:
    0 28px 80px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.75);

  /* 👇 estado cerrado (animable) */
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  filter: blur(2px);
  pointer-events: none;
  visibility: hidden;

  transition:
    opacity .22s ease,
    transform .22s ease,
    filter .22s ease,
    visibility 0s linear .22s;
  z-index: 999;
}

.brand img{
  width: 130px;
}

/* ✅ estado abierto */
.nav-menu.is-open{
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;

  transition:
    opacity .22s ease,
    transform .22s ease,
    filter .22s ease,
    visibility 0s;
}
  .nav-menu.is-open{ display: flex; }

  .nav-menu.is-open .is-active{
    background: #4A87C6;
  }

  .nav-menu.is-open .is-active:hover{
    background: #4A87C699!important;
    color: #fff;
  }

  .menu{
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }


  .nav-link{
    width: 100%;
    justify-content: flex-start;
  }

}
