/* Black Friday 2026 — franja de landings y banner de la home. */
[data-bf-promo][hidden],
[data-bf-banner][hidden] {
  display: none !important;
}

[data-bf-banner] {
  --bf-yellow: #FFD400;
  --bf-black: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #000;
  color: #FFD400;
  border-bottom: 1px solid rgba(255, 212, 0, 0.35);
  font-family: Sora, system-ui, sans-serif;
}
[data-bf-banner] .bf-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
[data-bf-banner] p { margin: 0; color: #FFD400; }
[data-bf-banner] .bf-banner-kicker {
  display: inline-block;
  margin-right: 8px;
  color: #FFD400;
  font-weight: 800;
  font-style: italic;
  font-size: 16px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  transform-origin: center;
}
[data-bf-banner] code {
  font-family: 'Azeret Mono', monospace;
  font-weight: 600;
  background: #0a0a0a;
  color: #FFD400;
  border: 1px solid rgba(255, 212, 0, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
}
[data-bf-banner] .bf-banner-cta,
.bf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFD400;
  color: #000;
  font-weight: 800;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
[data-bf-banner] .bf-banner-cta:hover,
.bf-cta:hover { filter: brightness(1.08); }
@media (prefers-reduced-motion: reduce) {
  [data-bf-banner] .bf-banner-kicker { transform: none; font-style: normal; }
}

html.bf-promo-on [data-bf-banner] ~ * .hdr,
html.bf-promo-on .hdr,
html.bf-promo-on nav.fixed,
html.bf-promo-on .fixed.top-0 {
  top: var(--bf-banner-height, 0px);
}
html.bf-promo-on:has([data-bf-banner]:not([hidden])) {
  padding-top: var(--bf-banner-height, 0px);
}

/* Banner grande de la home — Black Friday: #FFD400 sobre negro. */
.bf-home {
  --bf-yellow: #FFD400;
  --bf-black: #000;
  --bf-black-2: #0a0a0a;
  background: #000;
  color: #FFD400;
  padding: calc(var(--hh, 72px) + 28px) 24px 40px;
  font-family: Sora, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
}
.bf-home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 212, 0, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 212, 0, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%);
}
.bf-home-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.bf-title {
  display: inline-block;
  margin: 0 0 10px;
  color: #FFD400;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  transform: rotate(-3.5deg);
  transform-origin: left center;
  text-shadow: 0 6px 0 rgba(255, 212, 0, .12);
}
.bf-date {
  margin: 18px 0 16px;
  color: #FFD400;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
}
.bf-home .bf-lead {
  margin: 18px 0 22px;
  color: #ffe9a3;
  font-size: 16px;
  max-width: 640px;
}
.bf-count {
  display: flex;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}
.bf-count div {
  min-width: 68px;
  flex: 0 1 72px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 212, 0, .35);
  border-radius: 12px;
  padding: 10px 8px 8px;
  text-align: center;
}
.bf-count [data-bf-unit] {
  display: block;
  font: 700 28px/1 'Azeret Mono', monospace;
  color: #FFD400;
  letter-spacing: .02em;
}
.bf-count small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d6b400;
}
.bf-offers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bf-offer {
  background: #0a0a0a;
  border: 1px solid rgba(255, 212, 0, .35);
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}
.bf-offer h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.bf-price {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #FFD400;
}
.bf-price s {
  display: inline-block;
  margin-right: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #9a9a9a;
}
.bf-code {
  margin: 0 0 10px;
  font: 500 12px 'Azeret Mono', monospace;
  color: #FFD400;
}
.bf-offer .bf-cta {
  margin-top: auto;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  background: #FFD400;
  color: #000;
}
.bf-offer .bf-cta:hover { filter: brightness(1.08); }

html.bf-promo-on .bf-home + .hero {
  padding-top: 36px;
}

/* Mientras el banner está en pantalla, el FAB y la barra sticky no tapan las cards. */
html.bf-home-in-view .wa-fab,
html.bf-home-in-view .sticky {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

@media (min-width: 700px) {
  .bf-offers { grid-template-columns: 1fr 1fr; }
  .bf-count [data-bf-unit] { font-size: 32px; }
  .bf-count div { min-width: 80px; }
}
@media (min-width: 1020px) {
  .bf-offers { grid-template-columns: repeat(4, 1fr); }
  .bf-home { padding-bottom: 52px; }
  .bf-title { font-size: 72px; }
}

@media (max-width: 430px) {
  .bf-home {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 48px;
  }
  .bf-title { font-size: 42px; }
  .bf-count { gap: 8px; }
  .bf-count div { min-width: 0; flex: 1 1 0; padding: 8px 4px 6px; }
  .bf-count [data-bf-unit] { font-size: 22px; }
  .bf-price { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-title { transform: none; font-style: normal; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
