/* ============================================================
   Zona+ — estilos de front
   Paleta: #ff006d · #c8007f · #8100b9 · #ffc400 · #0b132b
   ============================================================ */

:root {
  --zp-primary: #ff006d;
  --zp-mid: #c8007f;
  --zp-secondary: #8100b9;
  --zp-accent: #ffc400;
  --zp-dark: #0b132b;
  --zp-font: 'SamsungSharpSansBold', Helvetica, Arial, Lucida, sans-serif;
  --zp-grad: linear-gradient(180deg, #ff006d 0%, #c8007f 50%, #8100b9 100%);
}


/* ============================================================
   1. BANNER PRINCIPAL
   ============================================================ */
.pg-hero {
  position: relative;
  width: 100%;
  /* La proporción la define el insumo: la imagen nunca se recorta */
  aspect-ratio: var(--zp-ratio, 1920 / 700);
  overflow: hidden;
  border-radius: 1rem;
  background: var(--zp-dark);
}

/* Si se pasa el atributo alto="" en el shortcode, manda ese valor */
.pg-hero--alto-fijo { aspect-ratio: auto; }

@media (max-width: 767px) {
  .pg-hero { aspect-ratio: var(--zp-ratio-m, 700 / 1244); }
  .pg-hero--alto-fijo { aspect-ratio: auto; }
}

.pg-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s cubic-bezier(.4, 0, .2, 1);
  will-change: opacity;
}

.pg-hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.pg-hero__slide picture,
.pg-hero__slide picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.pg-hero__img,
.pg-hero__video {
  object-fit: cover;
  object-position: center center;
}

.pg-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Contenido de los slides de video */
.pg-hero__content {
  position: absolute;
  left: 50%;
  bottom: clamp(60px, 12%, 120px);
  transform: translateX(-50%);
  z-index: 2;
  width: 90%;
  max-width: 700px;
  text-align: center;
}

.pg-hero__title {
  font-family: var(--zp-font);
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s .2s, transform .6s .2s cubic-bezier(.4, 0, .2, 1);
}

.pg-hero__desc {
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, .9);
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s .35s, transform .6s .35s cubic-bezier(.4, 0, .2, 1);
}

.pg-hero__slide--active .pg-hero__title,
.pg-hero__slide--active .pg-hero__desc {
  opacity: 1;
  transform: translateY(0);
}

