/* ==========================================================================
   Recursos Worship — Black Friday 2026 · «Viernes de Luz»  (prefijo bf-)
   Se carga después de styles.css + nav.css. No toca nada compartido.
   --------------------------------------------------------------------------
   Idea: la página empieza en un escenario negro (el viernes negro) y la luz
   sale de la composición: el «60%» calado deja ver un cielo en movimiento,
   las apps son pantallas encendidas, las palabras del manifiesto se encienden
   al hacer scroll y el muro de recursos «prende las luces». Plano: sin sombras,
   sin brillos; el acento cálido solo en puntos pequeños.
   1. Tokens · 2. Utilidades · 3. Escenario · 4. Hero · 5. Repisa de apps
   6. Manifiesto · 7. Capítulos · 8. Muro · 9. Planes · 10. FAQ · 11. Cierre
   12. Barra fija · 13. Responsive · 14. Movimiento reducido
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
.bf-page {
  --bf-night: #000000;              /* el negro del escenario (negro puro: el calado no deja bordes) */
  --bf-night-2: #0e0e0e;
  --bf-night-line: rgba(255, 255, 255, 0.1);
  --bf-night-line-2: rgba(255, 255, 255, 0.18);
  --bf-night-ink: #ffffff;
  --bf-night-ink-2: rgba(255, 255, 255, 0.72);
  --bf-night-muted: rgba(255, 255, 255, 0.52);
  --bf-night-dim: #4a4a4a;          /* «viernes negro»: casi se pierde en el fondo */
  --bf-word-off: #d9d9dc;           /* palabras del manifiesto aún apagadas */
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
:root[data-theme="dark"] .bf-page { --bf-word-off: #363636; }

/* 2. Utilidades ------------------------------------------------------------ */
.bf-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bf-muted { color: var(--muted-2); }
.bf-nowrap { white-space: nowrap; }
:root[data-theme="dark"] .bf-only-light, :root:not([data-theme="dark"]) .bf-only-dark { display: none; }
.bf-page [id] { scroll-margin-top: 96px; }

.bf-label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.bf-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--fill); color: var(--ink);
}
.bf-tag--ink { background: var(--ink); color: var(--on-ink); }

/* Botón claro (sobre negro) */
.bf-btn-light { background: #ffffff; color: #0a0a0a; }
.bf-btn-light:hover { background: #e8e8ea; }

/* Cupón con forma de boleto: borde punteado, código en monoespaciada */
.bf-ticket {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 6px 0 18px;
  border-radius: 999px;
  border: 1px dashed var(--bf-night-line-2);
  color: var(--bf-night-ink);
  transition: border-color var(--t-ui) var(--ease-ui);
}
.bf-ticket:hover { border-color: rgba(255, 255, 255, 0.45); }
.bf-ticket-l { font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bf-night-muted); }
.bf-ticket-code { font: 500 17px/1 var(--mono); letter-spacing: 0.1em; }
.bf-ticket-act {
  display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); font: 600 13px/1 var(--font); letter-spacing: 0;
  transition: background-color var(--t-ui), color var(--t-ui);
}
.bf-ticket:hover .bf-ticket-act { background: rgba(255, 255, 255, 0.16); }
.bf-ticket.is-copied .bf-ticket-act { background: #ffffff; color: #0a0a0a; }

/* 3. Escenarios oscuros (iguales en claro y oscuro) ------------------------- */
.bf-stage {
  position: relative;
  background: var(--bf-night);
  color: var(--bf-night-ink);
  overflow: hidden;
  isolation: isolate;
}
/* Hero: degradado al estilo de hostinger.com (negro arriba → índigo → violeta abajo,
   con más luz en las esquinas inferiores). Colores tomados de su hero y llevados al morado de RW. */
.bf-stage--hero {
  border-radius: 0 0 var(--r-hero) var(--r-hero);
  background:
    radial-gradient(44% 36% at 100% 100%, rgba(112, 70, 240, 0.85) 0%, rgba(112, 70, 240, 0) 72%),
    radial-gradient(40% 32% at 0% 100%, rgba(232, 52, 160, 0.55) 0%, rgba(232, 52, 160, 0) 72%),
    radial-gradient(130% 92% at 50% 100%, #40258f 0%, #2d1b64 20%, #1d113e 40%, #0e081f 60%, #040209 80%, #000 100%),
    #000;
}
.bf-stage--wall, .bf-stage--end { border-radius: var(--r-hero); margin-inline: clamp(8px, 1vw, 16px); }
.bf-stage .lead { color: var(--bf-night-muted); }
.bf-stage :focus-visible { outline-color: #fff; }

/* 4. Hero ------------------------------------------------------------------ */
.bf-hero { position: relative; padding-top: clamp(112px, 9.6vw, 142px); }
.bf-hero-in { position: relative; z-index: 2; display: grid; gap: clamp(22px, 2.6vw, 36px); }

/* Porcentajes 3D flotando: detrás del texto; los «front» pasan delante de la repisa */
.bf-floats { position: absolute; inset: 0; pointer-events: none; }
.bf-float {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s);
  transform: translate(-50%, -50%) translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px + var(--sy, 0) * var(--d) * 0.005px), 0);
  z-index: 1;
  will-change: transform;
}
.bf-float--front { z-index: 4; }
.bf-float img { width: 100%; height: auto; animation: bf-bob var(--dur, 8s) ease-in-out infinite; animation-delay: var(--delay, 0s); transform: rotate(var(--r, 0deg)); }
@keyframes bf-bob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  50% { transform: translate3d(0, -16px, 0) rotate(calc(var(--r, 0deg) + 6deg)); }
}

