:root{
  --footer-bg:#171717;
  --footer-text:#d8d8d8;
  --footer-copy:#aaa;
}

header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
  background:transparent;
  backdrop-filter:none;
  border-bottom:1px solid transparent;
  transition:background .28s ease, backdrop-filter .28s ease, border-color .28s ease, box-shadow .28s ease;
}
header.scrolled{
  background:rgba(111,29,242,.92);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 14px 38px rgba(43,16,92,.18);
}
.nav{
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  transition:height .28s ease;
}
header.scrolled .nav{height:68px}
.logo{
  display:flex;
  align-items:center;
  color:var(--morado);
  position:relative;
}
.logo-image{
  width:auto;
  height:64px;
  object-fit:contain;
  transition:opacity .25s ease,height .28s ease;
}
.logo-white{
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  opacity:0;
  pointer-events:none;
}
header.scrolled .logo-image{height:56px}
header.scrolled .logo-color{opacity:0}
header.scrolled .logo-white{opacity:1}
.footer-logo{
  height:72px;
  filter:none;
}
.links{
  display:flex;
  gap:24px;
  align-items:center;
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  color:#4a4d56;
  transition:color .25s ease;
}
header.scrolled .links{color:white}
.links a,
.nav-dropdown-toggle{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border-radius:13px;
  color:inherit;
  transition:background .22s ease, color .22s ease, box-shadow .22s ease;
}
.links a:after,
.nav-dropdown-toggle:after{
  content:none;
  position:absolute;
  left:0;
  bottom:2px;
  width:0;
  height:3px;
  background:var(--amarillo);
  transition:.25s;
  border-radius:99px;
}
.links a:hover,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle{
  background:var(--morado);
  color:white;
  box-shadow:0 12px 26px rgba(111,29,242,.18);
}
header.scrolled .links a:hover,
header.scrolled .nav-dropdown:hover .nav-dropdown-toggle,
header.scrolled .nav-dropdown:focus-within .nav-dropdown-toggle{
  background:var(--amarillo);
  color:var(--morado);
  box-shadow:0 12px 26px rgba(255,203,5,.20);
}
.links a:hover:after,
.nav-dropdown:hover .nav-dropdown-toggle:after{width:0}
.nav-dropdown{
  position:relative;
  display:flex;
  align-items:center;
  min-height:44px;
}
.nav-dropdown-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.nav-dropdown-toggle:before{
  content:"";
  order:2;
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  transform:translateY(1px);
}
.nav-dropdown-menu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translate(-50%, 10px);
  min-width:180px;
  padding:10px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(111,29,242,.16);
  box-shadow:0 24px 56px rgba(43,16,92,.20);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:.22s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(-50%, 0);
}
.nav-dropdown-menu a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  color:#252935;
  white-space:nowrap;
}
.nav-dropdown-menu a:after{content:none}
.nav-dropdown-menu a:hover{
  background:var(--morado);
  color:white;
  box-shadow:none;
}
.menu-btn{
  display:none;
  background:white;
  border:0;
  border-radius:14px;
  width:44px;
  height:44px;
  color:var(--morado);
  padding:11px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  box-shadow:0 14px 30px rgba(43,16,92,.12);
}
.menu-btn span{
  display:block;
  width:20px;
  height:2px;
  background:currentColor;
  border-radius:99px;
}
header.scrolled .menu-btn{
  background:rgba(255,255,255,.16);
  color:white;
  border:1px solid rgba(255,255,255,.22);
}
.mobile-menu{
  position:fixed;
  inset:0;
  z-index:999;
  display:grid;
  place-items:center;
  min-height:100vh;
  padding:32px 22px;
  background:linear-gradient(145deg,rgba(111,29,242,.98),rgba(75,13,178,.98));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:scale(1.02);
  transition:opacity .24s ease, visibility .24s ease, transform .24s ease;
}
.mobile-menu.open{
  display:grid;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:scale(1);
}
.mobile-menu a{padding:0}
body.menu-open{overflow:hidden}
.mobile-menu-close{
  position:absolute;
  top:22px;
  right:22px;
  width:46px;
  height:46px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:16px;
  background:rgba(255,255,255,.12);
  color:white;
  font-size:30px;
  line-height:1;
  font-weight:600;
}
.mobile-menu-panel{
  width:min(420px,100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}
.mobile-menu-logo{
  display:flex;
  justify-content:center;
  margin-bottom:34px;
}
.mobile-menu-logo img{
  width:min(230px,72vw);
  height:auto;
  display:block;
}
.mobile-menu-links{
  width:100%;
  display:grid;
  gap:8px;
}
.mobile-menu-links > a,
.mobile-menu-link{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  width:100%;
  padding:0 18px;
  border:0;
  border-radius:18px;
  background:transparent;
  color:white;
  font-size:20px;
  font-family:inherit;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.02em;
  cursor:pointer;
  list-style:none;
  transition:.22s ease;
}
.mobile-menu-links > a:hover,
.mobile-menu-link:hover{
  background:rgba(255,255,255,.12);
}
.mobile-menu-next span{
  margin-left:10px;
  color:var(--amarillo);
  font-size:30px;
  line-height:1;
}
.mobile-menu-viewport{
  width:100%;
  overflow:hidden;
}
.mobile-menu-track{
  display:flex;
  width:100%;
  transition:transform .34s cubic-bezier(.22,.61,.36,1);
}
.mobile-menu-track > .mobile-menu-links{
  flex:0 0 100%;
}
.mobile-menu.submenu-open .mobile-menu-track{
  transform:translateX(-100%);
}
.mobile-submenu-panel{
  align-content:start;
  padding:0 2px;
}
.mobile-menu-back{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.10);
  color:#efe7ff;
  font:inherit;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
}
.mobile-menu-back span{
  color:var(--amarillo);
  font-size:24px;
}
.mobile-submenu-title{
  color:var(--amarillo);
  font-size:14px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:10px;
}