/* CTA del banner */
.pg-hero__cta {
  position: absolute;
  bottom: clamp(40px, 8%, 80px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 2;
  display: inline-block;
  padding: 10px 30px;
  font-family: var(--zp-font);
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  color: #fff;
  background-image: var(--zp-grad);
  border: none;
  border-radius: 99px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .5s .3s, transform .5s .3s cubic-bezier(.4, 0, .2, 1),
              filter .3s, box-shadow .3s;
  box-shadow: 0 4px 24px rgba(129, 0, 185, .35);
}

.pg-hero__slide--active .pg-hero__cta {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pg-hero__cta:hover {
  filter: brightness(1.15);
  box-shadow: 0 8px 32px rgba(255, 0, 109, .45);
}

.pg-hero__cta--static {
  position: static;
  transform: translateY(20px);
  transition: opacity .6s .5s, transform .6s .5s cubic-bezier(.4, 0, .2, 1),
              filter .3s, box-shadow .3s;
}

.pg-hero__slide--active .pg-hero__cta--static {
  transform: translateY(0);
}

/* Flechas */
.pg-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(11, 19, 43, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}

.pg-hero__arrow--prev { left: 24px; }
.pg-hero__arrow--next { right: 24px; }

.pg-hero__arrow:hover {
  border-color: var(--zp-primary);
  background: rgba(255, 0, 109, .15);
}

@media (max-width: 767px) {
  .pg-hero__arrow { width: 40px; height: 40px; }
  .pg-hero__arrow--prev { left: 12px; }
  .pg-hero__arrow--next { right: 12px; }

  .pg-hero__cta {
    font-size: 12px;
    padding: 8px 30px;
  }
}

/* Bullets */
.pg-hero__bullets {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.pg-hero__bullet {
  width: 24px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: width .4s cubic-bezier(.4, 0, .2, 1), background .4s;
}

.pg-hero__bullet--active {
  width: 48px;
  background: linear-gradient(90deg, var(--zp-primary), var(--zp-mid));
}


/* ============================================================
   2. GRID DE OFERTAS
   ============================================================ */
.zp-grid {
  display: grid;
  grid-template-columns: repeat(var(--zp-cols, 3), 1fr);
  gap: 2rem;
  width: 100%;
}

@media (max-width: 980px) {
  .zp-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 640px) {
  .zp-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* ============================================================
   3. TARJETA DE OFERTA
   ============================================================ */
.pg-cupon {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(11, 19, 43, .07);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 19, 43, .06);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .35s;
}

.pg-cupon:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(11, 19, 43, .13);
}

.pg-cupon__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f6;
}

.pg-cupon__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.pg-cupon:hover .pg-cupon__img { transform: scale(1.05); }

/* Etiqueta de categoría */
.pg-cupon__cat {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  font-family: var(--zp-font);
  font-size: 11.5px;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(11, 19, 43, .38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 99px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.pg-cupon--centros-comerciales .pg-cupon__cat { border-color: rgba(255, 0, 109, .6); }
.pg-cupon--constructoras       .pg-cupon__cat { border-color: rgba(129, 0, 185, .6); }
.pg-cupon--automotriz          .pg-cupon__cat { border-color: rgba(255, 196, 0, .6); }

.pg-cupon__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.4rem 1.5rem;
}

.pg-cupon__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem .7rem;
  margin-bottom: .8rem;
}

.pg-cupon__off {
  font-family: var(--zp-font);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  color: var(--zp-dark);
  margin-right: auto;
}

.pg-cupon__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pg-cupon__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  font-family: var(--zp-font);
  font-size: 11.5px;
  border-radius: 99px;
  white-space: nowrap;
}

.pg-cupon__tag svg { width: 13px; height: 13px; flex-shrink: 0; }

.pg-cupon__tag--excl {
  color: var(--zp-secondary);
  background: rgba(129, 0, 185, .11);
}

.pg-cupon__tag--exp {
  color: var(--zp-primary);
  background: rgba(255, 0, 109, .10);
}

.pg-cupon__desc {
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.45;
  color: #3d4358;
  margin: 0 0 1.3rem;
  flex: 1;
}

/* --- Ticket del cupón --- */
.pg-cupon__ticket {
  position: relative;
  display: flex;
  align-items: stretch;
  border: 1.5px dashed rgba(129, 0, 185, .38);
  border-radius: .7rem;
  background: rgba(255, 0, 109, .035);
  overflow: hidden;
}

.pg-cupon__ticket::before,
.pg-cupon__ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  background: #fff;
  border: 1.5px dashed rgba(129, 0, 185, .38);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.pg-cupon__ticket::before { left: -9px; }
.pg-cupon__ticket::after  { right: -9px; }

.pg-cupon__code {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 14px 10px;
  font-family: var(--zp-font);
  font-size: 17px;
  letter-spacing: .16em;
  color: var(--zp-dark);
  border-right: 1.5px dashed rgba(129, 0, 185, .38);
}

.pg-cupon__reveal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  font-family: var(--zp-font);
  font-size: 14px;
  color: #fff;
  background-image: var(--zp-grad);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .3s;
}

.pg-cupon__reveal:hover { filter: brightness(1.13); }
.pg-cupon__reveal svg { width: 15px; height: 15px; flex-shrink: 0; }

