/* ==========================================================================
   Landings de Black Friday 2026 · v5 (03/11/2026) — page-black-friday.php
   Estructura de AG1 y Seed: bloques partidos a sangre (texto | foto), fotos
   con su rótulo y la oferta con el desglose y el total. Fondos claros (#efece6,
   #f9f9f9, blanco) y las perlas doradas de la home. El acento (rojo en Sports,
   naranja en Active) solo en precio, botón y detalles: ningún bloque con fondo
   rojo o negro. Cada bloque cabe en una pantalla (alturas con vh y clamp).
   Movimiento: CSS para lo que se toca; GSAP para la entrada y el scroll.
   ========================================================================== */

.pr-page--bf {
	--bf-ink: #1e1e1e;
	--bf-suave: rgba(30, 30, 30, 0.72);
	--bf-gris: #f9f9f9;
	--bf-calido: #efece6;
	/* Margen exterior alineado con el lienzo de 1204, para los bloques a sangre. */
	--bf-margen: max(24px, calc((100vw - var(--bf-canvas)) / 2));
	--bf-tarjeta: #ececec;
	--bf-linea: #e3e3e3;
	--bf-acc: #b71f2f;
	--bf-acc-ink: #fff;
	--bf-acc-text: #b71f2f;
	--bf-acc-soft: rgba(183, 31, 47, 0.09);
	--bf-barra: rgba(183, 31, 47, 0.5);
	--bf-ease: cubic-bezier(0.23, 1, 0.32, 1);
	--bf-canvas: 1204px;
	--bf-radio: 30px;
	/* Alto útil de pantalla bajo la cabecera de 76 px. */
	--bf-alto: calc(100vh - 76px);
	--bf-alto: calc(100svh - 76px);
	--bf-pad: clamp(56px, 10vh, 128px);
	background: #fff;
}
.pr-page--bf.bf--active {
	--bf-acc: #f99b25;
	--bf-acc-ink: #000;
	--bf-acc-text: #9a4f00;
	--bf-acc-soft: rgba(249, 155, 37, 0.14);
	--bf-barra: rgba(249, 155, 37, 0.5);
}
/* v5.2 (12/11/2026): color liso del hero, tono de la tarjeta de expertos y
   color del titular de las fotos, por línea. */
.pr-page--bf {
	--bf-hero-rgb: 14, 14, 15;
	--bf-exp-bg: #f9e2e4;
	--bf-mom-h2: var(--bf-acc);
}
.pr-page--bf.bf--active {
	--bf-hero-rgb: 19, 51, 59;
	--bf-exp-bg: #fdebd8;
	--bf-mom-h2: var(--bf-ink);
}
/* La home ES fija el lienzo a 1440 (`.pr-page--home-es { min-width: 1440px }`) y
   la landing hereda esa clase para la cabecera y el pie. */
body.pr-page--bf { min-width: 0; }

.bf { overflow-x: clip; color: var(--bf-ink); }
.bf * { box-sizing: border-box; }
.bf ::selection { background: var(--bf-acc); color: var(--bf-acc-ink); }
/* Reseteo con el peso de UNA clase: gana a GeneratePress (`ol, ul { margin… }`)
   y pierde contra cualquier regla de componente de abajo. */
.bf :where(img, video) { display: block; max-width: 100%; height: auto; }
.bf :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
.bf :where(ul, ol) { list-style: none; }
.bf-wrap { width: 100%; max-width: calc(var(--bf-canvas) + 48px); margin: 0 auto; padding: 0 24px; }

/* Las mismas reglas que la home y las fichas: H1 en Sansation 400; H2 y todo lo
   demás en Funnel Sans (500 en los titulares). */