footer{
  background:var(--footer-bg);
  color:white;
  padding:54px 0 28px;
  position:static;
  overflow:visible;
}
footer:before{content:none}
footer.footer-purple{
  --footer-bg:var(--morado);
  --footer-text:#efe7ff;
  --footer-copy:#e5d6ff;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  border-bottom:1px solid rgba(255,255,255,.13);
  padding-bottom:32px;
  position:static;
  z-index:auto;
}
footer h4{
  color:var(--amarillo);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:14px;
}
footer p,
footer a{
  color:var(--footer-text);
  line-height:1.8;
  font-size:14px;
  display:block;
}
.social-links{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}
.social-links a{
  width:44px;
  height:44px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  display:grid;
  place-items:center;
  transition:.25s ease;
  border:1px solid rgba(255,255,255,.08);
}
.social-links a:hover{
  background:var(--amarillo);
  transform:translateY(-3px);
  border-color:transparent;
}
.social-links svg{
  width:20px;
  height:20px;
  fill:white;
}
.copy{
  text-align:center;
  color:var(--footer-copy);
  margin-top:24px;
  font-size:13px;
}
.wa{
  position:fixed;
  right:22px;
  bottom:22px;
  width:66px;
  height:66px;
  min-width:66px;
  min-height:66px;
  aspect-ratio:1/1;
  border-radius:50%;
  background:#25d366;
  color:white;
  display:grid;
  place-items:center;
  z-index:120;
  box-shadow:0 18px 38px rgba(0,0,0,.25);
  transition:transform .25s ease,box-shadow .25s ease;
}
.wa:hover{
  transform:translateY(-4px) scale(1.04);
  box-shadow:0 24px 46px rgba(0,0,0,.30);
}
.wa svg{
  width:34px;
  height:34px;
  fill:white;
}

@media (max-width:980px){
  .links,
  .nav>.btn{display:none}
  .menu-btn{display:flex}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  header{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(111,29,242,.10);
  }
  header.scrolled{
    background:rgba(111,29,242,.94);
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .nav{height:70px}
  header.scrolled .nav{height:66px}
  footer .footer-grid{
    grid-template-columns:1fr!important;
    text-align:center;
  }
  footer .footer-grid > div:nth-child(2),
  footer .footer-grid > div:nth-child(3){display:none}
  footer .footer-grid > div:first-child p{display:block}
  footer .footer-grid > div:last-child{display:block}
  footer .logo{justify-content:center}
  footer{padding:38px 0 22px}
  .copy{display:none}
  .logo-image{height:52px}
  .footer-logo{height:62px}
  header.scrolled .logo-image{height:48px}
  .social-links{justify-content:center}
}
