/* Popup oferta teclado + mouse en páginas PC Gamer */
body.gf-pc-promo-open {
  overflow: hidden;
}

.gf-pc-promo {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gf-pc-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(5px);
}

.gf-pc-promo__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
}

.gf-pc-promo__art {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  line-height: 0;
}

.gf-pc-promo__art img {
  width: 100%;
  height: auto;
  display: block;
}

.gf-pc-promo__close {
  position: absolute;
  top: 2.5%;
  right: 2.2%;
  width: 9%;
  max-width: 44px;
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  z-index: 4;
  padding: 0;
}

.gf-pc-promo__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.gf-pc-promo__redeem {
  position: absolute;
  left: 7%;
  bottom: 5.5%;
  width: 34%;
  min-height: 2.4rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(105deg, #2563eb 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  z-index: 3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s;
}

.gf-pc-promo__redeem:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.5);
}

.gf-pc-promo__redeem:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #64748b;
  box-shadow: none;
}

.gf-pc-promo__expired {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  z-index: 5;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1rem, 3vw, 1.45rem);
  text-align: center;
  padding: 1rem;
}

@keyframes gf-pc-promo-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

/* —— Reloj debajo del carrito (escritorio + móvil) —— */
.navbar-nav.ml-auto,
nav.gf-mobile-main-nav,
nav.gf-mobile-main-nav .gf-mobile-header-actions,
.gf-nav-mobile-strip .navbar {
  overflow: visible !important;
}

a.gf-nav-cart.gf-nav-cart--promo-active,
nav.gf-mobile-main-nav .gf-mobile-header-actions__btn.gf-nav-cart.gf-nav-cart--promo-active {
  position: relative;
  display: inline-grid !important;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: start;
  row-gap: 0.22rem;
  column-gap: 0;
  width: auto;
  min-width: 2.75rem;
  height: auto !important;
  min-height: 2.25rem;
  padding: 0.15rem 0.2rem 0.12rem !important;
  margin: 0;
  vertical-align: top;
  overflow: visible;
  text-align: center;
}

a.gf-nav-cart.gf-nav-cart--promo-active > i,
nav.gf-mobile-main-nav
  .gf-mobile-header-actions__btn.gf-nav-cart.gf-nav-cart--promo-active
  > i {
  grid-row: 1;
  grid-column: 1;
  display: block;
  line-height: 1;
  margin: 0;
}

a.gf-nav-cart.gf-nav-cart--promo-active > .gf-cart-count,
nav.gf-mobile-main-nav
  .gf-mobile-header-actions__btn.gf-nav-cart.gf-nav-cart--promo-active
  > .gf-mobile-header-actions__badge,
nav.gf-mobile-main-nav
  .gf-mobile-header-actions__btn.gf-nav-cart.gf-nav-cart--promo-active
  > .gf-cart-count {
  grid-row: 1;
  grid-column: 1;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  justify-self: end;
  align-self: start;
  margin: -0.35rem -0.45rem 0 0 !important;
  z-index: 2;
}

.gf-pc-promo-cart-clock {
  grid-row: 2;
  grid-column: 1;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  margin: 0 !important;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: #fff;
  background: linear-gradient(105deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

.gf-pc-promo-cart-clock::before {
  content: "\f017";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.62rem;
  opacity: 0.95;
}

.gf-pc-promo-cart-clock--urgent {
  background: linear-gradient(105deg, #dc2626 0%, #b91c1c 100%);
  animation: gf-pc-promo-pulse-cart 0.7s ease-in-out infinite;
}

@keyframes gf-pc-promo-pulse-cart {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

nav.gf-mobile-main-nav .gf-mobile-header-actions {
  align-items: flex-end;
  overflow: visible;
}

@media (max-width: 991.98px) {
  body .container-fluid.gf-nav-mobile-strip,
  body .container-fluid.gf-nav-mobile-strip > .row.px-xl-5,
  body nav.navbar.gf-mobile-main-nav.bg-dark.navbar-expand-lg.navbar-dark,
  body nav.gf-mobile-main-nav .gf-mobile-header-actions {
    overflow: visible !important;
  }

  body nav.gf-mobile-main-nav .gf-mobile-header-actions {
    align-items: flex-end !important;
    align-self: end !important;
    padding-bottom: 0.15rem !important;
  }

  body nav.navbar.gf-mobile-main-nav:has(.gf-nav-cart--promo-active) {
    padding-bottom: 2.1rem !important;
    align-items: end !important;
  }

  body nav.gf-mobile-main-nav .gf-mobile-header-actions__btn.gf-nav-cart.gf-nav-cart--promo-active {
    display: inline-grid !important;
    width: auto !important;
    min-width: 44px !important;
    height: auto !important;
    min-height: 38px !important;
    overflow: visible !important;
    align-items: center !important;
    justify-content: center !important;
    row-gap: 0.18rem;
    padding-bottom: 0.08rem !important;
  }

  body nav.gf-mobile-main-nav .gf-pc-promo-cart-clock {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 0.62rem;
    padding: 0.14rem 0.34rem;
  }
}

@media (min-width: 992px) {
  .navbar-nav.ml-auto {
    align-items: flex-start;
  }

  a.gf-nav-cart.gf-nav-cart--promo-active {
    min-width: 3rem;
    row-gap: 0.2rem;
    padding-bottom: 0.1rem !important;
  }

  .gf-pc-promo-cart-clock {
    font-size: 0.7rem;
    padding: 0.17rem 0.42rem;
  }
}

#gf-pc-promo-float-clock {
  display: none !important;
}

@media (max-width: 576px) {
  .gf-pc-promo {
    padding: 0.5rem;
  }

  .gf-pc-promo__redeem {
    left: 5%;
    bottom: 4.5%;
    width: 40%;
    font-size: 0.8rem;
  }
}
