/*
 * Barra y pop-up de Black Friday (24/11/2026). Ver inc/black-friday-web.php.
 * Fondo cálido de las landings (#efece6) y blanco, sin rojo ni negro de fondo:
 * el color del producto va solo en la etiqueta y en el botón. Se quita en
 * diciembre con su PHP.
 */
.pr-con-bfbarra {
	--pr-bfb-h: 40px;
	--pr-bfb-admin: 0px;
	--pr-bf-acc: #b71f2f;
	--pr-bf-acc-ink: #fff;
	padding-top: var(--pr-bfb-h);
}
.pr-con-bfbarra.admin-bar { --pr-bfb-admin: 32px; }

/* ------------------------------ Barra ------------------------------ */
.pr-bfb {
	position: fixed;
	top: var(--pr-bfb-admin);
	left: 0;
	right: 0;
	z-index: 101;
	height: var(--pr-bfb-h);
	background: #efece6;
	color: #1e1e1e;
	border-bottom: 1px solid rgba(30, 30, 30, 0.08);
	font-family: var(--pr-font-body, 'Funnel Sans', sans-serif);
	font-size: 15px;
	line-height: 1.2;
}
/* El tema fija la cabecera con `top: 0` y selectores muy específicos (`:not()` encadenados) en cada plantilla. */
html body.pr-con-bfbarra .pr-header { top: calc(var(--pr-bfb-h) + var(--pr-bfb-admin)) !important; }

.pr-bfb-in {
	position: relative;
	height: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}