.bf-h2 {
	font-family: var(--pr-font-body);
	font-weight: 500;
	font-size: clamp(30px, 2.6vw, 44px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: var(--bf-ink);
}

/* --- Botones ---------------------------------------------------------------- */
.bf-btn {
	--bf-mx: 0px;
	--bf-my: 0px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 60px;
	padding: 0 36px;
	border-radius: 999px;
	font-family: var(--pr-font-body);
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	touch-action: manipulation;
	/* Tiempos más lentos (Pablo, 12/11/2026: «el efecto es demasiado rápido»). */
	transition: transform 420ms var(--bf-ease), background-color 300ms ease, opacity 300ms ease;
}
.bf-btn { position: relative; overflow: hidden; isolation: isolate; transform: translate(var(--bf-mx, 0), var(--bf-my, 0)); }
.bf-btn:active { transform: translate(var(--bf-mx, 0), var(--bf-my, 0)) scale(0.97); }
/* Brillo que cruza el botón al pasar el ratón. */
.bf-btn::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	z-index: -1;
	width: 45%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
	transform: skewX(-18deg);
	transition: left 0s;
	pointer-events: none;
}
/* Onda que sale del punto donde se pulsa (black-friday.js pone --bf-ox/--bf-oy). */
.bf-onda { position: absolute; z-index: -1; left: var(--bf-ox, 50%); top: var(--bf-oy, 50%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); pointer-events: none; animation: bf-onda 1000ms var(--bf-ease) forwards; }
@keyframes bf-onda { to { transform: scale(40); opacity: 0; } }
.bf-btn:focus-visible, .bf-faq-q:focus-visible { outline: 2px solid var(--bf-ink); outline-offset: 3px; }
/* Con `.bf` delante: `.pr-page a { color: inherit }` pesa más que una clase sola. */
.bf .bf-btn--acento, .bf .bf-btn--acento:visited { background: var(--bf-acc); color: var(--bf-acc-ink); }
.bf-btn svg { transition: transform 380ms var(--bf-ease); }
@media (hover: hover) and (pointer: fine) {
	.bf-btn:hover::before { left: 120%; transition: left 1300ms cubic-bezier(0.45, 0, 0.25, 1); }
	.bf-btn:hover svg { transform: translateX(4px); }
}
.bf-btn.is-cargando { pointer-events: none; opacity: 0.85; }
.bf-btn.is-cargando svg { display: none; }
.bf-accion { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bf-codigo { font-family: var(--pr-font-body); font-size: 15px; line-height: 1.4; color: var(--bf-suave); }

/* --- Precio ------------------------------------------------------------------ */
@property --bf-tachado { syntax: '<number>'; inherits: false; initial-value: 1; }
/* Solo el tachado empieza a cero: el precio nuevo se ve siempre. */
@media (prefers-reduced-motion: no-preference) {
	.bf-js .bf-precio--hero [data-bf-antes] { --bf-tachado: 0; animation: bf-seguro 0s 2.5s forwards; }
}
@keyframes bf-seguro { to { --bf-tachado: 1; } }
.bf-precio { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 8px; font-family: var(--pr-font-body); }
.bf-precio-ahora { font-family: var(--pr-font-body); font-weight: 600; letter-spacing: -0.01em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--bf-ink); }
.bf-precio-antes { position: relative; font-weight: 400; line-height: 1; text-decoration: none; color: var(--bf-suave); font-variant-numeric: tabular-nums; }
/* El tachado es una línea propia para poder dibujarla al cargar. */
.bf-precio-antes::after {
	content: '';
	position: absolute;
	left: -2px;
	right: -2px;
	top: 52%;
	height: 2px;
	background: var(--bf-acc);
	transform-origin: left center;
	transform: scaleX(var(--bf-tachado, 1));
}
.bf-ahorro {
	align-self: center;
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--bf-acc);
	color: var(--bf-acc-ink);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.25;
	white-space: nowrap;
}