/* --- Botones planos (promo y simple) --- */
.pg-cupon__btn,
.pg-cupon__link {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 14px 24px;
  font-family: var(--zp-font);
  font-size: 15px;
  font-weight: inherit;
  line-height: 1.2;
  letter-spacing: .02em;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-image: var(--zp-grad);
  border: none;
  border-radius: 99px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(129, 0, 185, .28);
  transition: filter .3s, box-shadow .3s, transform .3s;
}

.pg-cupon__btn:hover,
.pg-cupon__link:hover {
  filter: brightness(1.13);
  box-shadow: 0 7px 24px rgba(255, 0, 109, .4);
  transform: translateY(-2px);
}


/* ============================================================
   4. MODALES
   ============================================================ */
.pg-cmodal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.pg-cmodal--open { opacity: 1; visibility: visible; }

.pg-cmodal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, .62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.pg-cmodal__box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.9rem 1.7rem;
  transform: translateY(22px) scale(.97);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.pg-pmodal .pg-cmodal__box { max-width: 400px; }

.pg-cmodal--open .pg-cmodal__box { transform: translateY(0) scale(1); }

.pg-cmodal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(11, 19, 43, .06);
  color: var(--zp-dark);
  cursor: pointer;
  transition: background .25s, transform .25s;
}

.pg-cmodal__close:hover {
  background: rgba(255, 0, 109, .13);
  transform: rotate(90deg);
}

.pg-cmodal__close svg { width: 17px; height: 17px; }

.pg-cmodal__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1.5px dashed rgba(11, 19, 43, .14);
}

.pg-cmodal__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
  background: #f5f5f8;
  flex-shrink: 0;
}

.pg-cmodal__marca {
  margin: 0;
  font-family: var(--zp-font);
  font-size: 17px;
  color: var(--zp-dark);
}

.pg-cmodal__aviso {
  margin: 2px 0 0;
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: 12.5px;
  color: #7a8096;
}

