/* ============================================================
   NAV ENHANCEMENTS — JYNX
   Desktop dropdown + Mobile fullscreen menu
   ============================================================ */

/* ============ DESKTOP DROPDOWN (Cursos) ============ */
@media (min-width: 1101px){
  .nav-links .has-dropdown{
    position:relative;
  }
  .nav-links .has-dropdown > a{
    display:inline-flex;align-items:center;gap:6px;
  }
  .nav-links .has-dropdown > a::before{
    content:'';position:absolute;
    left:-14px;right:-14px;bottom:-22px;top:-12px;
  }
  .nav-links .has-dropdown > a .chev{
    width:10px;height:10px;display:inline-block;
    transition:transform .25s ease;opacity:.6;
  }
  .nav-links .has-dropdown:hover > a .chev,
  .nav-links .has-dropdown:focus-within > a .chev{
    transform:rotate(180deg);opacity:1;
  }

  .nav-dropdown{
    position:absolute;
    top:calc(100% + 14px);left:50%;
    transform:translateX(-50%) translateY(-6px);
    min-width:340px;
    background:rgba(45,49,66,.92);
    backdrop-filter:blur(14px) saturate(120%);
    -webkit-backdrop-filter:blur(14px) saturate(120%);
    border:1px solid rgba(246,80,9,.22);
    border-radius:14px;
    padding:10px;
    box-shadow:0 24px 60px rgba(0,0,0,.45), 0 0 0 1px rgba(246,80,9,.06);
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index:120;
  }
  .nav-dropdown::before{
    content:'';position:absolute;
    top:-8px;left:0;right:0;height:14px;
  }
  .nav-links .has-dropdown:hover .nav-dropdown,
  .nav-links .has-dropdown:focus-within .nav-dropdown{
    opacity:1;visibility:visible;pointer-events:auto;
    transform:translateX(-50%) translateY(0);
    transition:opacity .2s ease, transform .2s ease;
  }

  .nav-dropdown .ndd-item{
    display:grid !important;
    grid-template-columns:36px 1fr;
    align-items:center;gap:14px;
    padding:12px 14px !important;
    color:var(--jynx-offwhite) !important;
    text-decoration:none;
    border-radius:10px;
    opacity:1 !important;
    transition:background .18s ease;
    font-size:14px !important;
  }
  .nav-dropdown .ndd-item::after{display:none !important}
  .nav-dropdown .ndd-item:hover{
    background:rgba(246,80,9,.14);
  }
  .nav-dropdown .ndd-icon{
    width:36px;height:36px;border-radius:8px;
    background:rgba(246,80,9,.12);
    border:1px solid rgba(246,80,9,.28);
    display:grid;place-items:center;
    color:var(--jynx-orange);
    font-family:'JetBrains Mono','Tektur',monospace;
    font-weight:700;font-size:16px;
    line-height:1;
  }
  .nav-dropdown .ndd-icon img{
    width:22px;height:22px;object-fit:contain;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));
  }
  .nav-dropdown .ndd-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
  .nav-dropdown .ndd-name{
    font-family:'Tektur',sans-serif;font-weight:600;
    font-size:14px;letter-spacing:.01em;
    color:var(--jynx-offwhite);
  }
  .nav-dropdown .ndd-tag{
    font-family:'JetBrains Mono',monospace;
    font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
    color:var(--jynx-offwhite);opacity:.55;
  }
  .nav-dropdown .ndd-divider{
    height:1px;margin:6px 4px;
    background:linear-gradient(90deg,transparent,rgba(255,254,248,.12),transparent);
  }
  .nav-dropdown .ndd-foot{
    display:flex;align-items:center;justify-content:space-between;
    padding:10px 14px 6px;
    font-family:'JetBrains Mono',monospace;
    font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
    color:var(--jynx-offwhite);opacity:.55;
  }
  .nav-dropdown .ndd-foot a{
    color:var(--jynx-orange);text-decoration:none;
    opacity:.9 !important;font-size:10.5px !important;
  }
  .nav-dropdown .ndd-foot a::after{display:none !important}
}

/* ============ MOBILE BURGER + FULLSCREEN MENU ============ */
.mobile-burger{
  display:none;
  position:relative;
  width:44px;height:44px;
  background:transparent;border:1px solid rgba(255,254,248,.16);
  border-radius:10px;
  cursor:pointer;
  z-index:160;
  align-items:center;justify-content:center;
  transition:border-color .2s ease, background .2s ease;
}
.mobile-burger:hover,.mobile-burger:focus-visible{
  border-color:var(--jynx-orange);
  background:rgba(246,80,9,.06);
}
.mobile-burger .bar{
  position:absolute;left:11px;right:11px;height:1.5px;
  background:var(--jynx-offwhite);border-radius:2px;
  transition:transform .3s ease, opacity .2s ease, top .3s ease;
}
.mobile-burger .bar:nth-child(1){top:14px}
.mobile-burger .bar:nth-child(2){top:21px}
.mobile-burger .bar:nth-child(3){top:28px}
.mobile-menu-open .mobile-burger .bar:nth-child(1){top:21px;transform:rotate(45deg)}
.mobile-menu-open .mobile-burger .bar:nth-child(2){opacity:0}
.mobile-menu-open .mobile-burger .bar:nth-child(3){top:21px;transform:rotate(-45deg)}

@media (max-width: 1100px){
  .mobile-burger{display:flex}
  .nav-links .has-dropdown .nav-dropdown{display:none !important}
}

