
/* =========================================================
   OPOSIPLUS FIX FINAL · DRAWER + BOTONES DORADOS
   ========================================================= */

/* Por defecto, el drawer móvil NO existe visualmente */
.opxMobileMenuBtn,
.opxMobileDrawerOverlay,
.opxMobileDrawer,
.opxMobileDrawer *,
.opxMobileDrawerActions,
.opxMobileDrawerActions * {
  display: none !important;
}

/* Cualquier enlace de drawer antiguo que quedara suelto fuera del aside */
body > a.gold[href="/descargar/"],
body > a.gold[href*="/descargar/"],
body > a[href="/descargar/"].gold,
body > a[href*="/descargar/"].gold {
  display: none !important;
}

/* En escritorio, prohibido mostrar drawer y acciones de drawer */
@media (min-width: 921px) {
  .opxMobileMenuBtn,
  .opxMobileDrawerOverlay,
  .opxMobileDrawer,
  .opxMobileDrawer *,
  .opxMobileDrawerActions,
  .opxMobileDrawerActions *,
  .opxDrawerGold,
  .opxDrawerDark {
    display: none !important;
  }
}

/* En móvil sí aparece hamburguesa + drawer */
@media (max-width: 920px) {
  .opxMobileMenuBtn {
    position: fixed !important;
    top: 18px !important;
    left: 14px !important;
    z-index: 10050 !important;

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

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

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

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

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

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

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

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

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

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

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

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

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

  .opxMobileDrawer * {
    display: revert !important;
  }

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

  .opxMobileDrawerBrand {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

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

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

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

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

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

  .opxMobileDrawerNav a,
  .opxMobileDrawerNav summary {
    display: flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    border-radius: 15px !important;
    background: rgba(255,255,255,.035) !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    color: #fff7df !important;
    text-decoration: none !important;
    font-weight: 900 !important;
  }

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

  .opxMobileDrawerNav details a {
    margin-top: 6px !important;
    min-height: 42px !important;
    background: rgba(0,0,0,.32) !important;
    color: rgba(255,247,223,.86) !important;
  }

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

  .opxDrawerGold,
  .opxDrawerDark {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 52px !important;
    border-radius: 18px !important;
    text-decoration: none !important;
    font-weight: 1000 !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
  }

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

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

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

/* =========================================================
   BOTONES DORADOS · TEXTO NEGRO SIEMPRE
   ========================================================= */

.btn.primary,
.btn.gold,
.primary,
.gold,
.opx-btn.gold,
.opx-btn.primary,
.opx-submit,
.opx-download,
.opxUnifiedGold,
.dl-btn-gold,
.dl-btn-store,
.opdl-play,
.opdl-play-bottom,
.opx-lead-row button,
.opx-lead-form button,
.opx-form button[type="submit"],
button[type="submit"],
a[href="#reserva"].opx-btn,
a[href="#opxLeadForm"],
a[href="#lead"],
a[href="#reserva"],
.opxCookieAccept,
.opxCookieBtnAccept,
.opx-cookie-accept,
.opx-cookie-btn.primary {
  color: #050505 !important;
  text-shadow: none !important;
}

.btn.primary *,
.btn.gold *,
.primary *,
.gold *,
.opx-btn.gold *,
.opx-btn.primary *,
.opx-submit *,
.opx-download *,
.opxUnifiedGold *,
.dl-btn-gold *,
.dl-btn-store *,
.opdl-play *,
.opdl-play-bottom *,
.opx-lead-row button *,
.opx-lead-form button *,
.opx-form button[type="submit"] *,
button[type="submit"] *,
a[href="#reserva"].opx-btn *,
a[href="#opxLeadForm"] *,
a[href="#lead"] *,
a[href="#reserva"] *,
.opxCookieAccept *,
.opxCookieBtnAccept *,
.opx-cookie-accept *,
.opx-cookie-btn.primary * {
  color: #050505 !important;
  text-shadow: none !important;
}

/* Botón Google Play / Próximamente */
.opx-download small,
.dl-btn-store small,
.opdl-play small,
.opdl-play .small,
.opx-download span,
.dl-btn-store span {
  color: rgba(5,5,5,.66) !important;
  text-shadow: none !important;
}

.opx-download b,
.dl-btn-store strong,
.opdl-play b {
  color: #050505 !important;
  text-shadow: none !important;
}

/* El botón Dejar mi correo debe leerse negro */
.opx-hero-ctas .opx-btn.gold,
.opx-hero-ctas .opx-btn.gold *,
.opx-btn.gold[href="#reserva"],
.opx-btn.gold[href="#reserva"] * {
  color: #050505 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
