/* Decorative background shared by the selected Black Friday pages only. */
.biz-construction.bfx-background-page {
  --bfx-gap: clamp(48px, 6.1vw, 112px);
  --bfx-rail: max(var(--bfx-gap), calc(50vw - 750px));
  background: #0c0d0f;
  isolation: isolate;
}

.bfx-background-page > .bfx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% -25%, #48432b35, transparent 65%), #0c0d0f;
}

.bfx-background-page .bfx-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--bfx-rail);
  overflow: hidden;
  contain: paint;
}
.bfx-background-page .bfx-rail-left { left: 0; }
.bfx-background-page .bfx-rail-right { right: 0; }

.bfx-background-page .bfx-edge-word {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-family: var(--tp-ff-clash-semibold, Inter, Arial, sans-serif);
  font-size: clamp(36px, 4.3vw, 78px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .055em;
  color: #ffe04b12;
  -webkit-text-stroke: 1px #e6d48055;
  user-select: none;
}
.bfx-background-page .bfx-rail-right .bfx-edge-word {
  transform: translate(-50%, -50%);
}

.bfx-background-page .bfx-confetti { position: absolute; inset: 0; }
.bfx-background-page .bfx-confetti i {
  position: absolute;
  left: var(--x);
  top: -24px;
  width: 7px;
  height: 17px;
  border-radius: 1px;
  background: #ffe04b;
  opacity: .55;
  transform: rotate(var(--angle));
  animation: bfx-background-fall var(--fall-duration, 8s) linear calc(var(--fall-delay, 0s) - var(--delay, 0s)) infinite both;
}
.bfx-background-page .bfx-confetti i:nth-child(3n) {
  height: 7px;
  border-radius: 50%;
  background: #f6f0d5;
  opacity: .4;
}
.bfx-background-page .bfx-confetti i:nth-child(3n+2) {
  width: 5px;
  height: 11px;
  background: #c9a740;
  opacity: .65;
}
.bfx-background-page .bfx-confetti i:nth-child(7n+1) { --fall-duration: 8.2s; --fall-delay: -5.1s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+2) { --fall-duration: 10.1s; --fall-delay: -1.8s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+3) { --fall-duration: 7.6s; --fall-delay: -3.6s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+4) { --fall-duration: 9.4s; --fall-delay: -7.3s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+5) { --fall-duration: 8.7s; --fall-delay: -.4s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+6) { --fall-duration: 10.6s; --fall-delay: -6.3s; }
.bfx-background-page .bfx-confetti i:nth-child(7n+7) { --fall-duration: 7.9s; --fall-delay: -2.7s; }

@keyframes bfx-background-fall {
  0% { opacity: 0; transform: translate3d(-4px, 0, 0) rotate(0deg); }
  6%, 94% { opacity: .65; }
  100% { opacity: 0; transform: translate3d(10px, calc(100vh + 48px), 0) rotate(calc(var(--angle) + 360deg)); }
}

/* Keep the existing page on its original opaque canvas, above the side decoration. */
.bfx-background-page > #contenido {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--bfx-gap) - var(--bfx-gap));
  max-width: 1500px;
  margin: 18px auto 0;
  background: #f8f7f4;
  border-radius: 18px;
  box-shadow: 0 0 0 1px #ffffff14;
  overflow: clip;
  display: flow-root;
}
.bfx-background-page > footer {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--bfx-gap) - var(--bfx-gap));
  max-width: 1500px;
  margin: 24px auto 0;
  overflow: clip;
  border-radius: 18px 18px 0 0;
}

@media (max-width: 1199px) {
  .biz-construction.bfx-background-page { --bfx-gap: 40px; }
  .bfx-background-page .bfx-edge-word { font-size: 36px; -webkit-text-stroke-color: #e6d48044; }
  .bfx-background-page .bfx-confetti i { width: 5px; height: 12px; }
}
@media (max-width: 991px) {
  .biz-construction.bfx-background-page { --bfx-gap: 27px; }
  .bfx-background-page .bfx-edge-word { font-size: 27px; letter-spacing: .04em; }
  .bfx-background-page .bfx-confetti i { width: 4px; height: 9px; }
}
@media (max-width: 767px) {
  .biz-construction.bfx-background-page { --bfx-gap: 10px; }
  .bfx-background-page > #contenido { border-radius: 12px; }
  .bfx-background-page > footer { border-radius: 12px 12px 0 0; margin-top: 17px; }
  .bfx-background-page .bfx-edge-word { display: none; }
  .bfx-background-page .bfx-confetti i { width: 3px; height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .bfx-background-page .bfx-confetti i { top: var(--y); animation: none; }
}
