@media (max-width: 960px) {
  html:has(.nav-drawer.open),
  body:has(.nav-drawer.open) {
    overflow: hidden;
  }

  .nav {
    z-index: 1000 !important;
    overflow: visible !important;
    background: rgba(3, 5, 10, .96) !important;
    border-bottom-color: rgba(0, 198, 255, .2) !important;
    box-shadow: none !important;
  }

  body:has(.nav-drawer.open) .nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .nav-inner {
    width: 100% !important;
    height: 4.25rem !important;
    padding: .1rem 1rem 0 !important;
    gap: .7rem !important;
    overflow: visible !important;
  }

  .brand {
    min-width: 0;
    margin-right: auto !important;
    gap: .68rem !important;
  }

  .brand-icon {
    width: 1.72rem !important;
    filter: none !important;
  }

  .brand-name {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links,
  .nav-cta,
  .nav-utils {
    display: none !important;
  }

  .nav-burger {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0, 198, 255, .28) !important;
    border-radius: 6px;
    background: transparent !important;
    box-shadow: none !important;
  }

  .nav-burger::before {
    content: none !important;
  }

  .nav-burger span {
    width: 1.16rem !important;
    height: 1.5px !important;
    background: #e8f4ff !important;
  }

  .nav-burger.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg) !important;
  }

  .nav-burger.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg) !important;
  }

  .nav-drawer {
    --menu-pad-x: clamp(1rem, 4vw, 1.35rem);
    position: fixed !important;
    top: 4.25rem !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: none !important;
    height: auto !important;
    max-height: calc(100dvh - 4.25rem) !important;
    padding: .75rem var(--menu-pad-x) calc(1rem + env(safe-area-inset-bottom)) !important;
    gap: 0 !important;
    background: #03050a !important;
    border-top: 1px solid rgba(0, 198, 255, .18) !important;
    box-shadow: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  .br-ppp + .shell .nav-drawer {
    top: 4.25rem !important;
    height: auto !important;
    max-height: calc(100dvh - 4.25rem) !important;
  }

  body:has(.nav-drawer.open) .wa-float,
  body:has(.nav-drawer.open) a[aria-label="WhatsApp"][style*="position:fixed"],
  body:has(.nav-drawer.open) .br-ppp,
  body:has(.nav-drawer.open) #br-cookie-banner {
    display: none !important;
  }

  .nav-drawer::before {
    content: none !important;
  }

  .nav-drawer.open {
    display: flex !important;
    flex-direction: column;
  }

  .drawer-a {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 1.15rem;
    align-items: center;
    min-height: 3.65rem;
    padding: 0 .15rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(136, 165, 194, .14) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #dcecff !important;
    font-size: clamp(1rem, 3.8vw, 1.1rem) !important;
    line-height: 1.2;
    letter-spacing: .06em !important;
    box-shadow: none !important;
    transform: translateY(.2rem);
    opacity: 0;
    animation: menu-row-in .26s ease forwards;
  }

  .drawer-a::before {
    content: none !important;
  }

  .drawer-a::after {
    content: "";
    justify-self: end;
    width: .48rem;
    height: .48rem;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    opacity: .38;
    transform: rotate(45deg);
    transition: opacity .16s ease, transform .16s ease;
  }

  .drawer-a:hover,
  .drawer-a:focus-visible {
    color: #fff !important;
    border-bottom-color: rgba(0, 198, 255, .36) !important;
    outline: none;
  }

  .drawer-a:hover::after,
  .drawer-a:focus-visible::after {
    opacity: .9;
    transform: translateX(.15rem) rotate(45deg);
  }

  .drawer-a:nth-of-type(1) { animation-delay: .02s; }
  .drawer-a:nth-of-type(2) { animation-delay: .04s; }
  .drawer-a:nth-of-type(3) { animation-delay: .06s; }
  .drawer-a:nth-of-type(4) { animation-delay: .08s; }
  .drawer-a:nth-of-type(5) { animation-delay: .1s; }
  .drawer-a:nth-of-type(6) { animation-delay: .12s; }
  .drawer-a:nth-of-type(7) { animation-delay: .14s; }

  .drawer-cta-a {
    min-height: 3.35rem;
    margin: 1rem 0 .25rem !important;
    padding: 0 1rem !important;
    border: 1px solid rgba(0, 198, 255, .48) !important;
    border-radius: 6px !important;
    background: rgba(0, 198, 255, .065) !important;
    color: #00c6ff !important;
    font-weight: 700;
  }

  .drawer-cta-a:hover,
  .drawer-cta-a:focus-visible {
    background: rgba(0, 198, 255, .1) !important;
    border-color: rgba(0, 198, 255, .72) !important;
  }

  .drawer-tools {
    display: grid;
    grid-template-columns: 1fr minmax(7.5rem, .7fr);
    gap: .55rem;
    margin-top: auto;
    padding-top: 1rem;
    opacity: 0;
    transform: translateY(.2rem);
    animation: menu-row-in .26s ease .16s forwards;
  }

  .drawer-tool-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    min-width: 0;
  }

  .drawer-chip,
  .nav-drawer .drawer-select.cur-select {
    min-height: 2.65rem;
    border: 1px solid rgba(0, 198, 255, .22);
    border-radius: 6px;
    background: transparent;
    color: #9cb7d4;
    font-family: var(--mono, monospace);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: none;
  }

  .drawer-chip {
    cursor: pointer;
  }

  .drawer-chip.active,
  html[lang="en"] .drawer-chip[data-set-lang="en"],
  html[lang="es"] .drawer-chip[data-set-lang="es"] {
    border-color: rgba(0, 198, 255, .68);
    color: #00c6ff;
    background: rgba(0, 198, 255, .06);
  }

  .nav-drawer .drawer-select.cur-select {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 2.65rem !important;
    margin: 0 !important;
    padding: 0 2.15rem 0 .78rem !important;
    border-radius: 6px !important;
    border-color: rgba(0, 198, 255, .22) !important;
    background-color: transparent !important;
    background-image:
      linear-gradient(45deg, transparent 50%, #9cb7d4 50%),
      linear-gradient(135deg, #9cb7d4 50%, transparent 50%);
    background-position:
      calc(100% - 1.05rem) 50%,
      calc(100% - .76rem) 50%;
    background-size: .32rem .32rem, .32rem .32rem;
    background-repeat: no-repeat;
    color: #9cb7d4 !important;
    line-height: 1 !important;
    appearance: none;
    -webkit-appearance: none;
  }

  .nav-drawer .drawer-select.cur-select:hover,
  .nav-drawer .drawer-select.cur-select:focus {
    color: #00c6ff !important;
    border-color: rgba(0, 198, 255, .58) !important;
    background-color: rgba(0, 198, 255, .045) !important;
  }

  .nav-drawer .drawer-select.cur-select option {
    background: #03050a;
    color: #dcecff;
  }

  .drawer-chip:focus-visible,
  .nav-drawer .drawer-select.cur-select:focus-visible,
  .nav-burger:focus-visible {
    outline: 2px solid rgba(0, 198, 255, .65);
    outline-offset: 2px;
  }
}

@media (max-width: 430px) {
  .drawer-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) and (max-height: 640px) {
  .nav-inner {
    height: 4rem !important;
  }

  .nav-drawer,
  .br-ppp + .shell .nav-drawer {
    top: 4rem !important;
    max-height: calc(100dvh - 4rem) !important;
  }

  .drawer-a {
    min-height: 3.05rem;
  }

  .drawer-cta-a {
    min-height: 3.05rem;
    margin-top: .65rem !important;
  }

  .drawer-tools {
    padding-top: .65rem;
  }
}

@media (max-width: 340px) {
  .brand-name {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-a,
  .drawer-tools {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes menu-row-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
