/* ═══ VARIABLES ═══════════════════════════════════════════════════════════════ */
:root {
	--bn-blue:       #1a56a0;
	--bn-blue-dark:  #154589;
	--bn-blue-light: #c5d8f0;
	--bn-bg:         #f7faff;
	--bn-text:       #2b4a7a;
	--bn-muted:      #90a8c8;
}

/* ═══ OVERLAY ══════════════════════════════════════════════════════════════════ */
.bnpopup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(3px);
}
.bnpopup-overlay[hidden] { display: none !important; }

/* ═══ MODAL ════════════════════════════════════════════════════════════════════ */
.bnpopup-modal {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
	padding: 28px 32px 32px;
	width: 100%;
	max-width: 520px;
	position: relative;
	max-height: 92vh;
	overflow-y: auto;
	transition: max-width 0.3s ease;
	animation: bnpopup-in 0.22s ease;
}
.bnpopup-modal.preview-mode { max-width: 760px; }

@keyframes bnpopup-in {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══ CLOSE ════════════════════════════════════════════════════════════════════ */
.bnpopup-close {
	position: fixed !important;
	top: 16px !important;
	right: 20px !important;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	font-size: 2.6rem !important;
	line-height: 1 !important;
	cursor: pointer !important;
	color: #fff !important;
	transition: color 0.15s !important;
	padding: 0 !important;
	z-index: 1000000 !important;
}
.bnpopup-close:hover { background: none !important; color: rgba(255,255,255,0.7) !important; }

/* progress dots eliminados */

/* ═══ SHARED ELEMENTS ══════════════════════════════════════════════════════════ */
.bnpopup-sub {
	text-align: center;
	color: var(--bn-muted);
	font-size: 0.82rem;
	margin: 0 0 2px;
	font-family: 'Nunito', sans-serif;
}
.bnpopup-title {
	font-family: 'Dongle', 'Nunito', sans-serif;
	font-size: 2.4rem;
	color: var(--bn-blue);
	text-align: center;
	line-height: 1;
	margin: 0 0 20px;
}
.bnpopup-label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--bn-text);
	margin: 16px 0 8px;
	font-family: 'Nunito', sans-serif;
}
.bnpopup-input {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--bn-blue-light);
	border-radius: 10px;
	font-family: 'Nunito', sans-serif;
	font-size: 1rem;
	background: var(--bn-bg);
	outline: none;
	transition: border 0.2s;
	box-sizing: border-box;
}
.bnpopup-input:focus { border-color: var(--bn-blue); }

/* ═══ GENDER BUTTONS ═══════════════════════════════════════════════════════════ */
.bnpopup-gender-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.bnpopup-gender-btn {
	padding: 13px 0;
	border-radius: 100px;
	cursor: pointer;
	text-align: center;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	border: 2px solid var(--bn-blue-light);
	background: #fff;
	color: #5580b0;
	transition: all 0.15s;
}
.bnpopup-gender-btn:hover,
.bnpopup-gender-btn.sel {
	background: var(--bn-blue-dark) !important;
	color: #fff !important;
	border-color: var(--bn-blue-dark) !important;
}

/* ═══ CHARACTER GRID ════════════════════════════════════════════════════════════ */
.bnpopup-char-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin-top: 4px;
	min-height: 72px;
}
.bnpopup-char-card {
	position: relative;
	border-radius: 12px;
	cursor: pointer;
	overflow: hidden;
	border: 2.5px solid var(--bn-blue-light);
	background: var(--bn-bg);
	transition: all 0.15s;
	aspect-ratio: 1 / 1;
}
.bnpopup-char-card:hover  { border-color: var(--bn-blue); transform: translateY(-2px); }
.bnpopup-char-card.sel    { border-color: var(--bn-blue); box-shadow: 0 4px 16px rgba(26,86,160,.25); }
.bnpopup-char-card img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnpopup-check {
	position: absolute;
	bottom: 6px; left: 50%;
	transform: translateX(-50%);
	width: 22px; height: 22px;
	border-radius: 50%;
	background: var(--bn-blue);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 0.78rem;
	opacity: 0; transition: opacity 0.2s;
}
.bnpopup-char-card.sel .bnpopup-check { opacity: 1; }