/* --- Cuenta atrás ------------------------------------------------------------- */
.bf-cuenta { display: flex; align-items: center; gap: 16px; font-family: var(--pr-font-body); }
.bf-cuenta-label { font-size: 14px; line-height: 1.3; color: var(--bf-suave); max-width: 96px; }
.bf-cuenta-cajas { display: flex; gap: 10px; }
.bf-cuenta-caja {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: clamp(56px, 7vh, 68px);
	height: clamp(56px, 7vh, 68px);
	border-radius: 18px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--bf-linea);
	overflow: hidden;
}
.bf-cuenta-num { display: inline-block; font-family: var(--pr-font-body); font-weight: 600; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.bf-cuenta-num.is-rueda { animation: bf-rueda 260ms var(--bf-ease); }
@keyframes bf-rueda { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.bf-cuenta-ud { font-size: 12px; line-height: 1; color: var(--bf-suave); }

/* --- Perlas doradas (las de la home) ------------------------------------------ */
.bf-perlas { position: absolute; inset: 0; pointer-events: none; }
.bf-perla { position: absolute; display: block; }
.bf-perla img { width: 100%; height: auto !important; }
@media (prefers-reduced-motion: no-preference) {
	.bf-perla img { animation: bf-flota 7s ease-in-out infinite alternate; }
	.bf-perla--2 img { animation-duration: 8.5s; animation-delay: -2s; }
	.bf-perla--3 img { animation-duration: 6.2s; animation-delay: -4s; }
	.bf-perla--4 img { animation-duration: 9s; animation-delay: -1s; }
	.bf-perla--5 img { animation-duration: 7.6s; animation-delay: -3s; }
	.bf-perla--6 img { animation-duration: 8s; animation-delay: -5s; }
	.bf-perla--7 img { animation-duration: 6.8s; animation-delay: -2.5s; }
}
@keyframes bf-flota { from { transform: translateY(-8px) rotate(-4deg); } to { transform: translateY(10px) rotate(5deg); } }

/* --- Hero (v5.2): el texto a la izquierda sobre la foto, con el color translúcido -- */
/* La cabecera de estas páginas va fija y flota encima: el hero empieza en 0.
   12/11/2026, Pablo: «el azul es demasiado opaco», también en Sports y en móvil.
   La foto va detrás y el color encima, translúcido, en vez de un bloque liso. */
.bf-hero { position: relative; display: flex; align-items: center; min-height: clamp(640px, 100svh, 940px); background: rgb(var(--bf-hero-rgb)); color: #fff; overflow: clip; isolation: isolate; }
/* Active: la foto (horizontal) a todo el ancho. Sports: la foto es vertical y a
   todo el ancho el deportista quedaría bajo el texto; ocupa el 72 % de la
   derecha y el velo empieza casi opaco donde arranca. */
.bf-hero-foto { position: absolute; top: 0; right: 0; bottom: 0; z-index: -2; width: 72%; overflow: hidden; }
.bf--active .bf-hero-foto { width: 100%; }
.bf-hero-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center 28%; }
.bf--active .bf-hero-img { object-position: right center; }
.bf-hero-velo { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(var(--bf-hero-rgb), 1) 0%, rgba(var(--bf-hero-rgb), 0.95) 28%, rgba(var(--bf-hero-rgb), 0.72) 38%, rgba(var(--bf-hero-rgb), 0.4) 48%, rgba(var(--bf-hero-rgb), 0.12) 58%, rgba(var(--bf-hero-rgb), 0) 68%); }
.bf--active .bf-hero-velo { background: linear-gradient(90deg, rgba(var(--bf-hero-rgb), 0.82) 0%, rgba(var(--bf-hero-rgb), 0.72) 32%, rgba(var(--bf-hero-rgb), 0.4) 46%, rgba(var(--bf-hero-rgb), 0.1) 58%, rgba(var(--bf-hero-rgb), 0) 68%); }
/* Sello de la certificación sobre la foto, abajo a la derecha. */
.bf-hero-sello { position: absolute; z-index: 1; right: max(24px, calc(var(--bf-margen) - 7px)); bottom: clamp(48px, 15.7vh, 135px); width: 100px; height: auto !important; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35)); }
.bf-hero-sello--us { width: 120px; }
.bf-hero-in { padding-top: calc(76px + clamp(24px, 5vh, 56px)); padding-bottom: clamp(32px, 6vh, 72px); }
.bf-hero-texto { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(14px, 2vh, 22px); max-width: 640px; }
.bf-h1 {
	font-family: var(--pr-font-brand);
	font-weight: 400;
	font-size: clamp(40px, 4.2vw, 70px);
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-wrap: balance;
	color: #fff;
}
.bf-aviso-fin { font-size: 18px; color: rgba(255, 255, 255, 0.85); }
.bf-hero-p { max-width: 520px; font-family: var(--pr-font-body); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, 0.88); }
/* El precio ya va en el titular: aquí solo el de antes y lo que te ahorras. */
.bf-precio--hero .bf-precio-ahora { display: none; }
.bf-precio--hero .bf-precio-antes { font-size: 20px; color: rgba(255, 255, 255, 0.75); }
.bf-hero .bf-codigo { color: rgba(255, 255, 255, 0.8); }
.bf-accion--hero { margin-top: clamp(4px, 1vh, 12px); }
.bf-cuenta--hero { margin-top: clamp(4px, 1.4vh, 16px); }
.bf-oscuro .bf-cuenta-label { color: rgba(255, 255, 255, 0.8); }
.bf-oscuro .bf-cuenta-caja { background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bf-oscuro .bf-cuenta-num { color: #fff; }
.bf-oscuro .bf-cuenta-ud { color: rgba(255, 255, 255, 0.75); }

/* --- El resultado, en fotos (AG1 «Alimenta tu día…») --------------------------- */
.bf-momentos { background: #fff; padding: var(--bf-pad) 0; }
.bf-momentos-cab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 5vw, 80px); }
.bf-momentos-cab .bf-h2 { color: var(--bf-mom-h2); max-width: 560px; }
.bf-momentos-p { font-family: var(--pr-font-body); font-size: 18px; line-height: 1.5; color: var(--bf-suave); max-width: 520px; }
.bf-momentos-fila {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: clamp(28px, 5vh, 56px) auto 0;
	padding: 0 var(--bf-margen);
	max-width: none;
}
.bf-momento { position: relative; height: clamp(320px, 52vh, 520px); border-radius: 22px; overflow: hidden; background: var(--bf-tarjeta); }
.bf-momento img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 600ms var(--bf-ease); }
/* Velo neutro bajo la frase y la respuesta (v5.2: desde el 38 % del alto). */
.bf-momento::after { content: ''; position: absolute; inset: 38% 0 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.88) 100%); pointer-events: none; }
.bf-momento-txt { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: flex; flex-direction: column; gap: 10px; font-family: var(--pr-font-body); color: #fff; }
.bf-momento-t { font-weight: 600; font-size: clamp(19px, 1.55vw, 22px); line-height: 1.15; text-wrap: balance; }
.bf-momento-r { font-weight: 400; font-size: 16px; line-height: 1.15; opacity: 0.88; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) { .bf-momento:hover img { transform: scale(1.04); } }

/* --- Quién está detrás (v5.2): tarjeta con la foto y el texto sobre fondo suave --- */
.bf-expertos { background: #fff; padding: clamp(56px, 11vh, 96px) 0 40px; }
.bf-expertos-tarjeta { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 764fr); min-height: 380px; }
.bf-expertos-foto { position: relative; margin: 0; border-radius: 32px 0 0 32px; overflow: hidden; background: var(--bf-tarjeta); }
.bf-expertos-foto img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center; }
.bf-expertos-texto { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px clamp(32px, 5.3vw, 64px); border-radius: 0 32px 32px 0; background: var(--bf-exp-bg); }
.bf-expertos-texto .bf-h2 { max-width: 420px; font-size: clamp(26px, 2.25vw, 32px); }
.bf-expertos-p { font-family: var(--pr-font-body); font-size: 17px; line-height: 1.55; color: var(--bf-suave); max-width: 636px; }
.bf-sellos { display: flex; align-items: center; gap: 32px; }
.bf-sello--lipinova { width: auto; height: 38px !important; }
.bf-sello--sdn { width: auto; height: 44px !important; }