/* Línea superior: etiqueta morado → rosa con el contador en una pastilla blanca */
.bf-eyebrow { display: flex; }
.bf-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: linear-gradient(95deg, #5b21f5 0%, #9d2cf6 45%, #ff3d9a 100%);
  color: #ffffff;
  font-size: 14.5px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em;
}
.bf-badge b { font-weight: 700; }
.bf-badge-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.45); }
.bf-countdown {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 13px; margin-left: 4px;
  border-radius: 999px; background: #ffffff; color: #2a0f5c;
  font-size: 13.5px; font-weight: 560;
}
.bf-countdown[hidden] { display: none; }
.bf-countdown b { font-weight: 700; font-variant-numeric: tabular-nums; }
/* Sin contador (sin fechas) la etiqueta no necesita el hueco de la derecha */
.bf-badge:not(:has(.bf-countdown:not([hidden]))) { padding-right: 18px; }

.bf-title {
  max-width: none;
  font-size: clamp(38px, 4.7vw, 80px);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.045em;
  color: var(--bf-night-ink-2);
  text-wrap: balance;
}
.bf-dim { color: var(--bf-night-dim); }
.bf-lit { color: var(--bf-night-ink); }

.bf-hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(28px, 4.5vw, 80px);
  margin-top: clamp(6px, 1.4vw, 20px);
}

/* Texto calado: el video solo se ve dentro de las letras (multiply sobre negro) */
.bf-knock { position: relative; display: inline-block; isolation: isolate; overflow: hidden; vertical-align: bottom; }
.bf-knock-media { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; }
.bf-knock-mask {
  position: relative; display: block;
  background: var(--bf-night);
  color: #ffffff;
  mix-blend-mode: multiply;
  font-weight: 700;
  white-space: nowrap;
}
/* «60%» del hero: el cielo en movimiento recortado al texto (background-clip), así funciona
   sobre el degradado. Debajo va el póster fijo mientras carga la animación (WebP de sky-07). */