/* ═══ PRIMARY BUTTONS ═══════════════════════════════════════════════════════════ */
.bnpopup-btn-primary {
	display: block;
	width: 100%;
	margin-top: 24px;
	padding: 14px;
	background: var(--bn-blue);
	color: #fff;
	border: none;
	border-radius: 100px;
	font-family: 'Nunito', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
	text-align: center;
}
.bnpopup-btn-primary:hover:not(:disabled) { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bnpopup-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

/* ═══ STEP 1: FORM ══════════════════════════════════════════════════════════════ */
/* (uses shared elements above) */

/* ═══ STEP 2: PREVIEW ══════════════════════════════════════════════════════════ */
#bnpopup-step-preview { display: none; }
#bnpopup-step-preview.active { display: block; }

.bnpopup-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.bnpopup-back-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--bn-blue);
	padding: 6px 10px;
	border-radius: 100px;
	transition: background 0.2s, color 0.2s;
}
.bnpopup-back-btn:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bnpopup-pg-count {
	color: var(--bn-muted);
	font-size: 0.85rem;
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}

/* page box */
.bnpopup-page-box {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,.13);
	background: white;
	position: relative;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.bnpopup-page-box.sl { transform: translateX(-40px); opacity: 0; }
.bnpopup-page-box.sr { transform: translateX(40px);  opacity: 0; }

/* tapa */
.bnpopup-page-tapa { aspect-ratio: 1/1; position: relative; overflow: hidden; }
.bnpopup-page-tapa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnpopup-tapa-svg {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	pointer-events: none;
}
.bnpopup-tapa-svg text {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	fill: #6b4226;
	letter-spacing: 2px;
}

/* intro */
.bnpopup-page-intro { aspect-ratio: 2/1; position: relative; overflow: hidden; }
.bnpopup-page-intro img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnpopup-intro-name {
	position: absolute;
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	letter-spacing: 0.5px;
}