.pr-bfb-tag,
.pr-bfpop-tag {
	flex: none;
	display: inline-block;
	padding: 4px 10px;
	border-radius: 40px;
	background: #b71f2f;
	color: #fff;
	font-family: var(--pr-font-body, 'Funnel Sans', sans-serif);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.pr-bfb--active .pr-bfb-tag,
.pr-bfpop-caja--active .pr-bfpop-tag { background: #f99b25; color: #000; }
/* ES: barra neutra, en el negro de PRORESOLVE™ (Pablo, 25/11). */
.pr-bfb.pr-bfb--neutra .pr-bfb-tag { background: #1e1e1e; color: #fff; }

.pr-bfb-txt {
	margin: 0;
	min-width: 0;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pr-bfb-corto { display: none; }
.pr-bfb-como { font-weight: 400; color: rgba(30, 30, 30, 0.72); }
/* Fuera de la home, en ES, cada producto enlaza a su landing. */
.pr-con-bfbarra .pr-bfb a.pr-bfb-prod {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.pr-con-bfbarra .pr-bfb a.pr-bfb-prod:hover { color: #b71f2f; }
@media (max-width: 1100px) {
	.pr-bfb-como { display: none; }
}

.pr-con-bfbarra .pr-bfb .pr-bfb-ver {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	white-space: nowrap;
	cursor: pointer;
}
.pr-con-bfbarra .pr-bfb .pr-bfb-ver:hover { color: #b71f2f; }
.pr-con-bfbarra .pr-bfb--active .pr-bfb-ver:hover { color: #9a4f00; }
.pr-con-bfbarra .pr-bfb--neutra .pr-bfb-ver:hover,
.pr-con-bfbarra .pr-bfb--neutra a.pr-bfb-prod:hover { color: #000; text-decoration-thickness: 2px; }
/* Toda la barra abre el pop-up. */
.pr-bfb-ver::after {
	content: "";
	position: absolute;
	inset: 0;
}
.pr-bfb-ver:focus-visible { outline: 2px solid #1e1e1e; outline-offset: 2px; }

@media (max-width: 782px) {
	.pr-con-bfbarra.admin-bar { --pr-bfb-admin: 46px; }
}

@media (max-width: 767px) {
	.pr-con-bfbarra { --pr-bfb-h: 36px; }
	.pr-bfb { font-size: 13px; }
	.pr-bfb-in { padding: 0 12px 0 16px; gap: 8px; justify-content: space-between; }
	.pr-bfb-tag { font-size: 10px; padding: 3px 8px; }
	.pr-bfb-largo { display: none; }
	.pr-bfb-corto { display: inline; }
	.pr-bfb-txt { flex: 1; }
	.pr-con-bfbarra .pr-bfb .pr-bfb-ver span { display: none; }
}

/* ------------------------------ Pop-up ------------------------------ */
.pr-bfpop[hidden] { display: none; }
.pr-bfpop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.25s ease;
	font-family: var(--pr-font-body, 'Funnel Sans', sans-serif);
	color: #1e1e1e;
}
.pr-bfpop.is-open { opacity: 1; }
html.pr-bfpop-abierto { overflow: hidden; }
.pr-bfpop-fondo {
	position: absolute;
	inset: 0;
	background: rgba(30, 30, 30, 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.pr-bfpop-caja {
	position: relative;
	display: grid;
	grid-template-columns: 42% 1fr;
	width: min(860px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
	transform: translateY(16px) scale(0.98);
	transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
	outline: none;
}
.pr-bfpop.is-open .pr-bfpop-caja { transform: none; }
.pr-bfpop-caja--active { --pr-bf-acc: #f99b25; --pr-bf-acc-ink: #000; }
/* ES con las dos ofertas: neutro, en el negro de PRORESOLVE™ (Pablo, 25/11). */
.pr-bfpop-caja--dos { --pr-bf-acc: #1e1e1e; --pr-bf-acc-ink: #fff; }
.pr-bfpop-caja--dos .pr-bfpop-tag { background: #1e1e1e; color: #fff; }
.pr-bfpop-fotos img.pr-bfpop-foto--neutra { object-position: 40% center; }

.pr-bfpop-x {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1e1e1e;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}
.pr-bfpop-x:hover { background: #efece6; }

/* Las fotos no marcan el alto: lo marca el formulario y ellas lo cubren. */
.pr-bfpop-fotos {
	position: relative;
	overflow: hidden;
	background: #efece6;
}
.pr-bfpop-fotos img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pr-bfpop-fotos img:nth-child(1):not(:last-child) { bottom: 50%; height: 50%; }
.pr-bfpop-fotos img:nth-child(2) { top: 50%; height: 50%; }
/* Encuadre: que se vea el bote. */
.pr-bfpop-fotos img:nth-child(1):not(:last-child) { object-position: center 45%; }
.pr-bfpop-fotos img.pr-bfpop-foto--active:nth-child(2) { object-position: center 70%; }

.pr-bfpop-cuerpo {
	overflow-y: auto;
	padding: 40px 40px 30px;
}
.pr-bfpop-form,
.pr-bfpop-hecho { display: flex; flex-direction: column; gap: 14px; }
.pr-bfpop-form[hidden],
.pr-bfpop-hecho[hidden] { display: none; }
.pr-bfpop-tag { align-self: flex-start; }
.pr-bfpop h2 {
	margin: 2px 0 0;
	font-family: var(--pr-font-body, 'Funnel Sans', sans-serif);
	font-size: 30px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: #1e1e1e;
}
.pr-bfpop-sub,
.pr-bfpop-hecho p {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: rgba(30, 30, 30, 0.72);
}
.pr-bfpop-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pr-bfpop-campo { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.pr-bfpop-campo label { font-size: 13px; font-weight: 500; }
.pr-bfpop-campo input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 16px; /* 16 px: en iPhone no hace zoom al tocar */
	color: #1e1e1e;
	box-sizing: border-box;
}
.pr-bfpop-campo input:focus { outline: none; border-color: #1e1e1e; box-shadow: 0 0 0 3px rgba(30, 30, 30, 0.08); }
.pr-bfpop-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
}
.pr-bfpop-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #1e1e1e; }
.pr-bfpop-check a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pr-bfpop .is-falta input { border-color: #b71f2f; }
.pr-bfpop-check.is-falta span { color: #b71f2f; }
.pr-bfpop-err { margin: 0; font-size: 14px; color: #b71f2f; }

.pr-bfpop .pr-bfpop-enviar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	margin-top: 4px;
	padding: 0 28px;
	border: 0;
	border-radius: 40px;
	background: var(--pr-bf-acc);
	color: var(--pr-bf-acc-ink);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease, filter 0.2s ease;
}
.pr-bfpop .pr-bfpop-enviar:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pr-bfpop .pr-bfpop-enviar:disabled { opacity: 0.6; cursor: wait; transform: none; }
.pr-bfpop-nota { margin: 0; font-size: 12px; color: rgba(30, 30, 30, 0.6); text-align: center; }
.pr-bfpop-ir { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
/* En ES, la segunda opción de la elección va en blanco con borde negro: nada de colores de producto. */
.pr-bfpop-caja--dos .pr-bfpop-ir a:nth-child(2) { --pr-bf-acc: #fff; --pr-bf-acc-ink: #1e1e1e; box-shadow: inset 0 0 0 1.5px #1e1e1e; }

@media (max-width: 767px) {
	.pr-bfpop { align-items: flex-end; padding: 0; }
	.pr-bfpop-caja {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		width: 100%;
		max-height: 94vh;
		max-height: 94dvh;
		border-radius: 20px 20px 0 0;
		transform: translateY(40px);
	}
	.pr-bfpop-fotos { display: flex; height: 150px; }
	.pr-bfpop-fotos img,
	.pr-bfpop-fotos img:nth-child(1):not(:last-child),
	.pr-bfpop-fotos img:nth-child(2) { position: static; flex: 1; min-width: 0; height: 100%; }
	.pr-bfpop-fotos .pr-bfpop-foto--sports { object-position: center 48% !important; }
	.pr-bfpop-fotos .pr-bfpop-foto--active { object-position: center 80% !important; }
	.pr-bfpop-fotos .pr-bfpop-foto--neutra { object-position: center 55% !important; }
	.pr-bfpop-cuerpo { padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
	.pr-bfpop-form,
	.pr-bfpop-hecho { gap: 11px; }
	.pr-bfpop h2 { font-size: 24px; }
	.pr-bfpop-sub { font-size: 14px; }
	.pr-bfpop-fila { gap: 10px; }
	.pr-bfpop-campo input { height: 42px; }
	.pr-bfpop .pr-bfpop-enviar { min-height: 50px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.pr-bfpop,
	.pr-bfpop-caja { transition: none; }
}

@media print {
	.pr-bfb,
	.pr-bfpop { display: none; }
	.pr-con-bfbarra { padding-top: 0; }
}