/* ============ MOBILE FULLSCREEN OVERLAY ============ */
.mobile-menu{
  position:fixed;
  top:0;bottom:0;
  width:100%;max-width:420px;
  background:#1B1F26;
  z-index:150;
  display:flex;flex-direction:column;
  overflow-y:auto;overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  box-shadow:-30px 0 80px rgba(0,0,0,.6);
  left:auto;
  right:-100%;
  visibility:hidden;
  opacity:0;
}
.mobile-menu-backdrop{
  position:fixed;inset:0;background:rgba(11,15,21,.5);
  backdrop-filter:blur(2px);
  z-index:140;opacity:0;pointer-events:none;
}
.mobile-menu-open .mobile-menu-backdrop{opacity:1;pointer-events:auto}

.mobile-menu .mm-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:22px 24px 20px;
  border-bottom:1px solid rgba(255,254,248,.08);
}
.mobile-menu .mm-head .logo-img{height:34px}
.mobile-menu .mm-close{
  width:40px;height:40px;
  background:transparent;border:1px solid rgba(255,254,248,.16);
  border-radius:10px;color:var(--jynx-offwhite);
  display:grid;place-items:center;cursor:pointer;
  font-size:20px;line-height:1;
  transition:border-color .2s ease;
}
.mobile-menu .mm-close:hover{border-color:var(--jynx-orange)}

.mobile-menu .mm-list{
  list-style:none;margin:0;padding:14px 0 0;flex:1;
}
.mobile-menu .mm-list > li > a,
.mobile-menu .mm-list > li > .mm-toggle{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
  padding:18px 24px;
  font-family:'Tektur',sans-serif;
  font-size:24px;font-weight:500;letter-spacing:.005em;
  color:var(--jynx-offwhite);
  text-decoration:none;
  background:none;border:none;cursor:pointer;text-align:left;
  border-bottom:1px solid rgba(255,254,248,.05);
}
.mobile-menu .mm-toggle .mm-chev{
  display:inline-block;width:14px;height:14px;
  transition:transform .25s ease;opacity:.6;
}
.mobile-menu .mm-item.is-expanded .mm-chev{transform:rotate(180deg);opacity:1}

.mobile-menu .mm-submenu{
  max-height:0;overflow:hidden;
  transition:max-height .35s cubic-bezier(.4,0,.2,1);
  background:rgba(0,0,0,.18);
}
.mobile-menu .mm-item.is-expanded .mm-submenu{max-height:500px}
.mobile-menu .mm-submenu a{
  display:grid;
  grid-template-columns:32px 1fr;
  align-items:center;gap:14px;
  padding:14px 24px 14px 36px;
  color:var(--jynx-offwhite);
  text-decoration:none;
  font-size:16px;font-family:'Inter','Tektur',sans-serif;
  border-bottom:1px solid rgba(255,254,248,.04);
  opacity:.85;
}
.mobile-menu .mm-submenu a:last-child{border-bottom:none}
.mobile-menu .mm-submenu a:hover,
.mobile-menu .mm-submenu a:active{opacity:1;background:rgba(246,80,9,.08)}
.mobile-menu .mm-sub-icon{
  width:32px;height:32px;border-radius:8px;
  background:rgba(246,80,9,.1);
  border:1px solid rgba(246,80,9,.24);
  display:grid;place-items:center;
  color:var(--jynx-orange);
  font-family:'JetBrains Mono',monospace;font-weight:700;font-size:14px;
}
.mobile-menu .mm-sub-meta{display:flex;flex-direction:column;gap:1px;min-width:0}
.mobile-menu .mm-sub-name{font-weight:600}
.mobile-menu .mm-sub-tag{
  font-family:'JetBrains Mono',monospace;
  font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  opacity:.55;
}

.mobile-menu .mm-cta{
  margin:24px;
  display:flex;align-items:center;justify-content:center;gap:8px;
  background:var(--jynx-orange);
  color:var(--jynx-offwhite);
  text-decoration:none;
  padding:18px 24px;
  min-height:56px;
  border-radius:12px;
  font-family:'Tektur',sans-serif;
  font-size:16px;font-weight:600;letter-spacing:.04em;
  text-transform:uppercase;
  transition:transform .2s ease, box-shadow .2s ease;
}
.mobile-menu .mm-cta:hover,.mobile-menu .mm-cta:active{
  transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(246,80,9,.4);
}

.mobile-menu .mm-foot{
  padding:16px 24px 32px;
  border-top:1px solid rgba(255,254,248,.08);
  display:flex;flex-direction:column;gap:10px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--jynx-offwhite);opacity:.6;
}
.mobile-menu .mm-foot a{
  color:var(--jynx-offwhite);text-decoration:none;
  opacity:.85;
}
.mobile-menu .mm-foot .row{display:flex;align-items:center;gap:8px}
.mobile-menu .mm-foot svg{flex-shrink:0;opacity:.7}

/* lock body scroll when menu open */
body.mobile-menu-open{overflow:hidden}

/* ============ MOBILE: CTAs FULL-WIDTH 56px+ ============ */
@media (max-width: 720px){
  .hero-ctas .btn,
  .hero-ctas a.btn,
  .cta-final-ctas .btn,
  .cta-final-ctas a.btn,
  .oferta-cta .btn,
  .oferta-cta a.btn,
  .strip-cta .btn,
  .strip-cta a.btn{
    width:100%;
    min-height:56px;
    padding:18px 24px !important;
    justify-content:center;
    font-size:15px;
  }
  .hero-ctas,
  .cta-final-ctas,
  .oferta-cta{
    flex-direction:column;
    gap:12px !important;
  }
}
