/* =========================================================
   PBTECH — OFERTAS AUTOMÁTICAS DEL HOME
   Versión 1.4
   ========================================================= */

.pb-offers,
.pb-offers * {
  box-sizing: border-box;
}

/*
 * 100vw incluye el ancho de la barra vertical en navegadores de escritorio.
 * Recortamos únicamente ese excedente horizontal, sin afectar el carrusel.
 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.pb-offers {
  --pb-offer-blue: #5c81b8;
  --pb-offer-cyan: #63d7ff;
  --pb-offer-text: #f7fbff;
  --pb-offer-muted: #aab8ca;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: none !important;
  margin-inline: calc(50% - 50vw) !important;
  padding: clamp(58px, 7vw, 96px) 20px;
  color: var(--pb-offer-text);
  background:
    radial-gradient(circle at 12% 18%, rgba(92, 129, 184, .16), transparent 34%),
    radial-gradient(circle at 88% 80%, rgba(48, 205, 255, .09), transparent 30%),
    #070b12;
}

.pb-offers[hidden] {
  display: none !important;
}

.pb-offers__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -190px;
  width: min(760px, 80vw);
  height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(64, 190, 255, .13);
  filter: blur(95px);
  pointer-events: none;
}

.pb-offers__container {
  width: min(1200px, 100%);
  margin-inline: auto;
}

.pb-offers__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.pb-offers__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(99, 215, 255, .25);
  border-radius: 999px;
  color: #a9eaff;
  background: rgba(41, 139, 183, .09);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.pb-offers h2 {
  margin: 13px 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.pb-offers__header p {
  margin: 0;
  color: var(--pb-offer-muted);
  font-size: clamp(14px, 1.5vw, 17px);
}

.pb-offers__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.pb-offers.has-no-overflow .pb-offers__controls {
  visibility: hidden;
}

.pb-offers__arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: border-color .22s ease, background .22s ease, transform .22s ease, opacity .22s ease;
}

.pb-offers__arrow:hover:not(:disabled) {
  border-color: rgba(99, 215, 255, .55);
  background: rgba(92, 129, 184, .22);
  transform: translateY(-2px);
}

.pb-offers__arrow:focus-visible,
.pb-offer-card a:focus-visible {
  outline: 2px solid var(--pb-offer-cyan);
  outline-offset: 3px;
}

.pb-offers__arrow:disabled {
  opacity: .28;
  cursor: default;
}

.pb-offers__viewport {
  overflow: hidden;
  margin-inline: -18px;
  padding: 0 18px;
}

.pb-offers__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 44px) / 3);
  gap: 22px;
  overflow-x: auto;
  /* Espacio real para que el scale + translate del hover no se recorte. */
  padding: 32px 7px 34px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.pb-offers__track::-webkit-scrollbar {
  display: none;
}

.pb-offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 46%, rgba(44, 102, 152, .06)),
    rgba(10, 16, 25, .72);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  scroll-snap-align: start;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.pb-offer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(122deg, rgba(255, 255, 255, .095), transparent 23%, transparent 74%, rgba(70, 194, 255, .035));
  pointer-events: none;
}

.pb-offer-card:hover {
  transform: translateY(-5px) scale(1.018);
  border-color: rgba(99, 215, 255, .34);
  box-shadow: 0 28px 68px rgba(0, 0, 0, .34), 0 0 38px rgba(55, 168, 225, .07), inset 0 1px 0 rgba(255, 255, 255, .13);
}

.pb-offer-card__media {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 295px;
  width: 100%;
  height: 295px;
  min-height: 295px;
  padding: 30px 28px 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(92, 129, 184, .17), transparent 54%);
}

.pb-offer-card__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .33));
  transition: transform .32s ease;
}

.pb-offer-card:hover .pb-offer-card__media img {
  transform: scale(1.055);
}

.pb-offer-card__badge {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2f9ed3, #416cab);
  box-shadow: 0 8px 22px rgba(31, 132, 185, .3);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
}

.pb-offer-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 22px;
  background: linear-gradient(to bottom, rgba(10, 16, 25, .94), rgba(10, 16, 25, .76));
}

.pb-offer-card__name {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 13px;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -.015em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pb-offer-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pb-offer-card__regular {
  color: #7f8b9d;
  font-size: 14px;
  text-decoration: line-through;
}

.pb-offer-card__sale {
  color: #fff;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.pb-offer-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.pb-offer-card__actions a {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.pb-offer-card__details {
  border: 1px solid rgba(255, 255, 255, .15);
  color: #eff7ff !important;
  background: rgba(255, 255, 255, .045);
}

.pb-offer-card__buy {
  border: 1px solid rgba(119, 215, 255, .27);
  color: #07111c !important;
  background: linear-gradient(135deg, #bdeeff, #69c9ee 48%, #76a8e7);
  box-shadow: 0 10px 24px rgba(52, 164, 218, .18);
}

.pb-offer-card__actions a:hover {
  transform: translateY(-2px);
}

.pb-offers__status {
  margin: 15px 0 0;
  color: var(--pb-offer-muted);
  text-align: center;
}

.pb-offers__status:empty {
  display: none;
}

@media (max-width: 960px) {
  .pb-offers__track {
    grid-auto-columns: calc((100% - 18px) / 2);
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .pb-offers {
    padding: 52px 16px 62px;
  }

  .pb-offers__header {
    align-items: center;
    margin-bottom: 24px;
  }

  .pb-offers__header p {
    max-width: 290px;
  }

  .pb-offers__controls {
    display: none;
  }

  .pb-offers__viewport {
    overflow: visible;
    margin: 0 -16px 0 0;
    padding: 0 16px 0 0;
  }

  .pb-offers__track {
    grid-auto-columns: min(84vw, 330px);
    gap: 14px;
    padding: 10px 0 14px;
  }

  .pb-offer-card {
    min-height: 490px;
    border-radius: 24px;
  }

  .pb-offer-card:hover {
    transform: none;
  }

  .pb-offer-card__media {
    flex-basis: 275px;
    height: 275px;
    min-height: 275px;
  }
}

@media (max-width: 380px) {
  .pb-offer-card__actions {
    grid-template-columns: 1fr;
  }

  .pb-offer-card {
    min-height: 535px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-offers__track {
    scroll-behavior: auto;
  }

  .pb-offer-card,
  .pb-offer-card__media img,
  .pb-offers__arrow,
  .pb-offer-card__actions a {
    transition: none !important;
  }
}
