/* Botón Nav Flotante Promo — estilos del frontend */

.bnfp-wrap {
	--bnfp-primary: #8e0e26;
	--bnfp-primary2: #6d0a1e;
	--bnfp-grad-pos: 100%;
	--bnfp-accent: #e8447c;
	--bnfp-gold: #f3d9a4;
	--bnfp-cream: #fff8f5;
	--bnfp-ink: #2d2230;
	position: fixed;
	bottom: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.35;
}

.bnfp-right { right: 24px; }
.bnfp-left  { left: 24px; align-items: flex-start; }

/* ---------- Botón flotante rectangular ---------- */

.bnfp-wrap button.bnfp-toggle {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 12px 20px !important;
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	border: 1px solid rgba(0, 0, 0, 0.05) !important;
	border-radius: 15px !important;
	background: #fff !important;
	background-image: none !important;
	color: #4d4d4d !important;
	font-size: 15px !important;
	font-weight: 800;
	letter-spacing: 0.2px;
	line-height: 1.2;
	text-transform: none !important;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bnfp-wrap button.bnfp-toggle:hover,
.bnfp-wrap button.bnfp-toggle:focus,
.bnfp-wrap button.bnfp-toggle:active {
	transform: translateY(-2px);
	background: #fff !important;
	color: #4d4d4d !important;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 3px 8px rgba(0, 0, 0, 0.24) !important;
	outline: none;
}

.bnfp-toggle-icon {
	flex: none;
	color: var(--bnfp-accent);
	width: 21px;
	height: 21px;
}

.bnfp-toggle-text {
	color: inherit;
}

/* Insignia con número de promociones */

.bnfp-toggle-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #e02b2b;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 3px 8px rgba(180, 20, 20, 0.45);
	animation: bnfp-badge-pop 0.35s ease 0.6s backwards;
}

@keyframes bnfp-badge-pop {
	from { transform: scale(0); }
	60%  { transform: scale(1.2); }
	to   { transform: scale(1); }
}

/* Al abrir el panel, el botón se aquieta */

.bnfp-wrap.bnfp-open button.bnfp-toggle {
	transform: none;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28) !important;
}

/* ---------- Panel ---------- */