.bf-sixty {
  display: inline-block;
  font-size: clamp(150px, 29vw, 470px);
  font-weight: 700;
  line-height: 0.74;
  letter-spacing: -0.07em;
  white-space: nowrap;
  padding: 0.055em 0.06em 0.03em 0;
  background-color: #8fbcff;
  background-image: url("../assets/black-friday/sky-07-anim.webp"), url("../assets/presenter-b/video/sky-07-poster.webp");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.bf-offer { display: grid; gap: 20px; max-width: 36ch; padding-bottom: 0.4em; }
.bf-offer-k {
  font-size: clamp(28px, 2.7vw, 44px);
  font-weight: 650; line-height: 1.02; letter-spacing: -0.035em;
  color: var(--bf-night-ink);
  text-wrap: balance;
}
.bf-offer-t { font-size: 17px; line-height: 1.5; color: var(--bf-night-muted); text-wrap: pretty; }
.bf-offer-t strong { color: var(--bf-night-ink); font-weight: 560; }
.bf-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bf-offer-note {
  padding-left: 14px; border-left: 1px solid var(--bf-night-line-2);
  font-size: 15px; line-height: 1.45; color: var(--bf-night-muted);
}

/* 5. Repisa de apps: pantallas encendidas que salen del borde inferior ------ */
.bf-shelf {
  --bleed: clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: 0.78fr 1.12fr 1.62fr 1.12fr 0.78fr;
  align-items: end;
  gap: clamp(10px, 1.1vw, 18px);
  width: min(100% - 2 * var(--gutter), var(--w-wide));
  margin: clamp(32px, 3.4vw, 56px) auto calc(-1 * var(--bleed));
  transform: translate3d(0, var(--shelf-y, 0px), 0);
  will-change: transform;
  position: relative; z-index: 3;
}
.bf-shelf-item { display: grid; gap: 12px; min-width: 0; }
.bf-shelf-l {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  font-size: 13px; font-weight: 560; color: var(--bf-night-ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-shelf-l img { width: 18px; height: 18px; flex: none; }
.bf-screen {
  aspect-ratio: 16 / 10.4;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid var(--bf-night-line-2);
  border-bottom: 0;
  background: var(--bf-night-2);
}
.bf-shelf-item--s .bf-screen { aspect-ratio: 16 / 12; }
.bf-screen img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* 6. Manifiesto ------------------------------------------------------------ */
.bf-manifesto { padding: var(--space-xl) 0 var(--space-md); }
.bf-manifesto .bf-label { display: flex; max-width: 750px; margin: 0 auto 30px; }
.bf-lightup {
  max-width: 750px;
  margin-inline: auto;
  font-size: clamp(30px, 3.7vw, 56px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: pretty;
}
.js .bf-lightup .w { color: var(--bf-word-off); transition: color 0.45s var(--ease-ui); }
.js .bf-lightup .w.is-on { color: var(--ink); }

.bf-index {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px);
  margin-top: var(--space-md);
}
.bf-index-item {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 12px;
  align-content: start;
  padding-top: 20px; border-top: 1px solid var(--line-2);
  color: var(--ink);
}
.bf-index-arrow { justify-self: end; width: 18px; height: 18px; color: var(--muted-2); transition: color var(--t-ui), transform var(--t-ui) var(--ease-ui); }
.bf-index-item:hover .bf-index-arrow { color: var(--ink); transform: translateY(2px); }
.bf-index-t { grid-column: 1 / -1; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; transition: color var(--t-ui); }
.bf-index-item:hover .bf-index-t { color: var(--accent-fg); }

/* 7. Capítulos (texto fijo a la izquierda, material a la derecha) ---------- */
.bf-ch { padding-block: var(--space-lg); }
.bf-ch:first-child { padding-top: var(--space-md); }
.bf-ch + .bf-ch { border-top: 1px solid var(--line); }
.bf-ch-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5.5vw, 104px);
  align-items: start;
}
.bf-ch-copy { align-self: stretch; }
.bf-ch-sticky { position: sticky; top: 112px; display: grid; gap: 22px; }
.bf-ch-n {
  display: flex; align-items: center; gap: 14px;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0; text-transform: uppercase; color: var(--muted);
}
/* Iconos de capítulo (Zappicon, pintados con máscara): un color por capítulo */
.bf-ico {
  position: relative; display: inline-block; flex: none;
  width: 38px; height: 38px;
  color: var(--ico-fg);
}
.bf-index-item .bf-ico { width: 100px; height: 100px; border-radius: 0; }
.bf-index-item .bf-ico::before { inset: 24px; }
.bf-ico::before {
  content: ""; position: absolute; inset: 9px;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
          mask: var(--i) center / contain no-repeat;
}
.bf-ico--1 { --ico-fg: #000000; }
.bf-ico--2 { --ico-fg: #000000; }
.bf-ico--3 { --ico-fg: #000000; }
:root[data-theme="dark"] .bf-ico--1 { --ico-fg: #ffffff; }
:root[data-theme="dark"] .bf-ico--2 { --ico-fg: #ffffff; }
:root[data-theme="dark"] .bf-ico--3 { --ico-fg: #ffffff; }
.bf-ch .h2 { max-width: 16ch; }

.bf-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.bf-facts li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bf-facts b { font-size: clamp(24px, 2.2vw, 32px); font-weight: 650; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.bf-facts span { font-size: 14px; line-height: 1.35; color: var(--muted); }

.bf-ch-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.bf-ch-media { display: grid; gap: clamp(14px, 1.5vw, 22px); min-width: 0; }

/* Ventanas planas con barra (sin sombra) */
.bf-window { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
.bf-window-bar {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.bf-window-bar i { width: 9px; height: 9px; border-radius: 99px; background: var(--line-2); }
.bf-window-bar span { margin-left: 8px; font: 500 11.5px/1 var(--mono); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-window > img { width: 100%; }

/* 01 · Muro de video */
.bf-vwall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bf-vt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; }
.bf-vt--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.bf-vt video, .bf-vt img { width: 100%; height: 100%; object-fit: cover; }
.bf-vt figcaption, .bf-output figcaption, .bf-broadcast figcaption {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 7px;
  max-width: calc(100% - 20px); padding: 5px 8px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  font: 500 11px/1.2 var(--mono); letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bf-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bf-plate img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #111; }
.bf-plate figcaption { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.35; color: var(--muted); }

/* 02 · Teléfono + posts + historias */
.bf-designs {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.bf-phone { padding: 9px; border-radius: 34px; background: #0b0b0b; border: 1px solid var(--line-2); }
.bf-phone-screen { aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #111; }
.bf-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.bf-designs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bf-designs-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--surface); }
.bf-stories { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bf-stories img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--surface); }

/* 03 · Presenter (ventana + salida) y Titler en vivo */
.bf-stagewin { position: relative; padding-bottom: 14%; }
.bf-stagewin .bf-window { width: 90%; }
.bf-output {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border-radius: 16px; overflow: hidden;
  border: 6px solid var(--bg); background: var(--bg);
}
.bf-output img { width: 100%; border-radius: 10px; }
.bf-output figcaption { left: 12px; bottom: 12px; }
.bf-live-dot { width: 7px; height: 7px; border-radius: 99px; background: #ff3b3b; flex: none; }
.bf-broadcast { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111; }
.bf-broadcast video { width: 100%; height: 100%; object-fit: cover; }
.bf-broadcast figcaption { left: 12px; top: 12px; bottom: auto; }
.bf-titles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bf-titles figure { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.bf-titles video { width: 100%; height: 100%; object-fit: cover; }

/* 7b. Todas las apps, un solo plan (fijada con GSAP) ------------------------- */
.bf-apps { position: relative; overflow: clip; border-top: 1px solid var(--line); }
.bf-apps-stage {
  position: relative;
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  gap: clamp(20px, 3.2vh, 36px);
  padding: 96px var(--gutter) 72px;
  text-align: center;
}
.bf-apps-h {
  display: grid; gap: 0.02em;
  font-size: clamp(44px, 8.2vw, 132px);
  font-weight: 650; line-height: 0.94; letter-spacing: -0.055em;
}
.bf-apps-h2 {
  padding-bottom: 0.08em;   /* aire para la «p» con el recorte del degradado */
  background: linear-gradient(95deg, #5b21f5 0%, #9d2cf6 45%, #ff3d9a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* El marco que las contiene a todas */
.bf-apps-dock { position: relative; padding: clamp(14px, 1.6vw, 24px); margin-top: clamp(4px, 1vh, 12px); }
.bf-apps-dock::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: clamp(26px, 3.2vw, 44px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: var(--dock, 1);
  transform: scale(calc(0.9 + 0.1 * var(--dock, 1)));
}
.bf-apps-row { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: clamp(8px, 1.4vw, 22px); }
.bf-app { display: grid; justify-items: center; gap: 16px; width: clamp(58px, 12vw, 178px); }
.bf-app-tile {
  position: relative; display: grid; place-items: center;
  width: clamp(58px, 9.6vw, 140px); aspect-ratio: 1;
  border-radius: 27%;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-2);
  will-change: transform;
}
.bf-app-tile img { width: 46%; height: 46%; object-fit: contain; }
:root[data-theme="dark"] .bf-app-tile { background: #ffffff; box-shadow: none; }
.bf-app-check {
  position: absolute; right: -5px; top: -5px;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 99px;
  background: var(--ink); color: var(--on-ink);
  box-shadow: 0 0 0 3px var(--surface);
}
.bf-app-check svg { width: 13px; height: 13px; }
.bf-app-meta { display: grid; gap: 3px; }
.bf-app-meta b { font-size: 15.5px; font-weight: 620; letter-spacing: -0.01em; line-height: 1.15; color: var(--ink); }
.bf-app-meta span { font-size: 13.5px; line-height: 1.2; color: var(--muted); }

.bf-apps-foot { display: grid; justify-items: center; gap: 14px; max-width: 560px; }
.bf-apps-count { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; font-size: 15px; color: var(--ink-2); }
.bf-apps-count b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bf-apps-cap { font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.bf-apps-foot .btn { margin-top: 6px; }

@media (max-width: 760px) {
  .bf-apps-stage { padding: 88px var(--gutter) 96px; gap: 20px; }
  .bf-apps-h { font-size: clamp(44px, 13.5vw, 64px); }
  .bf-app { gap: 0; width: auto; }
  .bf-app-meta { display: none; }
  .bf-app-check { width: 20px; height: 20px; right: -4px; top: -4px; box-shadow: 0 0 0 2px var(--surface); }
  .bf-app-check svg { width: 10px; height: 10px; }
  .bf-apps-cap { font-size: 15px; }
}
@media (max-height: 720px) and (min-width: 761px) {
  .bf-apps-h { font-size: clamp(44px, 6.4vw, 96px); }
  .bf-apps-stage { padding-top: 84px; padding-bottom: 40px; gap: 18px; }
}

/* 8. Muro: se encienden las luces ------------------------------------------- */
.bf-wall { padding-top: var(--space-lg); }
.bf-wall-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 24px 64px; }
.bf-wall-head .lead { max-width: 40ch; }
.bf-wall-grid {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  padding-inline: clamp(10px, 1.2vw, 18px);
  columns: 6 200px;
  column-gap: 12px;
  height: clamp(640px, 62vw, 1040px);
  overflow: hidden;
}
.bf-wall-grid img {
  display: block; width: 100%; margin-bottom: 12px; border-radius: 12px;
  background: var(--bf-night-2);
  break-inside: avoid;
}
.js .bf-wall-grid img { filter: brightness(0.14) saturate(0.3); transition: filter 1.3s var(--ease-quint); }
.js .bf-wall-grid img.is-lit { filter: none; }
/* El borde inferior vuelve a la oscuridad */
.bf-wall-grid::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, var(--bf-night) 8%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* 9. Planes ----------------------------------------------------------------- */
.bf-plans-head { display: grid; justify-items: start; gap: 18px; max-width: 760px; }
.bf-plans-head .h2 { max-width: 18ch; }
.bf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.bf-card {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface);
}
.bf-card--dark {
  --ink: #ffffff; --ink-2: rgba(255, 255, 255, 0.86); --muted: rgba(255, 255, 255, 0.58); --muted-2: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.1); --fill: rgba(255, 255, 255, 0.08); --on-ink: #050505; --accent-fg: #c4b5fd;
  background: var(--bf-night); color: var(--ink);
}
:root[data-theme="dark"] .bf-card--dark { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.bf-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bf-card-name { font-size: clamp(22px, 1.8vw, 26px); font-weight: 620; letter-spacing: -0.025em; }
.bf-card-sub { margin-top: -10px; font-size: 15px; line-height: 1.45; color: var(--muted); max-width: 40ch; }

.bf-price { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.bf-was { font-size: 15px; color: var(--muted); }
.bf-was s { text-decoration-thickness: 1.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bf-now {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  font-size: clamp(58px, 6.2vw, 92px); font-weight: 650; line-height: 0.95; letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.bf-per { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
.bf-eq { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.bf-eq b { color: var(--ink); font-weight: 600; }
.bf-off {
  align-self: center;
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: linear-gradient(95deg, #5b21f5 0%, #9d2cf6 45%, #ff3d9a 100%); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.bf-renew { font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.bf-buy { width: 100%; }
/* Antes del inicio: botón en espera con la fecha */
.bf-buy[aria-disabled="true"] { background: var(--fill); color: var(--muted); cursor: default; pointer-events: none; }
.bf-buy[aria-disabled="true"] .arrow { display: none; }

/* Fechas de la oferta bajo el encabezado de planes */
.bf-when { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }

.bf-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-prods li {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 7px;
  border-radius: 999px; background: var(--fill);
  font-size: 13px; font-weight: 560; color: var(--ink-2); white-space: nowrap;
}
.bf-prods img { width: 18px; height: 18px; }
.bf-card--dark .bf-prods li { background: rgba(255, 255, 255, 0.07); }

.bf-feat-h { font-size: 14px; font-weight: 600; color: var(--ink); }
.bf-feats { margin-top: -10px; }
.bf-feats li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.bf-feats li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 17px; height: 17px;
  background: var(--accent-fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Valor: menos que un Básico */
.bf-value {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  margin-top: 16px; border-radius: var(--r-xl); overflow: hidden;
  background: #e8e8e8;                      /* mismo gris que la foto del mockup */
  color: #141414;
}
.bf-value-copy { display: grid; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.bf-value-big { font-size: clamp(24px, 2.3vw, 34px); font-weight: 620; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.bf-value .bf-muted { color: #8a8a8f; }
.bf-value .muted { color: #5f5f66; font-size: 16px; }
.bf-value-media img { width: 100%; }
:root[data-theme="dark"] .bf-value { background: var(--surface); color: var(--ink); }
:root[data-theme="dark"] .bf-value .bf-muted { color: var(--muted-2); }
:root[data-theme="dark"] .bf-value .muted { color: var(--muted); }
:root[data-theme="dark"] .bf-value-media { padding: 14px; }
:root[data-theme="dark"] .bf-value-media img { border-radius: 18px; }

.bf-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(40px, 5vw, 64px); counter-reset: none; }
.bf-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line-2); }
.bf-step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font: 600 13px/1 var(--mono); }
.bf-steps p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bf-steps strong { color: var(--ink); font-weight: 600; }
.bf-code { font: 500 0.95em/1 var(--mono); letter-spacing: 0.06em; color: var(--ink); }
.bf-fine { margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--muted-2); }

/* 9b. Recordatorio y cupos -------------------------------------------------- */
/* Hueco del botón de compra: antes del 27, «Recordarme» aparece encima al pasar el mouse */
.bf-buywrap { position: relative; display: grid; }
.bf-buywrap > * { grid-area: 1 / 1; }
.bf-remind { display: none; gap: 10px; width: 100%; }
.bf-bell {
  display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("../assets/black-friday/icons/bell.svg") center / contain no-repeat;
          mask: url("../assets/black-friday/icons/bell.svg") center / contain no-repeat;
}
[data-bf-state="antes"] .bf-remind {
  display: inline-flex;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.25s var(--ease-quint), transform 0.35s var(--ease-quint);
}
[data-bf-state="antes"] .bf-buy { transition: opacity 0.2s var(--ease-ui); }
@media (hover: hover) {
  [data-bf-state="antes"] .bf-buywrap:hover .bf-remind,
  [data-bf-state="antes"] .bf-buywrap:focus-within .bf-remind { opacity: 1; transform: none; pointer-events: auto; }
  [data-bf-state="antes"] .bf-buywrap:hover .bf-buy,
  [data-bf-state="antes"] .bf-buywrap:focus-within .bf-buy { opacity: 0; }
}
/* En táctil no hay hover: los dos a la vista, uno debajo del otro */
@media (hover: none) {
  [data-bf-state="antes"] .bf-buywrap { gap: 8px; }
  [data-bf-state="antes"] .bf-buywrap > * { grid-area: auto; }
  [data-bf-state="antes"] .bf-remind { opacity: 1; transform: none; pointer-events: auto; }
}
.bf-remind.is-saved .bf-bell { display: none; }

/* Cupos */
.bf-seats { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-top: 6px; }
.bf-seats[hidden] { display: none; }
.bf-seats-t { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.bf-seats-t b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.bf-seats-bar { position: relative; height: 8px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bf-seats-bar i {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--left, 1) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, #5b21f5 0%, #9d2cf6 50%, #ff3d9a 100%);
  transition: width 0.8s var(--ease-quint);
}
.bf-seats-note { font-size: 13px; line-height: 1.45; color: var(--muted-2); }
.bf-seats--mini { max-width: 360px; gap: 8px; }
.bf-seats--mini .bf-seats-t { font-size: 14px; color: var(--bf-night-ink-2); }
.bf-seats--mini .bf-seats-t b { color: #fff; }
.bf-seats--mini .bf-seats-bar { height: 6px; background: rgba(255, 255, 255, 0.12); }
[data-bf-soldout] .bf-seats-bar i { background: var(--muted-2); }

/* Popup */
.bf-modal {
  width: min(100% - 32px, 460px); max-height: calc(100svh - 32px);
  padding: 0; border: 0; border-radius: 28px;
  background: var(--panel); color: var(--ink);
  overflow: auto;
}
.bf-modal::backdrop { background: rgba(8, 6, 16, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:root[data-theme="dark"] .bf-modal { background: var(--bg-soft); box-shadow: inset 0 0 0 1px var(--line); }
.bf-modal[open] { animation: bf-modal-in 0.35s var(--ease-quint); }
@keyframes bf-modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.bf-modal-card { position: relative; padding: clamp(26px, 5vw, 36px); }
.bf-modal-x {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 99px; color: var(--muted); transition: background-color var(--t-ui), color var(--t-ui);
}
.bf-modal-x:hover { background: var(--fill); color: var(--ink); }
.bf-modal-x svg { width: 18px; height: 18px; }
.bf-modal-view { display: grid; gap: 16px; }
.bf-modal-view[hidden] { display: none; }
.bf-modal-ico {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, #5b21f5 0%, #9d2cf6 50%, #ff3d9a 100%); color: #fff;
}
.bf-modal-ico .bf-bell { width: 22px; height: 22px; }
.bf-modal-ico--rw { background: #ffffff; box-shadow: inset 0 0 0 1px var(--line-2); }
.bf-modal-ico--rw img { width: 20px; height: 24px; }
.bf-modal-ico--ok svg { width: 22px; height: 22px; }
.bf-modal-h { font-size: clamp(24px, 3vw, 28px); font-weight: 650; line-height: 1.12; letter-spacing: -0.03em; }
.bf-modal-p { font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.bf-modal-p b { color: var(--ink); font-weight: 600; word-break: break-all; }
.bf-field { display: grid; gap: 7px; }
.bf-field label { font-size: 14px; font-weight: 560; color: var(--ink-2); }
.bf-field input {
  height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color var(--t-ui);
}
.bf-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bf-field input[aria-invalid="true"] { border-color: #e5484d; }
.bf-field-err, .bf-modal-err { font-size: 13.5px; line-height: 1.4; color: #d93036; }
:root[data-theme="dark"] .bf-field-err, :root[data-theme="dark"] .bf-modal-err { color: #ff8a8d; }
/* Casilla opcional: correo para futuras campañas (desmarcada por defecto) */
.bf-check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; cursor: pointer; }
.bf-check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.bf-check-box {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: var(--bg); color: transparent;
  transition: background-color var(--t-ui), border-color var(--t-ui), color var(--t-ui);
}
.bf-check-box svg { width: 14px; height: 14px; }
.bf-check input:checked + .bf-check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.bf-check input:focus-visible + .bf-check-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.bf-check-t { font-size: 14px; line-height: 1.45; color: var(--muted); }
.bf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bf-modal-submit { width: 100%; margin-top: 4px; }
.bf-modal-submit[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.bf-modal-fine { font-size: 12.5px; line-height: 1.45; color: var(--muted-2); text-align: center; }

/* 10. FAQ ------------------------------------------------------------------- */
.bf-faq { padding-bottom: var(--space-lg); }
.bf-faq-grid { width: min(100% - 2 * var(--gutter), var(--w-base)); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }

/* 11. Cierre ---------------------------------------------------------------- */
.bf-end { padding: var(--space-xl) 0 var(--space-lg); }
.bf-end-in { display: grid; gap: clamp(36px, 4vw, 56px); }
.bf-end-t { display: grid; justify-items: start; font-weight: 650; letter-spacing: -0.05em; }
.bf-end-a { font-size: clamp(20px, 2.1vw, 30px); letter-spacing: -0.02em; color: var(--bf-night-muted); margin-bottom: 0.9em; }
.bf-end-b { font-size: clamp(44px, 7.4vw, 124px); line-height: 0.95; color: var(--bf-night-ink); }
.bf-knock--word { margin-top: 0.02em; }
.bf-knock--word .bf-knock-mask {
  font-size: clamp(64px, 19vw, 252px);
  line-height: 0.86;
  letter-spacing: -0.065em;
  padding: 0.02em 0.05em 0.12em 0.01em;
}
.bf-end-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.bf-end-note { flex-basis: 100%; margin-top: 4px; font-size: 14px; color: var(--bf-night-muted); }

/* 12. Barra fija ------------------------------------------------------------ */
.bf-dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 55;
  display: flex; align-items: center; gap: 18px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: var(--bf-night); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, calc(100% + 30px));
  transition: transform 0.6s var(--ease-quint);
}
.bf-dock.is-on { transform: translate(-50%, 0); }
.bf-dock-t { display: flex; align-items: center; gap: 9px; font-size: 14px; white-space: nowrap; color: var(--bf-night-ink-2); }
.bf-dock-t b { color: #fff; font-weight: 650; }
.bf-dock-code { font: 500 13px/1 var(--mono); letter-spacing: 0.1em; color: #fff; padding: 5px 8px; border-radius: 6px; border: 1px dashed var(--bf-night-line-2); }
.bf-dock-left { font: 500 12.5px/1 var(--mono); letter-spacing: 0.02em; color: var(--bf-night-ink-2); font-variant-numeric: tabular-nums; }
.bf-dock-left[hidden] { display: none; }

/* 13. Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .bf-shelf { grid-template-columns: 1.1fr 1.62fr 1.1fr; }
  .bf-shelf-item--s { display: none; }
}

@media (max-width: 1024px) {
  .bf-ch-grid { grid-template-columns: minmax(0, 1fr); }
  .bf-ch-sticky { position: static; }
  .bf-ch .h2 { max-width: 20ch; }
  .bf-wall-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .bf-br { display: none; }
  .bf-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bf-sixty { font-size: min(46vw, 330px); }
  .bf-offer { max-width: 40ch; }
  .bf-cards { grid-template-columns: minmax(0, 1fr); }
  .bf-value { grid-template-columns: minmax(0, 1fr); }
  .bf-steps { grid-template-columns: minmax(0, 1fr); }
  .bf-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .bf-index { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bf-index-item { grid-template-columns: auto 1fr auto; padding: 18px 0; }
  .bf-index-arrow { order: 3; }
  .bf-index-item .bf-ico { width: 100px; height: 100px; }
  .bf-index-item .bf-ico::before { inset: 24px; }
  .bf-index-t { grid-column: auto; order: 2; }
}

@media (max-width: 760px) {
  /* Porcentajes: solo tres, en los huecos del hero móvil */
  .bf-float--wide { display: none; }
  .bf-float:nth-child(1) { --x: 93% !important; --y: 24.5% !important; --s: 80px !important; z-index: 1; }
  .bf-float:nth-child(2) { display: none; }
  .bf-float:nth-child(3) { --x: 94% !important; --y: 84.5% !important; --s: 80px !important; }
  .bf-float:nth-child(4) { --x: 90% !important; --y: 48.5% !important; --s: 60px !important; }
  .bf-badge { border-radius: 18px; padding: 8px 8px 8px 14px; font-size: 13.5px; gap: 6px 10px; }
  .bf-badge > .bf-badge-sep:nth-child(4) { display: none; }

  /* La repisa pasa a fila deslizable con pantallas completas */
  .bf-shelf {
    display: flex; gap: 12px;
    width: 100%; margin: 48px 0 0; padding: 0 var(--gutter) 28px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; transform: none;
  }
  .bf-shelf::-webkit-scrollbar { display: none; }
  .bf-shelf-item, .bf-shelf-item--s { display: grid; flex: 0 0 78%; scroll-snap-align: start; }
  .bf-screen, .bf-shelf-item--s .bf-screen { aspect-ratio: 16 / 10.4; border-radius: 12px; border-bottom: 1px solid var(--bf-night-line-2); }

  .bf-vwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-vt--wide { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .bf-vt:last-child { display: none; }
  .bf-pair { grid-template-columns: minmax(0, 1fr); }
  .bf-designs { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 10px; }
  .bf-designs-grid { gap: 10px; }
  .bf-stories { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-phone { padding: 6px; border-radius: 24px; }
  .bf-phone-screen { border-radius: 18px; }
  .bf-titles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bf-stagewin { padding-bottom: 22%; }
  .bf-stagewin .bf-window { width: 100%; }
  .bf-output { width: 58%; border-width: 4px; }
  .bf-wall-grid { columns: 2; column-gap: 8px; height: 760px; }
  .bf-wall-grid img { margin-bottom: 8px; border-radius: 10px; }
  .bf-facts { column-gap: 16px; }
  .bf-dock { left: 10px; right: 10px; bottom: 10px; gap: 10px; padding-left: 14px; transform: translateY(calc(100% + 24px)); justify-content: space-between; }
  .bf-dock.is-on { transform: none; }
  .bf-dock-sub { display: none; }
  .bf-dock-t { gap: 8px; font-size: 13px; }
  .bf-dock:has(.bf-dock-left:not([hidden])) .bf-dock-code { display: none; }
  .bf-ticket { height: 48px; }
  .bf-ticket-act { height: 36px; }
  .bf-cta-row .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .bf-title { font-size: 36px; }
  .bf-designs-grid img:nth-child(n+3) { display: none; }
  .bf-designs-grid { grid-template-columns: minmax(0, 1fr); }
  .bf-stories img:nth-child(n+3) { display: none; }
}

/* 14. Movimiento reducido --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bf-shelf { transform: none !important; }
  .bf-float img { animation: none; }
  .bf-float { transform: translate(-50%, -50%); }
  .js .bf-lightup .w { color: var(--ink); }
  .js .bf-wall-grid img { filter: none; }
  .bf-sixty { background-image: url("../assets/presenter-b/video/sky-07-poster.webp"); }
  .bf-dock { transition: none; }
}
