/* =========================================================
   Popup de noticias / promociones (sitio + vista previa admin)
   ========================================================= */
.tzp {
  --tzp-bg: #232e25;
  --tzp-ink: #f3efe6;
  --tzp-muted: #c9c3b4;
  --tzp-accent: #c4a468;
  --tzp-accent-ink: #1c251e;

  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
}
.tzp--halloween {
  --tzp-bg: #1b1712;
  --tzp-ink: #fbf3e4;
  --tzp-muted: #d9ccb4;
  --tzp-accent: #e8792b;
  --tzp-accent-ink: #1b1712;
}

.tzp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 13, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .35s ease;
}
.tzp__card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--tzp-bg);
  color: var(--tzp-ink);
  border-top: 3px solid var(--tzp-accent);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1);
}
.tzp.is-open .tzp__backdrop { opacity: 1; }
.tzp.is-open .tzp__card { opacity: 1; transform: none; }

.tzp__close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.tzp__close:hover { background: rgba(0, 0, 0, .6); }

.tzp__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.tzp__body { position: relative; padding: 30px 30px 26px; text-align: center; }
.tzp__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tzp-accent);
  border: 1px solid currentColor;
}
.tzp__title {
  margin: 0 0 10px;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.tzp__text { margin: 0 auto 20px; max-width: 34ch; color: var(--tzp-muted); line-height: 1.5; }
.tzp__text strong { color: var(--tzp-ink); }

.tzp__code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 10px 18px;
  border: 1.5px dashed var(--tzp-accent);
}
.tzp__code span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tzp-muted); }
.tzp__code strong { font-size: 1.15rem; letter-spacing: .12em; color: var(--tzp-accent); }

.tzp__cta {
  display: block;
  padding: 14px 20px;
  background: var(--tzp-accent);
  color: var(--tzp-accent-ink);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: filter .2s;
}
.tzp__cta:hover { filter: brightness(1.08); }
.tzp__valid { margin: 12px 0 0; font-size: .75rem; color: var(--tzp-muted); }

/* Decoración Halloween */
.tzp__bats { display: none; }
.tzp__pumpkin { display: none; }
.tzp--halloween .tzp__body { padding-top: 88px; }
.tzp--halloween .tzp__card {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(232, 121, 43, .22), transparent 60%),
    var(--tzp-bg);
}
.tzp--halloween .tzp__bats {
  display: block;
  position: absolute;
  top: 14px;
  left: 18px;
  width: 150px;
  fill: #5b4b3a;
  animation: tzp-float 4s ease-in-out infinite;
}
.tzp--halloween .tzp__pumpkin {
  display: block;
  position: absolute;
  top: 18px;
  left: 50%;
  width: 60px;
  margin-left: -30px;
  z-index: 1;
  fill: #e8792b;
  filter: drop-shadow(0 0 14px rgba(232, 121, 43, .55));
}
.tzp--halloween .tzp__img + .tzp__bats,
.tzp--halloween .tzp__img ~ .tzp__pumpkin { display: none; }
.tzp--halloween .tzp__img ~ .tzp__body { padding-top: 30px; }
.tzp__pumpkin ellipse:nth-of-type(3) { fill: #f08a3c; }
.tzp__pumpkin .stem { fill: #6b7a3a; }
.tzp__pumpkin .face { fill: #2a1a0e; }

@keyframes tzp-float { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) {
  .tzp__card, .tzp__backdrop { transition: none; }
  .tzp__bats { animation: none; }
}