.bnfp-panel {
	width: 348px;
	max-width: calc(100vw - 32px);
	max-height: min(74vh, 620px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 22px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	background:
		radial-gradient(circle at 88% 6%, rgba(255, 216, 150, 0.28) 0 2px, transparent 3px),
		radial-gradient(circle at 8% 12%, rgba(255, 216, 150, 0.24) 0 2px, transparent 3px),
		radial-gradient(circle at 94% 40%, rgba(255, 216, 150, 0.2) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 5% 60%, rgba(255, 216, 150, 0.18) 0 1.5px, transparent 2.5px),
		radial-gradient(circle at 92% 78%, rgba(255, 216, 150, 0.16) 0 1.5px, transparent 2.5px),
		linear-gradient(170deg, var(--bnfp-primary) 0%, var(--bnfp-primary2, #6d0a1e) var(--bnfp-grad-pos, 100%));
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 4px 12px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(16px) scale(0.97);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.bnfp-open .bnfp-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Cabecera */

.bnfp-header {
	position: relative;
	flex: none;
	padding: 10px 46px 0px;
	text-align: center;
	color: #fff;
	background: transparent;
}

.bnfp-title {
	margin: 0 0 2px;
	font-family: var(--bnfp-title-font, Georgia, "Times New Roman", serif);
	font-size: var(--bnfp-title-size, 16px);
	font-weight: 700;
	letter-spacing: 2px;
	color: #fff;
	text-transform: uppercase;
}

.bnfp-subtitle {
	margin: 0;
	font-family: var(--bnfp-subtitle-font, "Dancing Script", "Segoe Script", cursive);
	font-style: normal;
	font-weight: 600;
	font-size: var(--bnfp-subtitle-size, 15px);
	color: var(--bnfp-gold);
}

/* Cinta patria (rojo-blanco-rojo) */

.bnfp-ribbon {
	position: absolute;
	top: -6px;
	left: 14px;
	display: flex;
	transform: rotate(-8deg);
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

.bnfp-ribbon i {
	width: 9px;
	height: 28px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

.bnfp-ribbon i:nth-child(1),
.bnfp-ribbon i:nth-child(3) { background: linear-gradient(180deg, #e02240, #b0122c); }
.bnfp-ribbon i:nth-child(2) { background: linear-gradient(180deg, #ffffff, #f0e8e8); }

/* Cinta con imagen personalizada */

.bnfp-ribbon-img {
	position: absolute;
	top: -4px;
	left: 12px;
	height: 34px;
	width: auto;
	max-width: 80px;
	object-fit: contain;
	transform: rotate(-8deg);
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}

/* Botón cerrar */

.bnfp-wrap button.bnfp-close {
	position: absolute !important;
	top: 8px;
	right: 12px;
	left: auto;
	width: 26px !important;
	height: 26px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: none !important;
	border-radius: 50% !important;
	background: #fff !important;
	background-image: none !important;
	color: var(--bnfp-primary) !important;
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1 !important;
	text-transform: none;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
	transition: transform 0.15s ease;
}

.bnfp-wrap button.bnfp-close:hover,
.bnfp-wrap button.bnfp-close:focus,
.bnfp-wrap button.bnfp-close:active {
	transform: scale(1.1);
	background: #fff !important;
	color: var(--bnfp-primary) !important;
	outline: none;
}

/* Contador regresivo */

.bnfp-countdown {
	margin-top: 6px;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 3px 11px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.25);
	font-size: 11.5px;
	color: var(--bnfp-gold);
}

.bnfp-countdown-time {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #fff;
}

/* Lista de productos */

.bnfp-products {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	scrollbar-width: thin;
}

.bnfp-card {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 3px 5px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.bnfp-thumb {
	flex: none;
	width: 56px;
	align-self: center;
	border-radius: 9px;
	overflow: hidden;
	line-height: 0;
	background: #fdf6f3;
}

.bnfp-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	display: block;
	margin: 0;
}

.bnfp-info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.bnfp-badge {
	align-self: flex-start;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--bnfp-badge-bg, #fdeaf1);
	color: var(--bnfp-badge, #c02458);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.bnfp-name {
	margin: 0;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--bnfp-ink);
}

.bnfp-name a {
	color: inherit;
	text-decoration: none;
}

.bnfp-name a:hover { color: var(--bnfp-accent); }

.bnfp-brand {
	font-size: 11px;
	color: #8a7a85;
}

/* Estrellas */

.bnfp-stars {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
}

.bnfp-stars-bg {
	position: relative;
	display: inline-block;
	color: #ddd2d8;
	letter-spacing: 1px;
	line-height: 1;
}

.bnfp-stars-fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: #f0a63c;
	letter-spacing: 1px;
}

.bnfp-stars-count {
	font-size: 10.5px;
	color: #9a8a95;
}

/* Precio + botón */

.bnfp-bottom {
	margin-top: 2px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.bnfp-bottom.bnfp-no-price { justify-content: flex-end; }

.bnfp-price { line-height: 1.15; }

.bnfp-price del {
	display: block;
	font-size: 10.5px;
	color: #a89aa2;
}

.bnfp-price del .amount { color: inherit; }

.bnfp-price ins {
	display: block;
	text-decoration: none;
	font-size: 14px;
	font-weight: 800;
	color: var(--bnfp-ink);
}

.bnfp-price > .amount,
.bnfp-price ins .amount {
	font-size: 14px;
	font-weight: 800;
	color: var(--bnfp-ink);
}

.bnfp-btn {
	flex: none;
	padding: 3px 10px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.4px;
	text-decoration: none;
	text-align: center;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.bnfp-btn:hover { transform: translateY(-1px); }

.bnfp-btn-solid {
	background: var(--bnfp-accent);
	color: #fff !important;
	/*box-shadow: 0 5px 14px rgba(232, 68, 124, 0.4);*/
}

.bnfp-btn-solid:hover { filter: brightness(1.06); }

.bnfp-btn-outline {
	background: #fff;
	color: var(--bnfp-accent) !important;
	border: 1.5px solid var(--bnfp-accent);
}

/* Pie del panel */

.bnfp-footer {
	flex: none;
	display: flex;
	gap: 6px;
	padding: 6px 12px 7px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
}

.bnfp-footer-item {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 9.5px;
	line-height: 1.3;
	color: #727272f0;;
}

.bnfp-footer-item strong {
	font-size: 9.5px;
	letter-spacing: 0.3px;
	color: var(--bnfp-primary);
}

.bnfp-footer-icon {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--bnfp-primary);
}

img.bnfp-footer-icon {
	object-fit: contain;
	border-radius: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
	.bnfp-wrap { bottom: 16px; }
	.bnfp-right { right: 12px; }
	.bnfp-left { left: 12px; }

	.bnfp-panel { max-height: 72vh; }

	.bnfp-wrap button.bnfp-toggle {
		padding: 10px 16px !important;
		font-size: 14px !important;
		border-radius: 13px !important;
	}

	.bnfp-toggle-badge {
		top: -7px;
		right: -7px;
		min-width: 20px;
		height: 20px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bnfp-panel,
	.bnfp-toggle,
	.bnfp-btn,
	.bnfp-close { transition: none; }

	.bnfp-toggle-badge { animation: none; }
}