/* --- Oferta (v5.2): los botes en una tarjeta | elegir, total y botón ------------- */
.bf-oferta { display: grid; grid-template-columns: minmax(0, 561fr) minmax(0, 578fr); align-items: center; gap: clamp(32px, 4.4vw, 64px); max-width: calc(var(--bf-canvas) + 48px); margin: 0 auto; padding: clamp(40px, 7vh, 64px) 24px clamp(56px, 11vh, 96px); scroll-margin-top: 76px; }
.bf-oferta-media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 561.6 / 592.8; max-height: calc(var(--bf-alto) - 48px); border-radius: 32px; background: var(--bf-calido); overflow: hidden; isolation: isolate; }
.bf-oferta-botes { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: clamp(12px, 1.6vw, 22px); height: 58%; }
/* Al cambiar entre 1 y 2 botes no se mueve nada de sitio: el segundo se funde
   y el primero se desliza al centro, despacio (Pablo, 12/11/2026: «sutil»). */
.bf-oferta-bote { width: auto; height: 100% !important; object-fit: contain; transition: opacity 600ms ease, transform 700ms var(--bf-ease); }
.bf-oferta-media[data-bf-botes="1"] .bf-oferta-bote--a { transform: translateX(calc(50% + clamp(6px, 0.8vw, 11px))); }
.bf-oferta-media[data-bf-botes="1"] .bf-oferta-bote--b { opacity: 0; transform: translateX(-8%) scale(0.97); }
/* Lluvia de perlas: el mismo CSS que la home (.pr-esh-rain / -layer / .pr-esh-cap). */
.bf .pr-esh-rain { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bf .pr-esh-rain-layer { position: absolute; inset: 0; }
.bf .pr-esh-rain-layer[data-layer="0"] { opacity: 0.85; }
.bf .pr-esh-rain-layer[data-layer="1"] { opacity: 0.95; }
.bf .pr-esh-rain-layer[data-layer="2"] { opacity: 1; }
.bf .pr-esh-cap { position: absolute; top: 0; left: 0; display: block; background-repeat: no-repeat; background-size: contain; background-position: center; will-change: transform; }
/* En móvil la home las oculta (`.pr-page .pr-esh-cap`) porque allí van en
   coordenadas de 1440; aquí se colocan con el ancho real de la tarjeta y el
   Figma de móvil las lleva, así que se quedan. */
.pr-page--bf .bf .pr-esh-cap { display: block; }
.bf-oferta-panel { display: flex; flex-direction: column; justify-content: center; gap: 18px; background: #fff; }
.bf-oferta-panel .bf-h2 { max-width: 520px; }
.bf-oferta-sub { font-family: var(--pr-font-body); font-size: 16px; line-height: 1.45; color: var(--bf-suave); max-width: 520px; }
.bf-opciones { display: flex; flex-direction: column; gap: 16px; max-width: 520px; margin: 6px 0 0; padding: 0; border: 0; }
.bf-opcion {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
	padding: 14px 22px 14px 56px;
	border-radius: 20px;
	background: var(--bf-gris);
	box-shadow: inset 0 0 0 1px var(--bf-linea);
	font-family: var(--pr-font-body);
	cursor: pointer;
	transition: box-shadow 200ms ease, background-color 200ms ease;
}
.bf-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.bf-opcion::before { content: ''; position: absolute; left: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 2px #bdbdbd; background: #fff; transition: box-shadow 200ms ease; }
.bf-opcion:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 2px var(--bf-acc); }
.bf-opcion:has(input:checked)::before { box-shadow: inset 0 0 0 6px var(--bf-acc); }
.bf-opcion:has(input:focus-visible) { outline: 2px solid var(--bf-ink); outline-offset: 3px; }
.bf-opcion-txt { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.bf-opcion-txt strong { font-weight: 600; font-size: 18px; }
.bf-opcion-txt span { font-size: 14px; color: var(--bf-suave); }
.bf-opcion-precio { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-opcion-precio s { font-size: 15px; color: var(--bf-suave); }
.bf-opcion-precio span { font-family: var(--pr-font-body); font-weight: 600; font-size: 24px; }
/* «La mejor opción»: la pestaña que asoma por arriba de la fila de 2 botes. */
.bf-opcion-mejor {
	position: absolute;
	top: -12px;
	left: 56px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bf-acc);
	color: var(--bf-acc-ink);
	font-family: var(--pr-font-body);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}
.bf-desglose { display: flex; flex-direction: column; max-width: 520px; margin: 4px 0 0; font-family: var(--pr-font-body); }
.bf-desglose-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 var(--bf-linea); }
.bf-desglose dt, .bf-desglose dd { margin: 0; font-size: 16px; }
.bf-desglose-fila--total dt { font-weight: 600; font-size: 18px; }
.bf-desglose-fila--total dd { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.bf-desglose-fila--total s { font-size: 16px; color: var(--bf-suave); }
.bf-desglose-fila--total span { font-family: var(--pr-font-body); font-weight: 600; font-size: 32px; color: var(--bf-ink); }
.bf-btn--oferta { width: 100%; max-width: 520px; height: 64px; margin-top: 6px; }
.bf-tranquilidad { max-width: 520px; font-family: var(--pr-font-body); font-size: 15px; line-height: 1.45; color: var(--bf-suave); }

/* --- Calidad (AG1 «Probado para…») ---------------------------------------------- */
.bf-calidad { background: #fff; padding: var(--bf-pad) 0; }
.bf-calidad-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 6vw, 96px); }
.bf-calidad-p { margin-top: 20px; font-family: var(--pr-font-body); font-size: 18px; line-height: 1.5; color: var(--bf-suave); max-width: 520px; }
.bf-calidad-lista { display: flex; flex-direction: column; margin-top: clamp(20px, 3vh, 32px); max-width: 520px; }
.bf-calidad-lista li { padding: 16px 0; box-shadow: inset 0 -1px 0 var(--bf-linea); font-family: var(--pr-font-body); font-size: 16px; line-height: 1.45; color: var(--bf-suave); }
.bf-calidad-lista strong { display: block; margin-bottom: 2px; font-weight: 600; font-size: 18px; color: var(--bf-ink); }
.bf-calidad-foto { position: relative; margin: 0; height: min(600px, calc(var(--bf-alto) - 2 * var(--bf-pad) + 40px)); border-radius: var(--bf-radio); overflow: hidden; background: var(--bf-tarjeta); }
.bf-calidad-foto > img:first-child { width: 100%; height: 100% !important; object-fit: cover; object-position: center; }
.bf-calidad-sello { position: absolute; right: 28px; bottom: 28px; width: auto; height: 120px !important; }

/* --- Preguntas frecuentes --------------------------------------------------------------- */
.bf-faq { background: #fff; padding: var(--bf-pad) 0; }
.bf-faq-in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.bf-faq-lista { display: flex; flex-direction: column; gap: 10px; }
.bf-faq-item {
	border-radius: 24px;
	background: var(--bf-gris);
	overflow: hidden;
	transition: background-color 200ms ease, box-shadow 200ms ease;
	interpolate-size: allow-keywords;
}
.bf-faq-item[open] { background: #fff; box-shadow: inset 0 0 0 1px var(--bf-linea); }
.bf-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: clamp(54px, 7vh, 68px);
	padding: 12px 28px;
	font-family: var(--pr-font-body);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.25;
	cursor: pointer;
	list-style: none;
}
.bf-faq-q::-webkit-details-marker { display: none; }
.bf-faq-ico { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.bf-faq-ico::before, .bf-faq-ico::after {
	content: '';
	position: absolute;
	left: 1.5px;
	top: 7.2px;
	width: 13px;
	height: 1.8px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 200ms var(--bf-ease);
}
.bf-faq-ico::after { transform: rotate(90deg); }
.bf-faq-item[open] .bf-faq-ico::after { transform: rotate(0deg); }
.bf-faq-a { padding: 0 28px 24px; }
.bf-faq-a p { max-width: 64ch; font-family: var(--pr-font-body); font-size: 16px; line-height: 1.5; color: var(--bf-suave); }
.bf-faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 240ms var(--bf-ease), content-visibility 240ms allow-discrete; }
.bf-faq-item[open]::details-content { block-size: auto; }
.bf-fda { margin-top: 14px; font-family: var(--pr-font-body); font-size: 13px; line-height: 1.45; color: var(--bf-suave); max-width: 72ch; }

/* --- Cierre: el vídeo a sangre con velo oscuro, como en la home --------------------- */
.bf-cierre { position: relative; display: flex; align-items: center; min-height: min(640px, var(--bf-alto)); color: #fff; background: #1e1e1e; overflow: hidden; isolation: isolate; }
.bf-cierre-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.bf-cierre-velo { position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, 0.55); }
.bf-cierre-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(14px, 2vh, 20px); padding-top: var(--bf-pad); padding-bottom: var(--bf-pad); }
.bf-cierre .bf-h2 { color: #fff; font-size: clamp(32px, 3.2vw, 52px); }
.bf-cierre-sub { font-family: var(--pr-font-body); font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, 0.88); max-width: 560px; }
.bf-cierre .bf-accion { align-items: center; }
.bf-cierre .bf-codigo { color: rgba(255, 255, 255, 0.8); }

/* --- Barra de compra (la de las fichas) ------------------------------------------------- */
.bf-barra {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 95;
	display: flex;
	justify-content: center;
	padding: 0 24px calc(24px + env(safe-area-inset-bottom));
	pointer-events: none;
}
.bf-barra-in {
	display: flex;
	align-items: center;
	gap: 20px;
	width: 1158px;
	max-width: 100%;
	height: 95px;
	padding: 0 28px 0 40px;
	border-radius: 60px;
	/* El tinte al 50% de las fichas sobre una base clara, para que se lea igual
	   pase lo que pase por debajo. */
	background: linear-gradient(var(--bf-barra), var(--bf-barra)), rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
	font-family: var(--pr-font-body);
	color: #000;
	opacity: 0;
	transform: translateY(calc(100% + 24px));
	transition: transform 160ms cubic-bezier(0.55, 0, 0.68, 0.3), opacity 160ms ease;
	pointer-events: none;
}
.bf-barra.is-on .bf-barra-in { opacity: 1; transform: none; pointer-events: auto; transition: transform 240ms var(--bf-ease), opacity 240ms ease; }
.bf-barra-bote { width: 94px; height: 82px !important; object-fit: contain; flex: 0 0 auto; }
.bf-barra-txt { flex: 1 1 auto; margin: 0; font-size: 16px; line-height: 20px; letter-spacing: 0.02em; }
.bf-barra-txt strong { font-weight: 600; }
.bf-barra-precio { margin: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bf-barra-precio span { font-weight: 500; font-size: 26px; }
.bf-barra-precio s { font-weight: 300; font-size: 15px; opacity: 0.7; }
.bf-barra .bf-btn--barra, .bf-barra .bf-btn--barra:visited { height: 44px; padding: 0 20px; gap: 8px; font-size: 15px; background: var(--bf-acc); color: var(--bf-acc-ink); }
html:has(.bf-barra.is-on) { scroll-padding-bottom: 140px; }

/* --- Vídeo de un cliente (UGC, 25/11/2026) ---------------------------------------------- */
/* El vídeo es vertical (9:16): a la izquierda en escritorio y a todo el ancho en móvil.
   Hasta que se pulsa solo hay póster: el vídeo de Gumlet se pide al darle al play. */
.bf-ugc { background: #fff; padding: 0 0 var(--bf-pad); }
.bf-ugc-in { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 520px); justify-content: center; align-items: center; gap: clamp(32px, 6vw, 96px); }
.bf-ugc-video { position: relative; aspect-ratio: 9 / 16; max-height: calc(var(--bf-alto) - 40px); border-radius: 22px; overflow: hidden; background: #000; }
.bf-ugc-video > img, .bf-ugc-video > video { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.bf-ugc-play { position: absolute; z-index: 1; inset: 0; margin: auto; display: grid; place-items: center; width: 76px; height: 76px; padding: 0 0 0 4px; border: 0; border-radius: 50%; background: var(--bf-acc); color: var(--bf-acc-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); cursor: pointer; transition: transform 420ms var(--bf-ease); }
.bf-ugc-play:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .bf-ugc-video:hover .bf-ugc-play { transform: scale(1.08); } }
.bf-ugc-aviso { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); color: #fff; font-family: var(--pr-font-body); font-size: 12px; line-height: 1.3; letter-spacing: 0.02em; }
.bf-ugc-video.is-reproduciendo .bf-ugc-play, .bf-ugc-video.is-reproduciendo > img { display: none; }
.bf-ugc-texto { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.bf-ugc-quien { font-family: var(--pr-font-body); font-size: 18px; color: var(--bf-ink); }
.bf-ugc-quien strong { font-weight: 600; }
.bf-ugc-p { font-family: var(--pr-font-body); font-size: 18px; line-height: 1.5; color: var(--bf-suave); }
.bf-accion--ugc { margin-top: 8px; }

/* --- Hasta 1240 --------------------------------------------------------------------------- */
@media (max-width: 1240px) {
	.bf-barra-txt { font-size: 14px; line-height: 18px; }
}

/* --- Tableta ---------------------------------------------------------------------------- */
@media (max-width: 1023px) {
	.bf-momentos-cab { grid-template-columns: 1fr; gap: 16px; }
	.bf-momentos-fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-momento { height: clamp(260px, 34vh, 380px); }
	.bf-calidad-in, .bf-cierre-in { gap: 32px; }
	.bf-faq-in { grid-template-columns: 1fr; gap: 24px; }
	.bf-barra-txt { display: none; }
}

/* --- Móvil ------------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.pr-page--bf { --bf-pad: 48px; --bf-alto: calc(100svh - 60px); --bf-margen: 20px; }
	.bf-wrap { padding: 0 20px; }
	.bf-h2 { font-size: 30px; }

	/* Cabecera fija: arriba transparente; al bajar, fondo claro con desenfoque. */
	.bf-scroll .pr-page--bf .pr-header { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background-color 200ms ease; }
	html.bf-scroll body.pr-page--bf .pr-header.is-inverted:not(.pr-menu-abierto) { background: rgba(0, 0, 0, 0.62); }
	html.bf-scroll body.pr-page--bf .pr-header:not(.is-inverted):not(.pr-menu-abierto) { background: rgba(249, 249, 249, 0.92); }

	/* Hero en móvil (Sports y Active): la foto a sangre detrás y el color baja,
	   translúcido, para que se lea el texto. */
	.bf-hero { min-height: 100svh; align-items: flex-end; }
	.bf-hero-foto, .bf--active .bf-hero-foto { width: 100%; }
	.bf-hero-img { object-position: 55% center; }
	.bf--active .bf-hero-img { object-position: 64% center; }
	.bf-hero-velo, .bf--active .bf-hero-velo { background: linear-gradient(180deg, rgba(var(--bf-hero-rgb), 0.12) 0%, rgba(var(--bf-hero-rgb), 0.4) 40%, rgba(var(--bf-hero-rgb), 0.84) 100%); }
	/* Active: la foto es horizontal y a todo el alto la cara caía bajo el
	   titular; ocupa el 66 % de arriba y el azul translúcido cubre el resto. */
	.bf--active .bf-hero-foto { bottom: auto; height: 66%; }
	.bf--active .bf-hero-velo { background: linear-gradient(180deg, rgba(var(--bf-hero-rgb), 0.06) 0%, rgba(var(--bf-hero-rgb), 0.18) 32%, rgba(var(--bf-hero-rgb), 0.62) 48%, rgba(var(--bf-hero-rgb), 0.86) 66%, rgba(var(--bf-hero-rgb), 0.9) 100%); }
	.bf-hero-sello { top: 76px; right: 20px; bottom: auto; width: 56px; }
	.bf-hero-sello--us { width: 68px; }
	.bf-hero-in { padding-top: 96px; padding-bottom: 32px; }
	.bf-hero-texto { gap: 12px; }
	.bf-h1 { font-size: 34px; }
	.bf-hero-p { font-size: 16px; }
	.bf-accion { align-self: stretch; }
	.bf-btn { width: 100%; height: 56px; font-size: 17px; }
	.bf-cuenta { gap: 12px; }
	.bf-cuenta-label { font-size: 13px; }
	.bf-cuenta-caja { width: 56px; height: 56px; border-radius: 16px; }

	/* Fotos del resultado: se deslizan de lado; la siguiente asoma. */
	.bf-momentos-p { font-size: 16px; }
	.bf-momentos-fila { display: flex; gap: 12px; margin-top: 24px; padding: 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; overscroll-behavior-x: contain; }
	.bf-momentos-fila::-webkit-scrollbar { display: none; }
	.bf-momento { flex: 0 0 74%; height: 48svh; max-height: 405px; scroll-snap-align: start; border-radius: 20px; }
	.bf-momento-txt { left: 18px; right: 18px; bottom: 18px; gap: 8px; }
	.bf-momento-t { font-size: 20px; }
	.bf-momento-r { font-size: 15px; }

	/* Expertos: la foto arriba y el texto debajo, en la misma tarjeta. */
	/* Vídeo del cliente: a todo el ancho, el texto y el botón debajo. */
	.bf-ugc-in { grid-template-columns: 1fr; gap: 20px; }
	.bf-ugc-video { max-height: none; border-radius: 20px; }
	.bf-ugc-play { width: 64px; height: 64px; }
	.bf-ugc-quien, .bf-ugc-p { font-size: 16px; }
	.bf-ugc-texto { gap: 12px; }

	.bf-expertos { padding: 40px 0 8px; }
	.bf-expertos-tarjeta { grid-template-columns: 1fr; min-height: 0; }
	.bf-expertos-foto { height: 190px; border-radius: 24px 24px 0 0; }
	.bf-expertos-texto { gap: 14px; padding: 28px 24px; border-radius: 0 0 24px 24px; }
	.bf-expertos-texto .bf-h2 { font-size: 24px; }
	.bf-expertos-p { font-size: 16px; }
	.bf-sellos { gap: 24px; }
	.bf-sello--lipinova { height: 28px !important; }
	.bf-sello--sdn { height: 34px !important; }

	/* Oferta: la tarjeta de los botes arriba; elegir, total y botón debajo. */
	.bf-oferta { grid-template-columns: 1fr; gap: 8px; padding: 24px 20px 40px; }
	.bf-oferta-media { aspect-ratio: 335 / 226; border-radius: 24px; }
	.bf-oferta-botes { height: 78%; }
	.bf-oferta-panel { gap: 14px; padding: 28px 0 0; }
	.bf-oferta-sub { font-size: 15px; }
	.bf-opcion { min-height: 64px; padding: 12px 16px 12px 50px; border-radius: 18px; }
	.bf-opcion::before { left: 18px; }
	.bf-opcion-txt strong { font-size: 17px; }
	.bf-opcion-txt span { font-size: 13px; }
	.bf-opcion-precio { flex-direction: column; align-items: flex-end; gap: 0; }
	.bf-opcion-mejor { left: 50px; font-size: 12px; }
	.bf-opcion-precio span { font-size: 21px; }
	.bf-opcion-precio s { font-size: 13px; }
	.bf-desglose-fila--total span { font-size: 26px; }
	.bf-btn--oferta { height: 56px; }
	.bf-tranquilidad { font-size: 14px; }

	.bf-calidad-in { grid-template-columns: 1fr; gap: 24px; }
	.bf-calidad-foto { order: -1; height: 32svh; min-height: 220px; border-radius: 24px; }
	.bf-calidad-sello { height: 84px !important; right: 18px; bottom: 18px; }
	.bf-calidad-p { font-size: 16px; margin-top: 14px; }
	.bf-calidad-lista li { padding: 12px 0; font-size: 15px; }
	.bf-calidad-lista strong { font-size: 17px; }

	.bf-faq-q { min-height: 54px; padding: 12px 20px; font-size: 16px; gap: 16px; }
	.bf-faq-a { padding: 0 20px 20px; }
	.bf-faq-a p { font-size: 15px; }
	.bf-fda { font-size: 13px; }

	/* Cierre en móvil: más aire arriba (la cabecera fija tapaba el titular), la
	   cuenta atrás con su texto encima y el botón a lo ancho. */
	.bf-cierre { min-height: 0; }
	.bf-cierre-in { gap: 18px; padding-top: 72px; padding-bottom: 64px; }
	.bf-cierre .bf-h2 { font-size: 28px; max-width: 320px; }
	.bf-cierre-sub { font-size: 16px; max-width: 335px; }
	.bf-cierre .bf-cuenta { flex-direction: column; gap: 10px; margin-top: 4px; }
	.bf-cierre .bf-cuenta-label { max-width: none; text-align: center; }
	.bf-cierre .bf-accion { width: 100%; margin-top: 6px; }

	.bf-barra { padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }
	.bf-barra-in { height: 72px; padding: 0 12px 0 16px; gap: 12px; border-radius: 36px; }
	.bf-barra-bote { width: 42px; height: 56px !important; }
	.bf-barra-precio { flex-direction: column; gap: 2px; margin-right: auto; }
	.bf-barra-precio span { font-size: 22px; line-height: 1; }
	.bf-barra-precio s { font-size: 14px; }
	.bf-barra .bf-btn--barra { width: auto; height: 48px; padding: 0 18px; }
}

/* --- Movimiento reducido ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.bf-btn { transition: opacity 200ms ease; }
	.bf-btn:active { transform: none; }
	.bf-cuenta-num.is-rueda { animation: none; }
	.bf-barra-in, .bf-barra.is-on .bf-barra-in { transform: none; transition: opacity 200ms ease; }
	.bf-faq-item::details-content { transition: none; }
	.bf-momento img, .bf-oferta-bote { transition: none; }
	.bf-btn { transform: none !important; }
	.bf-btn::before, .bf-onda { display: none; }
}

/* --- Oferta terminada ---------------------------------------------------------------------- */
.bf--terminada .bf-ahorro, .bf--terminada .bf-insignia { display: none; }

/* --- Sin oferta (landing de ChatGPT Ads, 26/11/2026) ----------------------------------------
   En el hero de la v5.2 el precio grande va oculto porque el titular llevaba el descuento;
   aquí no hay descuento, así que se enseña el precio de siempre. */
.bf--sin-oferta .bf-precio--hero .bf-precio-ahora { display: inline; font-size: 24px; color: #fff; }