.pg-cmodal__off {
  margin: 0;
  font-family: var(--zp-font);
  font-size: 44px;
  line-height: 1;
  background: linear-gradient(90deg, var(--zp-primary), var(--zp-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pg-cmodal__desc {
  margin: .5rem 0 1.3rem;
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #3d4358;
}

/* Caja de código */
.pg-cmodal__codebox {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-bottom: .7rem;
  border: 1.5px dashed rgba(129, 0, 185, .4);
  border-radius: .7rem;
  background: rgba(255, 0, 109, .04);
  overflow: hidden;
}

.pg-cmodal__codebox::before,
.pg-cmodal__codebox::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 15px;
  background: #fff;
  border: 1.5px dashed rgba(129, 0, 185, .4);
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.pg-cmodal__codebox::before { left: -9px; }
.pg-cmodal__codebox::after  { right: -9px; }

.pg-cmodal__code {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  padding: 15px 10px;
  font-family: var(--zp-font);
  font-size: 19px;
  letter-spacing: .2em;
  color: var(--zp-dark);
  border-right: 1.5px dashed rgba(129, 0, 185, .4);
  word-break: break-all;
}

.pg-cmodal__copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 20px;
  font-family: var(--zp-font);
  font-size: 14px;
  color: #fff;
  background-image: var(--zp-grad);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter .3s;
}

.pg-cmodal__copy:hover { filter: brightness(1.13); }
.pg-cmodal__copy svg { width: 15px; height: 15px; flex-shrink: 0; }
.pg-cmodal__copy.is-copied { background-image: none; background: #1e9e5a; }

.pg-cmodal__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 20px;
  margin-bottom: 1.5rem;
  font-family: var(--zp-font);
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: var(--zp-dark);
  border-radius: 99px;
  transition: background .3s, transform .3s;
}

.pg-cmodal__go:hover { background: #1a2542; transform: translateY(-2px); }
.pg-cmodal__go svg { width: 17px; height: 17px; }

/* En el modal de promoción el botón va al final */
.pg-cmodal__go--promo { margin: 1.5rem 0 0; }

.pg-cmodal__h4 {
  margin: 0 0 .8rem;
  font-family: var(--zp-font);
  font-size: 16px;
  color: var(--zp-dark);
}

.pg-cmodal__exp {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  margin-bottom: 1.1rem;
  background: rgba(129, 0, 185, .06);
  border-radius: .8rem;
}

.pg-cmodal__exp svg {
  width: 20px;
  height: 20px;
  color: var(--zp-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pg-cmodal__exp strong {
  display: block;
  font-family: var(--zp-font);
  font-size: 14px;
  color: var(--zp-dark);
}

.pg-cmodal__expdate {
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: 13.5px;
  color: #5c6377;
}

.pg-cmodal__cond {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.pg-cmodal__cond li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: var(--zp-font);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3d4358;
}

.pg-cmodal__cond li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(255, 0, 109, .14);
  box-shadow: inset 0 0 0 4px var(--zp-primary);
}

@media (max-width: 480px) {
  .pg-cmodal__box { padding: 1.6rem 1.2rem; }
  .pg-cmodal__off { font-size: 38px; }
  .pg-cupon__code { font-size: 15px; letter-spacing: .1em; }
  .pg-cupon__reveal { padding: 14px 15px; font-size: 13px; }
}


/* ============================================================
   5. IMPERDIBLES (siempre 1 slide por vista)
   ============================================================ */
.zp-imp {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.zp-imp__viewport { overflow: hidden; }

.zp-imp__track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.zp-imp__slide {
  position: relative;
  flex: 0 0 100%;
}

.zp-imp__card { position: relative; }

.zp-imp__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.zp-imp__cta {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 11px 30px;
  font-family: var(--zp-font);
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background-image: var(--zp-grad);
  border-radius: 99px;
  box-shadow: 0 4px 16px rgba(129, 0, 185, .35);
  transition: filter .3s, box-shadow .3s;
}

.zp-imp__cta:hover {
  filter: brightness(1.13);
  box-shadow: 0 6px 24px rgba(255, 0, 109, .45);
}

.zp-imp__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(11, 19, 43, .3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}

.zp-imp__arrow--prev { left: 1rem; }
.zp-imp__arrow--next { right: 1rem; }

.zp-imp__arrow:hover {
  border-color: var(--zp-primary);
  background: rgba(255, 0, 109, .15);
}

.zp-imp__bullets {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.zp-imp__bullet {
  width: 24px;
  height: 4px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  padding: 0;
  transition: width .4s cubic-bezier(.4, 0, .2, 1), background .4s;
}

.zp-imp__bullet--active {
  width: 48px;
  background: linear-gradient(90deg, var(--zp-primary), var(--zp-secondary));
}

@media (max-width: 640px) {
  .zp-imp__arrow { width: 34px; height: 34px; }
  .zp-imp__arrow--prev { left: .6rem; }
  .zp-imp__arrow--next { right: .6rem; }
  .zp-imp__cta { font-size: 12px; padding: 8px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-hero__slide,
  .zp-imp__track,
  .pg-cupon { transition: none; }
}

/* ============================================================
   6. OFERTA DESTACADA POR CATEGORÍA
   ============================================================ */
.zp-dest {
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  line-height: 0; /* elimina el hueco bajo la imagen */
}

.zp-dest__img {
  display: block;
  width: 100%;
  height: auto; /* la imagen define el alto: nunca se recorta */
}

.zp-dest__cta {
  position: absolute;
  bottom: clamp(16px, 5%, 44px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-block;
  padding: 12px 34px;
  font-family: var(--zp-font);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .03em;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background-image: var(--zp-grad);
  border-radius: 99px;
  box-shadow: 0 4px 18px rgba(129, 0, 185, .35);
  transition: filter .3s, box-shadow .3s, transform .3s;
}

.zp-dest__cta:hover {
  filter: brightness(1.13);
  box-shadow: 0 7px 26px rgba(255, 0, 109, .45);
  transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 767px) {
  .zp-dest__cta {
    padding: 8px 26px;
    font-size: 12px;
  }
}
