.pb-bf,
.pb-bf-teaser {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 0;
  font-family: "Work Sans", sans-serif;
  color: #fbf8f1;
}

.pb-bf-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 28px;
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(232, 200, 114, 0.28), transparent 55%),
    linear-gradient(145deg, #161616 0%, #242424 58%, #1b2a18 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 200, 114, 0.45);
}

.pb-bf-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 36%, rgba(255, 244, 214, 0.1) 50%, transparent 64%);
  transform: translateX(-60%);
  animation: pb-bf-brillo 16s ease-in-out infinite;
  pointer-events: none;
}

.pb-bf-viernes h2 {
  color: #f8e7b0;
}

.pb-bf-hero {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  max-width: 40em;
  border-radius: 16px;
  background: #1a1a1a;
  color: #f8e7b0;
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(232, 200, 114, 0.75);
}

.pb-bf-hero:hover,
.pb-bf-hero:focus-visible {
  color: #fff;
}

.pb-bf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c872;
}

.pb-bf-bandera {
  display: inline-flex;
  flex: none;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(251, 248, 241, 0.45);
  line-height: 0;
}

/* El lazo de la cabecera es permanente: ni la campaña ni las piezas
   que caen lo ocultan. La cabecera queda por encima de esa capa. */
.hv-hdr-lazo {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0;
}

div[style*="z-index: 40"] {
  z-index: 60 !important;
}

h1, h2, h3, p, a, button, img, figure,
.precio, .pb-bf-card, .pb-bf-cuenta,
header, nav, footer, main, article.ficha {
  position: relative;
  z-index: 1;
}

/* La ficha queda por encima de los iconos que caen. El fondo, del mismo
   color que la página, tapa la etiqueta y el precio: si no, se transparentan
   y un icono negro se ve encima. */
article.ficha {
  background: var(--crema, #FBF8F1);
}

.pb-bf,
.pb-bf-teaser {
  position: relative;
  z-index: 2;
}

#black-friday {
  scroll-margin-top: 130px;
}

@media (max-width: 759px) {
  #black-friday { scroll-margin-top: 190px; }
}

.pb-bf h2,
.pb-bf-teaser h2 {
  margin: 8px 0 0;
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fbf8f1;
}

.pb-bf-fechas {
  margin: 12px 0 0;
  max-width: 38em;
  font-size: 15px;
  line-height: 1.45;
  color: #e7e1d4;
}

.pb-bf-cuenta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pb-bf-unidad {
  min-width: 64px;
  padding: 10px 8px 8px;
  border-radius: 14px;
  background: #fbf8f1;
  color: #1a1a1a;
  text-align: center;
}

.pb-bf-unidad strong {
  display: block;
  font-family: Fraunces, serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.pb-bf-unidad span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #6d675c;
}

.pb-bf-sep {
  font-family: Fraunces, serif;
  font-size: 28px;
  color: #e8c872;
}

.pb-bf-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pb-bf-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border-radius: 18px;
  background: #fbf8f1;
  color: #2b2a20;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(232, 200, 114, 0.55);
}

.pb-bf-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.pb-bf-card .nombre {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.pb-bf-card .precio {
  margin-top: 6px;
  font-family: Fraunces, serif;
  font-size: 20px;
  font-weight: 600;
  color: #3e5a32;
}

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

.pb-bf-badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fbf8f1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.pb-bf-badge.pb-t-a {
  background: linear-gradient(135deg, #f8e7b0 0%, #e8c872 46%, #c6a15b 62%, #f3d78c 100%);
  color: #1a1a1a;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}

.pb-bf-badge.pb-t-b {
  background: linear-gradient(180deg, #2c2c2c, #0c0c0c);
  color: #e8c872;
  box-shadow: inset 0 0 0 1px #e4c57c;
}

.pb-bf-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 28%, rgba(232, 200, 114, 0.28) 50%, transparent 72%);
  transform: translateX(-120%);
  animation: pb-bf-brillo 11s ease-in-out infinite;
}

.pb-bf-teaser {
  padding-top: 18px;
}

.pb-bf-motivos {
  display: flex;
  align-items: flex-end;
  margin-top: 16px;
  pointer-events: none;
  animation: pb-bf-entrada 1.15s ease both;
}

.pb-bf-kicker,
.pb-bf h2,
.pb-bf-teaser h2,
.pb-bf-fechas,
.pb-bf-cuenta {
  animation: pb-bf-entrada 1.05s ease both;
}

.pb-bf-kicker { animation-delay: 0.04s; }
.pb-bf h2,
.pb-bf-teaser h2 { animation-delay: 0.14s; }
.pb-bf-fechas { animation-delay: 0.26s; }
.pb-bf-motivos { animation-delay: 0.38s; }
.pb-bf-cuenta { animation-delay: 0.5s; }

.pb-bf-motivos svg {
  width: 168px;
  height: 72px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
  animation: pb-bf-flotar 10s ease-in-out 1.15s infinite;
}

.pb-t-borde { stroke: #1a1a1a; }
.pb-t-tinta { fill: #1a1a1a; stroke: #1a1a1a; }
.pb-brillo { fill: #fff; }

.pb-t-b .pb-t-oro-a { stop-color: #3a3a3a; }
.pb-t-b .pb-t-oro-b { stop-color: #161616; }
.pb-t-b .pb-t-oro-c { stop-color: #0c0c0c; }
.pb-t-b .pb-t-oro-d { stop-color: #2a2a2a; }
.pb-t-b .pb-t-oro-e { stop-color: #242424; }
.pb-t-b .pb-t-borde { stroke: #e4c57c; }
.pb-t-b .pb-t-tinta { fill: #e8c872; stroke: #e4c57c; }
.pb-t-b .pb-brillo { fill: #f3d78c; }

.pb-brillo {
  animation: pb-bf-metal 10s ease-in-out infinite;
}

@keyframes pb-bf-metal {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.32; }
}

@keyframes pb-bf-flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pb-bf-entrada {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pb-bf-aviso {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fbf8f1;
  font-size: 13px;
  line-height: 1.4;
}

.ficha .pb-bf-badge,
.tarjeta .pb-bf-badge {
  margin: 0 0 8px;
}

@keyframes pb-bf-brillo {
  0%, 68% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@media (max-width: 980px) {
  .pb-bf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .pb-bf,
  .pb-bf-teaser { padding: 18px 16px 0; }
  .pb-bf-motivos svg { width: 150px; height: 64px; }
  .pb-bf-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
    border-radius: 22px;
  }
  .pb-bf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pb-bf-unidad { min-width: 56px; }
  .pb-bf-unidad strong { font-size: 22px; }
  .pb-bf-card .nombre { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-bf-banner::after,
  .pb-bf-badge::after,
  .pb-bf-kicker,
  .pb-bf h2,
  .pb-bf-teaser h2,
  .pb-bf-fechas,
  .pb-bf-cuenta,
  .pb-bf-motivos,
  .pb-bf-motivos svg,
  .pb-brillo { animation: none; }
}

