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

/* ═══ OVERLAY ══════════════════════════════════════════════════════════════════ */
.bndp-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);
}
.bndp-overlay[hidden] { display: none !important; }

/* ═══ MODAL ════════════════════════════════════════════════════════════════════ */
.bndp-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: bndp-in 0.22s ease;
}
.bndp-modal.preview-mode { max-width: 680px; }

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

/* ═══ CLOSE ════════════════════════════════════════════════════════════════════ */
.bndp-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;
}
.bndp-close:hover { background: none !important; color: rgba(255,255,255,0.7) !important; }

/* ═══ SHARED ELEMENTS ══════════════════════════════════════════════════════════ */
.bndp-sub {
	text-align: center;
	color: var(--bn-muted);
	font-size: 0.82rem;
	margin: 0 0 2px;
	font-family: 'Nunito', sans-serif;
}
.bndp-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;
}
.bndp-label {
	display: block;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--bn-text);
	margin: 16px 0 8px;
	font-family: 'Nunito', sans-serif;
}
.bndp-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;
}
.bndp-input:focus { border-color: var(--bn-blue); }

.bndp-textarea {
	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;
	resize: vertical;
	min-height: 80px;
}
.bndp-textarea:focus { border-color: var(--bn-blue); }

.bndp-optional {
	font-weight: 400;
	color: var(--bn-muted);
	font-size: 0.82rem;
}

/* ═══ PRIMARY BUTTONS ═══════════════════════════════════════════════════════════ */
.bndp-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;
}
.bndp-btn-primary:hover:not(:disabled) { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bndp-btn-primary:disabled { opacity: 0.35; cursor: not-allowed; }

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

.bndp-preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.bndp-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;
}
.bndp-back-btn:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bndp-pg-count {
	color: var(--bn-muted);
	font-size: 0.85rem;
	font-family: 'Nunito', sans-serif;
	font-weight: 600;
}

/* page box */
.bndp-page-box {
	width: 100%;
	background: white;
	position: relative;
	transition: transform 0.25s ease, opacity 0.25s ease;
}
.bndp-page-box.sl { transform: translateX(-40px); opacity: 0; }
.bndp-page-box.sr { transform: translateX(40px);  opacity: 0; }

/* tapa */
.bndp-page-tapa {
	display: table;
	margin: 0 auto;
	max-height: calc(80vh - 220px);
}
.bndp-page-tapa img {
	display: block;
	height: calc(80vh - 220px);
	width: auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,.13);
}
.bndp-tapa-svg {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	pointer-events: none;
}
.bndp-tapa-svg text {
	font-family: 'Nunito', sans-serif;
	font-weight: 800;
	fill: #1a4a80;
	letter-spacing: 1px;
}

/* hoja interior */
.bndp-page-hoja { position: relative; }
.bndp-page-hoja img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,.13);
}

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

/* page navigation */
.bndp-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 14px;
}
.bndp-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;
}
.bndp-nav-btn:hover:not(:disabled) { background: var(--bn-blue-dark) !important; color: #fff !important; }
.bndp-nav-btn:disabled { opacity: 0.25 !important; cursor: not-allowed !important; }

/* page dots */
.bndp-dots {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
}
.bndp-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;
}
.bndp-dot:hover  { background: var(--bn-blue) !important; }
.bndp-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 */
.bndp-cart-row { margin-top: 16px; }

.bndp-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 ════════════════════════════════════════════════════════════ */
#bndp-step-upsell { display: none; }
#bndp-step-upsell.active { display: block; }

.bndp-upsell-sub {
	text-align: center;
	color: var(--bn-muted);
	font-size: 0.82rem;
	margin: 0 0 2px;
	font-family: 'Nunito', sans-serif;
}
.bndp-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;
}
.bndp-upsell-desc {
	text-align: center;
	color: #5580b0;
	font-size: 0.9rem;
	font-family: 'Nunito', sans-serif;
	margin: 0 0 22px;
}

.bndp-upsell-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 8px;
	width: 100%;
}
.bndp-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;
}
.bndp-upsell-card:hover {
	border-color: var(--bn-blue-dark) !important;
	background: var(--bn-blue-dark) !important;
	color: #fff !important;
}
.bndp-upsell-card:hover .bndp-upsell-icon,
.bndp-upsell-card:hover .bndp-upsell-name,
.bndp-upsell-card:hover .bndp-upsell-price { color: #fff; }

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

.bndp-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;
}
.bndp-upsell-card.recommended:hover .bndp-upsell-badge {
	background: #fff;
	color: var(--bn-blue);
}

.bndp-upsell-icon {
	font-size: 2rem;
	display: flex;
	align-items: center;
	gap: 3px;
	justify-content: center;
	margin-bottom: 8px;
}
.bndp-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;
}
.bndp-upsell-price {
	font-family: 'Nunito', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--bn-blue);
	display: block;
	transition: color 0.18s;
}
.bndp-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;
}
.bndp-upsell-card:hover .bndp-upsell-diff {
	background: rgba(255,255,255,0.25);
	color: #fff;
}

.bndp-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;
}
.bndp-upsell-back:hover { background: var(--bn-blue-dark) !important; color: #fff !important; }

/* ═══ TRIGGER BUTTON ════════════════════════════════════════════════════════════ */
.bndp-trigger.bk-shortdesc-btn,
.bk-shortdesc-btn.bndp-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;
}
.bndp-trigger.bk-shortdesc-btn:hover,
.bk-shortdesc-btn.bndp-trigger:hover {
	background: #80c0d8 !important;
	color: #ffffff !important;
}