/* buscar */
.bnpopup-page-buscar { aspect-ratio: 2/1; position: relative; overflow: hidden; background: #e8eef5; }
.bnpopup-page-buscar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bnpopup-buscar-placeholder {
	position: absolute; inset: 0;
	display: none;
	flex-direction: column; align-items: center; justify-content: center;
	font-family: 'Dongle', 'Nunito', sans-serif;
	font-size: 2rem; color: #5580b0;
	text-align: center; padding: 0 24px;
}

/* lock */
.bnpopup-page-lock {
	aspect-ratio: 2/1;
	background: linear-gradient(135deg, #f0f6ff 0%, #d8e4f7 100%);
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 8px; padding: 24px;
}
.bnpopup-lock-icon  { font-size: 2.4rem; }
.bnpopup-lock-title { font-family: 'Dongle','Nunito',sans-serif; font-size: 1.7rem; color: var(--bn-blue); line-height: 1; }
.bnpopup-lock-sub   { font-family: 'Nunito',sans-serif; font-size: 0.85rem; color: #5580b0; text-align: center; max-width: 360px; }

/* page navigation */
.bnpopup-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}
.bnpopup-nav-btn {
	width: 38px !important; height: 38px !important;
	border-radius: 50% !important;
	border: none !important;
	background: var(--bn-blue) !important;
	font-size: 1.2rem !important;
	cursor: pointer !important;
	color: #fff !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	flex-shrink: 0 !important;
	transition: background 0.15s !important;
	padding: 0 !important;
	line-height: 1 !important;
	box-shadow: 0 2px 8px rgba(26,86,160,.35) !important;
}
.bnpopup-nav-btn:hover:not(:disabled) { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bnpopup-nav-btn:disabled { opacity: 0.25 !important; cursor: not-allowed !important; }

/* page dots — force circles, override any theme button styles */
.bnpopup-dots {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}
.bnpopup-dot {
	display: inline-block !important;
	width: 9px !important;
	height: 9px !important;
	min-width: 9px !important;
	max-width: 9px !important;
	min-height: 9px !important;
	max-height: 9px !important;
	border-radius: 50% !important;
	background: #c8d8ee !important;
	border: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
	line-height: 0 !important;
	font-size: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: none !important;
	outline: none !important;
	transition: background 0.15s, transform 0.15s;
}
.bnpopup-dot:hover  { background: var(--bn-blue) !important; }
.bnpopup-dot.active {
	background: var(--bn-blue) !important;
	transform: scale(1.4) !important;
	box-shadow: 0 0 0 3px rgba(26,86,160,.2) !important;
}

/* cart row */
.bnpopup-cart-row { margin-top: 16px; }

.bnpopup-error {
	margin-top: 10px;
	padding: 10px 14px;
	background: #fef0f0;
	border: 1px solid #f0a8a8;
	border-radius: 8px;
	color: #c0392b;
	font-size: 0.88rem;
	font-family: 'Nunito', sans-serif;
	display: none;
}

/* ═══ STEP 3: UPSELL ════════════════════════════════════════════════════════════ */
#bnpopup-step-upsell { display: none; }
#bnpopup-step-upsell.active { display: block; }

.bnpopup-upsell-sub {
	text-align: center;
	color: var(--bn-muted);
	font-size: 0.82rem;
	margin: 0 0 2px;
	font-family: 'Nunito', sans-serif;
}
.bnpopup-upsell-title {
	font-family: 'Dongle', 'Nunito', sans-serif;
	font-size: 2.4rem;
	color: var(--bn-blue);
	text-align: center;
	line-height: 1.1;
	margin: 0 0 6px;
}
.bnpopup-upsell-desc {
	text-align: center;
	color: #5580b0;
	font-size: 0.9rem;
	font-family: 'Nunito', sans-serif;
	margin: 0 0 22px;
}

.bnpopup-upsell-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 8px;
	min-width: 0;
	width: 100%;
}

.bnpopup-upsell-card {
	border: 2.5px solid var(--bn-blue-light);
	border-radius: 14px;
	padding: 20px 14px 18px;
	text-align: center;
	cursor: pointer;
	transition: all 0.18s;
	background: #fff;
	position: relative;
}
.bnpopup-upsell-card:hover {
	border-color: var(--bn-blue-dark) !important;
	background: var(--bn-blue-dark) !important;
	color: #fff !important;
}
.bnpopup-upsell-card:hover .bnpopup-upsell-icon,
.bnpopup-upsell-card:hover .bnpopup-upsell-name,
.bnpopup-upsell-card:hover .bnpopup-upsell-price { color: #fff; }

.bnpopup-upsell-card.recommended {
	border-color: var(--bn-blue);
	background: var(--bn-bg);
}
.bnpopup-upsell-card.recommended:hover {
	background: var(--bn-blue-dark);
}

.bnpopup-upsell-badge {
	position: absolute;
	top: -12px; left: 50%;
	transform: translateX(-50%);
	background: var(--bn-blue);
	color: #fff;
	font-family: 'Nunito', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}
.bnpopup-upsell-card.recommended:hover .bnpopup-upsell-badge {
	background: #fff;
	color: var(--bn-blue);
}

.bnpopup-upsell-icon {
	font-size: 2rem;
	display: flex;
	align-items: center;
	gap: 3px;
	justify-content: center;
	margin-bottom: 8px;
}
.bnpopup-upsell-icon img {
	display: block !important;
	width: 1em !important;
	height: auto !important;
}
.bnpopup-upsell-name {
	font-family: 'Roboto', 'Nunito', sans-serif;
	font-weight: 800;
	font-size: 1rem;
	color: var(--bn-text);
	display: block;
	margin-bottom: 6px;
	transition: color 0.18s;
}
.bnpopup-upsell-price {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--bn-blue);
	display: block;
	transition: color 0.18s;
}
.bnpopup-upsell-diff {
	display: inline-block;
	font-size: 0.78rem;
	background: #e6f0ff;
	color: var(--bn-blue);
	border-radius: 6px;
	padding: 2px 7px;
	margin-top: 4px;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
}
.bnpopup-upsell-card:hover .bnpopup-upsell-diff {
	background: rgba(255,255,255,0.25);
	color: #fff;
}

.bnpopup-upsell-back {
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--bn-muted);
	display: block;
	margin: 14px auto 0;
	padding: 6px 12px;
	border-radius: 100px;
	transition: all 0.15s;
}
.bnpopup-upsell-back:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }

/* ═══ TRIGGER BUTTON ════════════════════════════════════════════════════════════ */
.bnpopup-trigger.bk-shortdesc-btn,
.bk-shortdesc-btn.bnpopup-trigger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 10px 26px !important;
	margin-top: 8px !important;
	border-radius: 100px !important;
	border: none !important;
	font-family: 'Nunito', sans-serif !important;
	font-weight: 700 !important;
	font-size: .95rem !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
	background: #000000 !important;
	text-decoration: none !important;
	cursor: pointer !important;
	line-height: 2 !important;
	transition: all 0.3s ease !important;
}
.bnpopup-trigger.bk-shortdesc-btn:hover,
.bk-shortdesc-btn.bnpopup-trigger:hover {
	background: #80c0d8 !important;
	color: #ffffff !important;
}

/* ═══ LOADING ═══════════════════════════════════════════════════════════════════ */
.bnpopup-loading {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--bn-muted);
	font-family: 'Nunito', sans-serif;
	font-size: 0.85rem;
	padding: 16px 0;
}
