
/* =========================================================
   OPOSIPLUS MOBILE DRAWER · FINAL
   ========================================================= */

.opxMobileMenuBtn,
.opxMobileDrawer,
.opxMobileDrawerOverlay {
  display: none;
}

@media (max-width: 920px) {
  html, body {
    overflow-x: hidden !important;
  }

  .opxMobileMenuBtn {
    position: fixed;
    top: 18px;
    left: 14px;
    z-index: 10050;

    width: 46px;
    height: 46px;
    border-radius: 16px;

    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: rgba(5,5,5,.94);
    border: 1px solid rgba(245,197,24,.35);
    box-shadow: 0 14px 34px rgba(0,0,0,.38);
  }

  .opxMobileMenuBtn span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 99px;
    background: #f5c518;
  }

  .opxMobileDrawerOverlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
    display: block !important;

    opacity: 0;
    pointer-events: none;
    background: rgba(0,0,0,.68);
    backdrop-filter: blur(5px);
    transition: opacity .2s ease;
  }

  .opxMobileDrawerOverlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .opxMobileDrawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10060;

    width: min(88vw, 360px);
    display: flex !important;
    flex-direction: column;

    transform: translateX(-105%);
    transition: transform .24s ease;

    background:
      radial-gradient(circle at 25% 0%, rgba(245,197,24,.12), transparent 28%),
      linear-gradient(180deg, #090909 0%, #050505 100%);
    border-right: 1px solid rgba(245,197,24,.22);
    box-shadow: 24px 0 80px rgba(0,0,0,.62);

    padding: 18px;
    overflow-y: auto;
  }

  .opxMobileDrawer.is-open {
    transform: translateX(0);
  }

  html.opxDrawerOpen,
  body.opxDrawerOpen {
    overflow: hidden !important;
  }

  .opxMobileDrawerHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(245,197,24,.16);
  }

  .opxMobileDrawerBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .opxMobileDrawerBrand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: #000;
  }

  .opxMobileDrawerBrand strong {
    display: block;
    color: #fff7df;
    font-weight: 1000;
    letter-spacing: .12em;
    font-size: .95rem;
  }

  .opxMobileDrawerBrand span {
    display: block;
    color: #f5c518;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .62rem;
  }

  .opxMobileDrawerClose {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(245,197,24,.22);
    background: rgba(255,255,255,.04);
    color: #fff7df;
    font-size: 28px;
    line-height: 1;
  }

  .opxMobileDrawerNav {
    display: grid !important;
    gap: 8px;
    padding: 18px 0;
  }

  .opxMobileDrawerNav a,
  .opxMobileDrawerNav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 46px;
    padding: 0 14px;
    border-radius: 15px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.07);

    color: #fff7df !important;
    text-decoration: none !important;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .82rem;
  }

  .opxMobileDrawerNav details {
    border-radius: 17px;
    background: rgba(245,197,24,.045);
    border: 1px solid rgba(245,197,24,.13);
    padding: 6px;
  }

  .opxMobileDrawerNav details a {
    margin-top: 6px;
    min-height: 42px;
    background: rgba(0,0,0,.32);
    color: rgba(255,247,223,.86) !important;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 800;
    font-size: .88rem;
  }

  .opxMobileDrawerNav summary {
    color: #f5c518 !important;
    cursor: pointer;
  }

  .opxMobileDrawerActions {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(245,197,24,.16);
  }

  .opxMobileDrawerActions a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    border-radius: 18px;
    text-decoration: none !important;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
  }

  .opxMobileDrawerActions .gold {
    color: #050505 !important;
    background: linear-gradient(135deg,#fff1a8,#f5c518,#d99a00) !important;
    border: 1px solid rgba(255,255,255,.16);
    text-shadow: none !important;
  }

  .opxMobileDrawerActions .gold * {
    color: #050505 !important;
    text-shadow: none !important;
  }

  .opxMobileDrawerActions .dark {
    color: #fff7df !important;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(245,197,24,.24);
  }

  .opxMobileDrawerLegal {
    color: rgba(255,247,223,.58);
    font-size: .78rem;
    line-height: 1.4;
    margin: 14px 0 0;
  }

  header nav,
  .site-header nav,
  .opx-header nav,
  .main-header nav,
  .desktop-nav,
  .nav-links,
  .main-nav,
  .site-nav,
  .opx-menu {
    display: none !important;
  }

  header .brand,
  header .opx-brand,
  header .site-brand,
  header .logo,
  .site-header .brand,
  .opx-header .brand {
    margin-left: 52px !important;
  }

  header a[href*="test-gratis"],
  .site-header a[href*="test-gratis"],
  .opx-header a[href*="test-gratis"],
  .main-header a[href*="test-gratis"] {
    display: none !important;
  }

  #opxSingleDownloadFloat,
  .opx-floating-download,
  .opx-download-button,
  .opx-sticky-download,
  .download-floating,
  .floating-download,
  .brand-download-float {
    display: none !important;
  }
}

/* En desktop nunca mostrar drawer móvil */
@media (min-width: 921px) {
  .opxMobileMenuBtn,
  .opxMobileDrawer,
  .opxMobileDrawerOverlay {
    display: none !important;
  }
}
