/* Armador de kits Muvap - Tema Claro & Experiencia Guiada.
   Todo va bajo .muvap-kb con variables propias, respetando la estética clara de Muvap. */

.muvap-kb {
	--kb-bg: #f8fafc;
	--kb-panel: #ffffff;
	--kb-card: #ffffff;
	--kb-card-hover: #f1f5f9;
	--kb-line: #e2e8f0;
	--kb-line-strong: #cbd5e1;
	--kb-lime: #16a34a;
	--kb-lime-hover: #15803d;
	--kb-lime-light: #dcfce7;
	--kb-amber: #d97706;
	--kb-amber-light: #fef3c7;
	--kb-red: #dc2626;
	--kb-red-light: #fee2e2;
	--kb-text: #0f172a;
	--kb-text-secondary: #334155;
	--kb-mute: #64748b;
	--kb-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--kb-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	--kb-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
	--kb-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

	/* Ancho completo responsivo y centrado sin interferir con position: fixed */
	position: relative;
	width: 100% !important;
	max-width: 1540px !important;
	margin: 0 auto !important;
	box-sizing: border-box;
	background: var(--kb-bg);
	color: var(--kb-text);
	padding: 1.5rem 1rem 6rem;
	line-height: 1.45;
	font-family: inherit;
}

html:has(.muvap-kb),
body:has(.muvap-kb) {
	overflow-x: clip;
}

.muvap-kb *,
.muvap-kb *::before,
.muvap-kb *::after {
	box-sizing: border-box;
}

.muvap-kb button,
.muvap-kb input,
.muvap-kb select {
	font: inherit;
	color: inherit;
}

.muvap-kb :is(button, a, input, select, [tabindex]):focus-visible {
	outline: 2px solid var(--kb-lime);
	outline-offset: 2px;
}

.kb-wrap {
	max-width: 1500px;
	margin: 0 auto;
	width: 100%;
}

.kb-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- cabecera ---------- */
.kb-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.kb-eyebrow {
	margin: 0 0 0.25rem;
	font: 600 0.75rem var(--kb-mono);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kb-lime);
}

.kb-title {
	margin: 0;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	line-height: 1.1;
	color: var(--kb-text);
}

.kb-assistant-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.1rem;
	background: #ffffff;
	border: 1.5px solid var(--kb-lime);
	border-radius: 9999px;
	color: var(--kb-lime);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.2s ease;
}

.kb-assistant-trigger:hover {
	background: var(--kb-lime-light);
	transform: translateY(-1px);
	box-shadow: var(--kb-shadow-md);
}

.kb-h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 750;
	line-height: 1.2;
	color: var(--kb-text);
}

.kb-h4 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--kb-text);
}

.kb-mute {
	margin: 0.2rem 0 0;
	color: var(--kb-mute);
	font-size: 0.88rem;
}

.kb-lime {
	color: var(--kb-lime);
	font-weight: 700;
}

.kb-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	width: 100%;
}

@media (min-width: 1400px) {
	.muvap-kb {
		padding-bottom: 3rem;
	}

	.kb-grid {
		grid-template-columns: 210px minmax(0, 1fr) 330px;
		align-items: start;
	}
}

/* ---------- pasos (sidebar / barra superior en mobile) ---------- */
.kb-steps {
	order: 0;
	width: 100%;
}

.kb-steps__list {
	display: flex;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.kb-step {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.65rem 0.8rem;
	background: var(--kb-panel);
	border: 1px solid var(--kb-line);
	border-radius: 8px;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.15s ease;
}

.kb-step:hover {
	background: var(--kb-card-hover);
	border-color: var(--kb-line-strong);
}

.kb-step.is-current {
	background: #ffffff;
	border-color: var(--kb-lime);
	box-shadow: 0 0 0 1px var(--kb-lime), var(--kb-shadow-sm);
}

.kb-step strong {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--kb-text);
}

.kb-step small {
	display: block;
	color: var(--kb-mute);
	font-size: 0.72rem;
}

.kb-step__n {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border: 1.5px solid var(--kb-line-strong);
	border-radius: 50%;
	font: 700 0.75rem var(--kb-mono);
	color: var(--kb-mute);
	background: #f8fafc;
	transition: all 0.15s ease;
}

.kb-step.is-current .kb-step__n {
	border-color: var(--kb-lime);
	color: var(--kb-lime);
	background: var(--kb-lime-light);
}

.kb-step__n.is-done {
	background: var(--kb-lime);
	border-color: var(--kb-lime);
	color: #ffffff;
}

@media (min-width: 1400px) {
	.kb-steps {
		position: sticky;
		top: 1rem;
	}

	.kb-steps__list {
		flex-direction: column;
		overflow: visible;
		gap: 0.5rem;
	}

	.kb-step {
		white-space: normal;
	}
}

/* ---------- panel central ---------- */
.kb-main {
	order: 1;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.25rem;
}

.kb-main > * {
	min-width: 0;
}

.kb-presets {
	display: flex;
	min-width: 0;
	max-width: 100%;
	gap: 0.5rem;
	overflow-x: auto;
	padding-bottom: 0.25rem;
}

.kb-preset {
	flex: none;
	padding: 0.55rem 0.9rem;
	text-align: left;
	background: var(--kb-panel);
	border: 1px solid var(--kb-line);
	border-radius: 8px;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.15s ease;
}

.kb-preset:hover {
	border-color: var(--kb-lime);
	background: var(--kb-lime-light);
	transform: translateY(-1px);
}

.kb-preset strong {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--kb-text);
}

.kb-preset small {
	display: block;
	color: var(--kb-mute);
	font-size: 0.72rem;
}

.kb-preset--ghost {
	background: transparent;
	border-style: dashed;
	color: var(--kb-mute);
	align-self: stretch;
}

/* ---------- escena SVG del escritorio ---------- */
.kb-scene-box {
	background: var(--kb-panel);
	border: 1px solid var(--kb-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--kb-shadow-sm);
}

.kb-scene-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.6rem 1rem;
	background: #f1f5f9;
	border-bottom: 1px solid var(--kb-line);
	font: 700 0.72rem var(--kb-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kb-mute);
}

.kb-scene-bar .kb-device-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	background: #ffffff;
	padding: 0.2rem 0.5rem;
	border-radius: 6px;
	border: 1px solid var(--kb-line);
	font-size: 0.75rem;
	cursor: pointer;
	text-transform: none;
	letter-spacing: 0;
	color: var(--kb-text);
	font-weight: 600;
}

.kb-scene-bar .kb-device-toggle:hover {
	border-color: var(--kb-lime);
	color: var(--kb-lime);
}

.kb-scene {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	background: #f8fafc;
}

/* Estilos de elementos SVG en tema claro */
.kb-wall { fill: #f1f5f9; }
.kb-wave { fill: none; stroke: var(--kb-lime); stroke-opacity: 0.25; stroke-width: 2; }
.kb-wave--2 { stroke-opacity: 0.12; }
.kb-wood { fill: #c89666; }
.kb-wood-edge { fill: #a27244; }
.kb-leg { fill: #64748b; }
.kb-metal { fill: #475569; stroke: #334155; }
.kb-dark { fill: #1e293b; stroke: #0f172a; }
.kb-edge-line { stroke: #cbd5e1; }
.kb-arm { fill: none; stroke: #64748b; stroke-width: 3; stroke-linecap: round; }
.kb-lamp { fill: #fef08a; stroke: #eab308; }
.kb-stand { fill: #64748b; opacity: 0.65; }
.kb-stand-top { fill: #475569; }
.kb-screen { fill: #0f172a; stroke: #334155; stroke-width: 2; }
.kb-screen-text { fill: #94a3b8; font: 11px var(--kb-mono); }
.kb-lens { fill: #0284c7; stroke: #38bdf8; stroke-width: 0.8; }
.kb-pad { fill: #334155; stroke: #475569; }
.kb-band { fill: none; stroke: #475569; stroke-width: 4; }
.kb-cup { fill: #16a34a; stroke: #15803d; }
.kb-play { stroke: #0284c7; stroke-width: 1.8; }

.kb-slot {
	cursor: pointer;
	outline: none;
	pointer-events: all;
}

.kb-slot * {
	pointer-events: all;
}

.kb-slot:focus-visible {
	filter: drop-shadow(0 0 6px rgba(22, 163, 74, 0.8));
}

.kb-slot.is-active.is-filled > :not(title) {
	filter: drop-shadow(0 0 4px rgba(22, 163, 74, 0.7));
}

.kb-ghost * {
	fill: rgba(22, 163, 74, 0.05);
	stroke: var(--kb-lime);
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
	opacity: 0.55;
	pointer-events: all;
	transition: opacity 0.15s ease, fill 0.15s ease, stroke-width 0.15s ease;
}

.kb-slot:hover .kb-ghost *,
.kb-slot.is-active .kb-ghost * {
	fill: rgba(22, 163, 74, 0.2);
	opacity: 1;
	stroke-width: 2;
}

.kb-slot.is-active .kb-ghost * {
	animation: kb-dash 1.4s linear infinite;
}

@keyframes kb-dash {
	to { stroke-dashoffset: -16; }
}

@media (prefers-reduced-motion: reduce) {
	.kb-slot.is-active .kb-ghost * { animation: none; }
}

/* ---------- cabecera del paso & filtros ---------- */
.kb-stephead {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
}

.kb-nav {
	display: flex;
	gap: 0.4rem;
}

.kb-icon-btn {
	width: 2.4rem;
	height: 2.4rem;
	background: #ffffff;
	border: 1px solid var(--kb-line);
	border-radius: 6px;
	font-size: 1.2rem;
	color: var(--kb-text);
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.15s ease;
}

.kb-icon-btn:disabled { opacity: 0.35; cursor: default; }
.kb-icon-btn:not(:disabled):hover { background: var(--kb-card-hover); border-color: var(--kb-line-strong); }

.kb-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.kb-input,
.kb-select {
	height: 2.6rem;
	padding: 0 0.8rem;
	background: #ffffff;
	border: 1px solid var(--kb-line);
	border-radius: 8px;
	color: var(--kb-text);
	box-shadow: var(--kb-shadow-sm);
	font-size: 0.9rem;
}

.kb-input:focus,
.kb-select:focus {
	border-color: var(--kb-lime);
}

.kb-input { flex: 1 1 220px; }

.kb-slotsec { margin-bottom: 1.5rem; }

/* ---------- tarjetas de productos ---------- */
.kb-cards {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kb-card {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.75rem 0.9rem;
	background: #ffffff;
	border: 1px solid var(--kb-line);
	border-radius: 10px;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.15s ease;
}

.kb-card:hover {
	background: #ffffff;
	border-color: var(--kb-line-strong);
	box-shadow: var(--kb-shadow-md);
}

.kb-card.is-on {
	border-color: var(--kb-lime);
	background: rgba(22, 163, 74, 0.04);
	box-shadow: 0 0 0 1px var(--kb-lime), var(--kb-shadow-sm);
}

.kb-card.is-out { opacity: 0.6; }

.kb-card__img {
	flex: none;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	background: #f8fafc;
	border: 1px solid var(--kb-line);
	border-radius: 8px;
	overflow: hidden;
	color: var(--kb-mute);
	cursor: zoom-in;
}

.kb-card__img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.2s ease;
}

.kb-card__img:hover img {
	transform: scale(1.08);
}

.kb-card__img-zoom-hint {
	position: absolute;
	right: 3px;
	bottom: 3px;
	background: rgba(15, 23, 42, 0.7);
	color: #ffffff;
	border-radius: 4px;
	padding: 2px 4px;
	font-size: 10px;
	line-height: 1;
	opacity: 0;
	transition: opacity 0.15s ease;
	pointer-events: none;
}

.kb-card__img:hover .kb-card__img-zoom-hint {
	opacity: 1;
}

.kb-card__body { min-width: 0; flex: 1; }

.kb-card__name {
	color: var(--kb-text);
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.kb-card__name:hover { color: var(--kb-lime); text-decoration: underline; }

.kb-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }

.kb-badge {
	padding: 0.12rem 0.45rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 700;
}

.kb-badge--play { background: #e0f2fe; color: #0369a1; }
.kb-badge--pro { background: #1e293b; color: #fde68a; }
.kb-badge--out { background: var(--kb-red-light); color: var(--kb-red); }
.kb-badge--low { background: var(--kb-amber-light); color: var(--kb-amber); }

.kb-card__buy { flex: none; text-align: right; }

.kb-price {
	display: block;
	font: 700 1rem var(--kb-mono);
	color: var(--kb-text);
}

.kb-add {
	margin-top: 0.35rem;
	min-height: 2.2rem;
	padding: 0 0.9rem;
	background: #ffffff;
	border: 1.5px solid var(--kb-lime);
	border-radius: 6px;
	color: var(--kb-lime);
	font-weight: 700;
	font-size: 0.82rem;
	cursor: pointer;
	transition: all 0.15s ease;
}

.kb-add:hover:not(:disabled) {
	background: var(--kb-lime-light);
}

.kb-add.is-on {
	background: var(--kb-lime);
	color: #ffffff;
	border-color: var(--kb-lime);
}

.kb-add:disabled { opacity: 0.5; cursor: not-allowed; }

.kb-empty {
	margin: 0;
	padding: 1.2rem;
	background: #ffffff;
	border: 1px dashed var(--kb-line-strong);
	border-radius: 8px;
	color: var(--kb-mute);
	font-size: 0.9rem;
	text-align: center;
}

.kb-empty--big { padding: 3rem 1.5rem; text-align: center; grid-column: 1 / -1; }

/* ---------- ticket (resumen lateral) ---------- */
.kb-ticket {
	background: var(--kb-panel);
	border: 1px solid var(--kb-line);
	border-radius: 12px;
	padding: 1.25rem;
	display: grid;
	gap: 1rem;
	box-shadow: var(--kb-shadow-sm);
	box-sizing: border-box;
}

.kb-ticket__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
}

.kb-ticket__top h3 {
	margin: 0;
}

.kb-ticket-close {
	display: none;
	background: transparent;
	border: 0;
	font-size: 1.6rem;
	color: var(--kb-mute);
	cursor: pointer;
	padding: 0.2rem 0.6rem;
	border-radius: 6px;
	line-height: 1;
}

.kb-ticket-close:hover {
	color: var(--kb-text);
	background: var(--kb-card-hover);
}

@media (min-width: 1400px) {
	.kb-ticket {
		order: 2;
		position: sticky;
		top: 1rem;
		display: grid !important;
	}
	.kb-bar { display: none !important; }
}

@media (max-width: 1399px) {
	.kb-ticket {
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: auto;
		width: 100%;
		max-width: 440px;
		z-index: 10001;
		background: #ffffff;
		box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
		border-left: 1px solid var(--kb-line);
		border-radius: 16px 0 0 16px;
		padding: 1.5rem;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kb-ticket.is-open {
		display: grid;
		animation: kbSlideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.kb-ticket-close {
		display: block;
	}
}

@keyframes kbSlideInRight {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}

.kb-lines { display: grid; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }

.kb-lines li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 0.6rem;
	padding: 0.6rem 0.75rem;
	background: #f8fafc;
	border: 1px solid var(--kb-line);
	border-radius: 6px;
	font-size: 0.88rem;
}

.kb-lines small { display: block; color: var(--kb-mute); font-size: 0.72rem; }
.kb-lines b { font: 700 0.88rem var(--kb-mono); color: var(--kb-text); }

.kb-x {
	width: 1.8rem;
	height: 1.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--kb-mute);
	font-size: 1.2rem;
	cursor: pointer;
	border-radius: 4px;
}

.kb-x:hover { background: #fee2e2; color: #dc2626; }

.kb-ship { display: grid; gap: 0.7rem; padding-top: 0.9rem; border-top: 1px solid var(--kb-line); }
.kb-ship__top { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.8rem; margin-bottom: 0.2rem; font-weight: 500; }
.kb-progress { height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.kb-progress > div { height: 100%; background: var(--kb-lime); transition: width 0.25s; }

.kb-total { padding-top: 0.9rem; border-top: 1px solid var(--kb-line); }
.kb-total__row { display: flex; justify-content: space-between; align-items: baseline; }
.kb-total__row strong { font: 700 1.6rem var(--kb-mono); color: var(--kb-text); }
.kb-transfer { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--kb-lime); font-weight: 600; }

.kb-msg {
	padding: 0.85rem;
	border: 1px solid rgba(22, 163, 74, 0.4);
	background: var(--kb-lime-light);
	border-radius: 8px;
	font-size: 0.88rem;
	color: #14532d;
}

.kb-msg.is-warn { border-color: rgba(217, 119, 6, 0.5); background: var(--kb-amber-light); color: #78350f; }
.kb-link { color: var(--kb-lime); font-weight: 700; text-decoration: underline; }

.kb-cta {
	min-height: 3.2rem;
	padding: 0 1.2rem;
	background: var(--kb-lime);
	border: 0;
	border-radius: 8px;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 750;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.2s ease;
}

.kb-cta:hover:not(:disabled) {
	background: var(--kb-lime-hover);
	transform: translateY(-1px);
	box-shadow: var(--kb-shadow-md);
}
.kb-cta:disabled { opacity: 0.45; cursor: not-allowed; }

.kb-reset-link {
	display: inline-block;
	background: transparent;
	border: 0;
	color: var(--kb-mute);
	font-size: 0.8rem;
	cursor: pointer;
	text-decoration: underline;
	margin-top: 0.5rem;
	text-align: center;
	width: 100%;
	padding: 0.3rem;
	transition: color 0.15s ease;
}

.kb-reset-link:hover {
	color: var(--kb-red, #dc2626);
}

.kb-bar {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 9999;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 0.8rem 1.2rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
	background: #ffffff;
	border-top: 1px solid var(--kb-line);
	box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1400px) {
	.kb-bar {
		display: none !important;
	}
}

.kb-bar small { display: block; color: var(--kb-mute); font-size: 0.75rem; }
.kb-bar strong { font: 700 1.2rem var(--kb-mono); color: var(--kb-text); }
.kb-cta--bar { min-width: 8rem; }

/* Barra de envío gratis: fila completa arriba de la barra fija */
.kb-bar__ship { flex: 1 1 100%; order: -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; min-width: 0; }
.kb-bar__ship > span { font-size: 0.78rem; color: var(--kb-text-secondary); }
.kb-bar__ship > span b { font-family: var(--kb-mono); color: var(--kb-text); }
.kb-bar__ship.is-done > span { color: var(--kb-lime); font-weight: 700; }
.kb-bar__ship .kb-progress { height: 6px; }
.kb-bar__nudge { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; width: 100%; min-height: 40px; padding: 0.35rem 0.75rem; background: var(--kb-lime-light); border: 1.5px dashed var(--kb-lime); border-radius: 8px; color: var(--kb-text); font-size: 0.82rem; font-weight: 700; cursor: pointer; text-align: left; }
.kb-bar__nudge span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-bar__nudge b { flex: none; font-family: var(--kb-mono); color: var(--kb-lime-hover); }

/* Minimized bar state: hide summary details, compress layout */
.kb-bar.is-minimized {
	padding: 0.5rem 1.2rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
	gap: 0.6rem;
}

.kb-bar.is-minimized small {
	display: none;
}

.kb-bar.is-minimized > .kb-bar__sum {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	min-width: 0;
}

.kb-bar.is-minimized > .kb-bar__sum strong {
	font-size: 0.95rem;
}

.kb-bar.is-minimized .kb-cta--bar {
	min-width: 7rem;
	min-height: 2.2rem;
	padding: 0 0.9rem;
	font-size: 0.82rem;
}

.muvap-kb__noscript { padding: 1rem; }

/* ========================================================================
   MODAL DE ONBOARDING / ASISTENTE VISUAL
   ======================================================================== */
.kb-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(5px);
	z-index: 10000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 1.25rem 1rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	animation: kbFadeIn 0.2s ease;
}

@keyframes kbFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.kb-quiz-modal {
	background: #ffffff;
	width: 100%;
	max-width: 680px;
	border-radius: 16px;
	box-shadow: var(--kb-shadow-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2.5rem);
	margin-top: 0.75rem;
	margin-bottom: 1.5rem;
	animation: kbSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kbSlideUp {
	from { transform: translateY(20px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.kb-quiz-head {
	padding: 1.5rem 1.75rem 1rem;
	border-bottom: 1px solid var(--kb-line);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.kb-quiz-head h3 {
	margin: 0 0 0.25rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--kb-text);
}

.kb-quiz-progress {
	display: flex;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.kb-quiz-step-bar {
	height: 4px;
	flex: 1;
	background: var(--kb-line);
	border-radius: 999px;
	transition: background 0.2s ease;
}

.kb-quiz-step-bar.is-active {
	background: var(--kb-lime);
}

.kb-quiz-close {
	background: transparent;
	border: 0;
	font-size: 1.5rem;
	color: var(--kb-mute);
	cursor: pointer;
	padding: 0.2rem;
	border-radius: 6px;
}
.kb-quiz-close:hover { color: var(--kb-text); background: var(--kb-card-hover); }

.kb-quiz-body {
	padding: 1.5rem 1.75rem;
	overflow-y: auto;
	flex: 1;
}

.kb-quiz-question-title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 750;
	color: var(--kb-text);
}

.kb-quiz-question-sub {
	margin: 0 0 1.25rem;
	font-size: 0.88rem;
	color: var(--kb-mute);
}

.kb-quiz-options {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 600px) {
	.kb-quiz-options {
		grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	}
}

@media (max-width: 640px) {
	.kb-modal-overlay {
		padding: 0.5rem 0.5rem 1.5rem;
		align-items: flex-start;
	}
	.kb-quiz-modal,
	.kb-zoom-modal {
		margin-top: 0.25rem;
		margin-bottom: 0.5rem;
		max-height: calc(100vh - 1.25rem);
		border-radius: 12px;
	}
	.kb-quiz-head {
		padding: 1rem 1.15rem 0.75rem;
	}
	.kb-quiz-head h3 {
		font-size: 1.15rem;
	}
	.kb-quiz-body {
		padding: 1rem 1.15rem;
	}
	.kb-quiz-foot {
		padding: 0.9rem 1.15rem;
	}
}

.kb-quiz-opt {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.1rem;
	background: #ffffff;
	border: 2px solid var(--kb-line);
	border-radius: 12px;
	cursor: pointer;
	text-align: left;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.2s ease;
}

.kb-quiz-opt:hover {
	border-color: var(--kb-line-strong);
	background: #f8fafc;
	transform: translateY(-2px);
}

.kb-quiz-opt.is-selected {
	border-color: var(--kb-lime);
	background: var(--kb-lime-light);
	box-shadow: 0 0 0 1px var(--kb-lime), var(--kb-shadow-sm);
}

.kb-quiz-opt__icon {
	font-size: 2rem;
	margin-bottom: 0.6rem;
	line-height: 1;
}

.kb-quiz-opt strong {
	font-size: 0.95rem;
	font-weight: 750;
	color: var(--kb-text);
	margin-bottom: 0.25rem;
}

.kb-quiz-opt small {
	font-size: 0.78rem;
	color: var(--kb-mute);
	line-height: 1.35;
}

.kb-quiz-foot {
	padding: 1.25rem 1.75rem;
	border-top: 1px solid var(--kb-line);
	background: #f8fafc;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.kb-btn-sec {
	background: transparent;
	border: 1px solid var(--kb-line-strong);
	color: var(--kb-text-secondary);
	font-weight: 600;
	padding: 0.65rem 1.1rem;
	border-radius: 8px;
	cursor: pointer;
}
.kb-btn-sec:hover { background: #ffffff; border-color: var(--kb-text); }

.kb-btn-pri {
	background: var(--kb-lime);
	color: #ffffff;
	font-weight: 750;
	border: 0;
	padding: 0.7rem 1.4rem;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.2s ease;
}
.kb-btn-pri:hover { background: var(--kb-lime-hover); transform: translateY(-1px); }

/* ========================================================================
   MODAL DE ZOOM DE FOTOS
   ======================================================================== */
.kb-zoom-modal {
	background: #ffffff;
	width: 100%;
	max-width: 520px;
	border-radius: 16px;
	box-shadow: var(--kb-shadow-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2.5rem);
	margin-top: 0.75rem;
	margin-bottom: 1.5rem;
	animation: kbSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-zoom-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--kb-line);
}

.kb-zoom-head h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 750;
	color: var(--kb-text);
}

.kb-zoom-img-box {
	position: relative;
	width: 100%;
	height: 340px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.kb-zoom-img-box img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.kb-zoom-info {
	padding: 1.25rem;
	border-top: 1px solid var(--kb-line);
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.kb-zoom-title {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	font-weight: 750;
	color: var(--kb-text);
	line-height: 1.35;
}

.kb-zoom-desc {
	font-size: 0.88rem;
	color: var(--kb-text-secondary);
	line-height: 1.5;
}

.kb-zoom-desc p {
	margin: 0 0 0.5rem;
}

.kb-zoom-desc p:last-child {
	margin-bottom: 0;
}

.kb-zoom-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 0.85rem;
	border-top: 1px solid #f1f5f9;
}

.kb-zoom-price-box strong {
	font: 700 1.2rem var(--kb-mono);
	display: block;
	color: var(--kb-text);
}

.kb-zoom-price-box small {
	color: var(--kb-lime);
	font-weight: 600;
	font-size: 0.8rem;
}

/* ---------- Presets con Badges de Descuento ---------- */
.kb-preset {
	position: relative;
	transition: all 0.2s ease;
}

.kb-preset.is-active {
	border-color: var(--kb-lime) !important;
	background: #f0fdf4 !important;
	box-shadow: 0 0 0 1.5px var(--kb-lime) inset;
}

.kb-preset__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	width: 100%;
}

.kb-preset__badge {
	display: inline-block;
	padding: 0.15rem 0.45rem;
	font: 700 0.68rem var(--kb-mono);
	background: #dcfce7;
	color: #15803d;
	border-radius: 9999px;
	border: 1px solid #bbf7d0;
	letter-spacing: 0.02em;
}

/* ---------- Gamificación & Widget de Promociones ---------- */
.kb-promo-widget {
	margin: 0.85rem 0;
}

.kb-promo-box {
	padding: 0.9rem;
	border-radius: 12px;
	border: 1.5px solid var(--kb-line);
	background: #ffffff;
	box-shadow: var(--kb-shadow-sm);
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-promo-box.is-idle {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.kb-promo-box.is-progress {
	background: #fefce8;
	border-color: #fde047;
}

.kb-promo-box.is-unlocked.is-basic {
	background: #f0fdf4;
	border-color: #86efac;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.08);
	animation: kbPopIn 0.3s ease;
}

.kb-promo-box.is-unlocked.is-premium {
	background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
	border-color: #c084fc;
	box-shadow: 0 4px 14px rgba(147, 51, 234, 0.12);
	animation: kbPopIn 0.3s ease;
}

@keyframes kbPopIn {
	0% { transform: scale(0.97); opacity: 0.8; }
	100% { transform: scale(1); opacity: 1; }
}

.kb-promo-head {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
}

.kb-promo-icon {
	font-size: 1.35rem;
	line-height: 1;
	flex-shrink: 0;
}

.kb-promo-head strong {
	font-size: 0.92rem;
	font-weight: 750;
	color: var(--kb-text);
	display: block;
	line-height: 1.3;
}

.kb-promo-text {
	margin: 0.35rem 0 0.5rem;
	font-size: 0.82rem;
	color: var(--kb-text-secondary);
	line-height: 1.4;
}

.kb-promo-hint {
	margin: 0.2rem 0 0;
	font-size: 0.82rem;
	color: #854d0e;
	line-height: 1.35;
}

.kb-promo-bar-track {
	width: 100%;
	height: 7px;
	background: #e2e8f0;
	border-radius: 9999px;
	overflow: hidden;
	margin-top: 0.55rem;
}

.kb-promo-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #16a34a, #22c55e);
	border-radius: 9999px;
	transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-promo-tag {
	display: inline-block;
	margin-bottom: 0.25rem;
	padding: 0.15rem 0.5rem;
	font: 750 0.68rem var(--kb-mono);
	border-radius: 9999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.kb-promo-tag--basic {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

.kb-promo-tag--premium {
	background: #7e22ce;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(126, 34, 206, 0.25);
}

.kb-promo-saved {
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: #15803d;
	font-weight: 600;
}

.is-premium .kb-promo-saved {
	color: #6b21a8;
}

.kb-promo-upsell {
	margin: 0.6rem 0 0;
	padding-top: 0.5rem;
	border-top: 1px dashed #bbf7d0;
	font-size: 0.78rem;
	color: #166534;
	line-height: 1.35;
}

/* ---------- Totales y Resumen del Kit ---------- */
.kb-total__subtotal span,
.kb-total__subtotal s {
	color: var(--kb-mute);
	font-size: 0.88rem;
}

.kb-total__discount {
	color: var(--kb-lime);
	font-weight: 700;
}

.kb-bar-promo-tag {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.35rem;
	font: 700 0.7rem var(--kb-mono);
	background: #dcfce7;
	color: #15803d;
	border-radius: 4px;
}

/* ---------- acordeones mobile (pasos y kits prearmados) ---------- */
.kb-acc__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.75rem 0.9rem;
	background: var(--kb-panel);
	border: 1px solid var(--kb-line);
	border-radius: 10px;
	text-align: left;
	cursor: pointer;
	box-shadow: var(--kb-shadow-sm);
}

.kb-acc__head > div { flex: 1; min-width: 0; }

.kb-acc__head strong {
	display: block;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--kb-text);
}

.kb-acc__head small {
	display: block;
	color: var(--kb-mute);
	font-size: 0.75rem;
}

.kb-acc__ico { flex: none; font-size: 1.3rem; }

.kb-acc__chev {
	flex: none;
	color: var(--kb-mute);
	transition: transform 0.2s ease;
}

.kb-acc.is-open > .kb-acc__head {
	border-color: var(--kb-lime);
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.kb-acc.is-open .kb-acc__chev { transform: rotate(180deg); }

.kb-acc--steps .kb-acc__head > .kb-step__n {
	border-color: var(--kb-lime);
	color: var(--kb-lime);
	background: var(--kb-lime-light);
}

@media (max-width: 1399px) {
	.kb-acc__body {
		display: none;
		padding: 0.5rem;
		background: var(--kb-panel);
		border: 1px solid var(--kb-lime);
		border-top: 0;
		border-radius: 0 0 10px 10px;
	}

	.kb-acc.is-open > .kb-acc__body { display: block; }

	.kb-acc .kb-steps__list {
		flex-direction: column;
		overflow: visible;
		gap: 0.4rem;
	}

	.kb-acc .kb-step { box-shadow: none; }

	.kb-acc .kb-presets {
		flex-direction: column;
		overflow: visible;
		padding-bottom: 0;
	}

	.kb-acc .kb-preset {
		flex: 1 1 auto;
		width: 100%;
		box-shadow: none;
	}

	.kb-acc .kb-preset small { white-space: normal; }
}

@media (min-width: 1400px) {
	.kb-acc__head { display: none; }
}

.kb-scene-bar > span { min-width: 0; }
@media (max-width: 640px) {
	.kb-scene-bar { padding: 0.5rem 0.75rem; letter-spacing: 0.04em; }
	.kb-add, .kb-cta { min-height: 44px; }
}

/* ---------- blindaje de acordeones frente a estilos de botón del tema padre ---------- */
.muvap-kb .kb-acc > button.kb-acc__head {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 0.75rem !important;
	width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.75rem 0.9rem !important;
	background: var(--kb-panel) !important;
	color: var(--kb-text) !important;
	border: 1px solid var(--kb-line) !important;
	border-radius: 10px !important;
	box-shadow: var(--kb-shadow-sm) !important;
	text-align: left !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.35 !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	white-space: normal !important;
}

.muvap-kb .kb-acc.is-open > button.kb-acc__head {
	border-color: var(--kb-lime) !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
}

.muvap-kb .kb-acc__head > div {
	display: block !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	text-align: left !important;
}

.muvap-kb .kb-acc__head strong,
.muvap-kb .kb-acc__head small {
	display: block !important;
}

.muvap-kb .kb-acc__head .kb-acc__chev,
.muvap-kb .kb-acc__head .kb-acc__ico,
.muvap-kb .kb-acc__head .kb-step__n {
	flex: none !important;
}

@media (max-width: 1399px) {
	.muvap-kb .kb-acc > .kb-acc__body { display: none !important; }
	.muvap-kb .kb-acc.is-open > .kb-acc__body { display: block !important; }
}

@media (min-width: 1400px) {
	.muvap-kb .kb-acc > button.kb-acc__head { display: none !important; }
	.muvap-kb .kb-acc > .kb-acc__body { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
}

/* ---------- contencion de ancho: nada dentro del armador puede desbordar la pantalla ---------- */
.muvap-kb .kb-wrap,
.muvap-kb .kb-grid,
.muvap-kb .kb-main,
.muvap-kb .kb-main > * {
	min-width: 0 !important;
	max-width: 100% !important;
}

.muvap-kb .kb-grid { grid-template-columns: minmax(0, 1fr); }

@media (min-width: 1400px) {
	.muvap-kb .kb-grid { grid-template-columns: 210px minmax(0, 1fr) 330px; }
}

.muvap-kb .kb-scene-box,
.muvap-kb .kb-scene { width: 100% !important; max-width: 100% !important; }

/* ---------- mini-escena fija en mobile ---------- */
.kb-scene-actions { display: inline-flex; gap: 0.4rem; align-items: center; }

@media (max-width: 1399px) {
	/* overflow: clip no crea contenedor de scroll, asi sticky funciona dentro de .kb-main */
	.muvap-kb .kb-main { overflow: clip !important; }

	.muvap-kb .kb-scene-box {
		position: sticky;
		top: var(--kb-sticky-top, 0.5rem);
		z-index: 20;
		box-shadow: var(--kb-shadow-lg);
	}

	.muvap-kb [data-el="stephead"] { scroll-margin-top: 200px; }

	.muvap-kb .kb-scene-box:not(.is-expanded) .kb-scene-bar { padding: 0.35rem 0.6rem; }
	.muvap-kb .kb-scene-box:not(.is-expanded) .kb-scene-bar > span:first-child { display: none; }
	.muvap-kb .kb-scene-box:not(.is-expanded) .kb-scene-actions { width: 100%; justify-content: space-between; }
	.muvap-kb .kb-scene-box:not(.is-expanded) .kb-scene { height: 115px !important; width: 100% !important; }
}

@media (min-width: 1400px) {
	.muvap-kb .kb-scene-toggle { display: none !important; }
}

/* ---------- tarjetas de producto: nunca mas anchas que el panel ---------- */
.muvap-kb .kb-cards { grid-template-columns: minmax(0, 1fr) !important; }

.muvap-kb .kb-slotsec,
.muvap-kb .kb-cards,
.muvap-kb .kb-card {
	min-width: 0 !important;
	max-width: 100% !important;
}

.muvap-kb .kb-card__name {
	overflow-wrap: anywhere;
}

@media (max-width: 1399px) {
	/* sin franja clara a los costados del dibujo compacto */
	.muvap-kb .kb-scene-box:not(.is-expanded) { background: #f1f5f9; }
	.muvap-kb .kb-scene-box:not(.is-expanded) .kb-scene { background: transparent; }
}

/* en pantallas angostas el precio y el boton van debajo del nombre */
@media (max-width: 520px) {
	.muvap-kb .kb-card { flex-wrap: wrap; align-items: flex-start; }

	.muvap-kb .kb-card__body { flex: 1 1 0; min-width: 0 !important; }

	.muvap-kb .kb-card__buy {
		flex: 1 1 100% !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		text-align: left;
	}

	.muvap-kb .kb-card__buy .kb-add { flex: none; margin: 0; }
}

/* ---------- mobile: buscador colapsado, pie de paso y asistente destacado ---------- */
.muvap-kb .kb-filter-toggle { display: none; }

.muvap-kb .kb-stepfoot { margin-top: 1rem; }

.muvap-kb button.kb-stepfoot__btn {
	display: block !important;
	width: 100% !important;
	padding: 0.85rem 1rem !important;
	min-height: 48px;
	background: #ffffff !important;
	color: var(--kb-mute) !important;
	border: 1.5px dashed var(--kb-line-strong) !important;
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	font-family: inherit !important;
	text-align: center !important;
	cursor: pointer;
}

.muvap-kb button.kb-stepfoot__btn.is-primary {
	background: var(--kb-lime) !important;
	color: #ffffff !important;
	border: 1.5px solid var(--kb-lime) !important;
	box-shadow: var(--kb-shadow-md) !important;
}

.muvap-kb .kb-at__txt small { display: none; }

@media (max-width: 1399px) {
	.muvap-kb .kb-filter-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
	.muvap-kb .kb-filter-toggle.is-on { border-color: var(--kb-lime) !important; background: var(--kb-lime-light) !important; }
	.muvap-kb .kb-filters { display: none !important; }
	.muvap-kb .kb-filters.is-open { display: flex !important; }
}

@media (max-width: 640px) {
	.muvap-kb .kb-head { display: block; }

	.muvap-kb button.kb-assistant-trigger {
		display: flex !important;
		align-items: center !important;
		gap: 0.75rem !important;
		width: 100% !important;
		margin-top: 0.85rem !important;
		padding: 0.8rem 1rem !important;
		background: var(--kb-lime-light) !important;
		border: 1.5px solid var(--kb-lime) !important;
		border-radius: 14px !important;
		text-align: left !important;
		color: var(--kb-text) !important;
	}

	.muvap-kb .kb-at__ico { flex: none; font-size: 1.4rem; }
	.muvap-kb .kb-at__txt { display: block; min-width: 0; }
	.muvap-kb .kb-at__txt b { display: block; font-size: 0.95rem; color: var(--kb-lime-hover); }
	.muvap-kb .kb-at__txt small { display: block; font-size: 0.78rem; color: var(--kb-text-secondary); font-weight: 400; line-height: 1.3; }
}

/* pie de paso: Atras / Siguiente */
.muvap-kb .kb-stepfoot { display: flex; gap: 0.6rem; }

.muvap-kb button.kb-stepfoot__btn { width: auto !important; flex: 1 1 0; min-width: 0; line-height: 1.25 !important; }

.muvap-kb button.kb-stepfoot__btn--back { flex: 0 0 auto; padding-left: 1.1rem !important; padding-right: 1.1rem !important; }

.muvap-kb button.kb-stepfoot__btn--next { flex: 1 1 0; }

.muvap-kb button.kb-stepfoot__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none !important;
}

/* Joinchat (WhatsApp) se ancla con --bottom; se sube para no quedar tapado por la barra fija del kit (solo mobile, en desktop la barra no existe). */
@media (max-width: 1399px) {
	body:has(.muvap-kb) .joinchat {
		--bottom: calc(var(--kb-bar-h, 5rem) + 0.75rem);
	}
}

/* ---------- complementos con variantes (vaso térmico, matermo) ---------- */
.kb-price__from { font: 600 0.7rem var(--kb-mono); color: var(--kb-mute, #64748b); text-transform: uppercase; }
.kb-card__variant,
.kb-variant-line { display: block; font-size: 0.78rem; color: var(--kb-mute, #64748b); }
.kb-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--kb-accent, #0f766e); text-decoration: underline; cursor: pointer; min-height: 0; }

.kb-variant-modal {
	background: #ffffff;
	width: 100%;
	max-width: 440px;
	border-radius: 16px;
	box-shadow: var(--kb-shadow-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 2.5rem);
	margin-top: 0.75rem;
	margin-bottom: 1.5rem;
	animation: kbSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-variant-modal .kb-zoom-foot { padding: 0.85rem 1.25rem; }
.kb-variant-body { padding: 1rem 1.25rem; overflow-y: auto; }
.kb-variant-img { display: flex; justify-content: center; margin-bottom: 0.75rem; }
.kb-variant-img img { max-height: 180px; width: auto; max-width: 100%; border-radius: 12px; object-fit: contain; }
.kb-variant-q { margin: 0 0 0.5rem; font-weight: 700; }
.kb-variants { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.kb-variant {
	width: 100%;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 0.5rem;
	text-align: left;
	padding: 0.5rem 0.6rem;
	border: 1.5px solid var(--kb-line, #e2e8f0);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	min-height: 48px;
}
.kb-variant img { grid-row: 1 / span 2; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.kb-variant span { font-weight: 600; }
.kb-variant small { grid-column: 2; color: var(--kb-mute, #64748b); }
.kb-variant.is-selected { border-color: var(--kb-accent, #0f766e); box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18); }
.kb-variant.is-out { opacity: 0.45; cursor: not-allowed; text-decoration: line-through; }
.kb-variant.is-out small { text-decoration: none; }
@media (max-width: 380px) { .kb-variants { grid-template-columns: 1fr; } }

/* ---------- cartel de bienvenida ---------- */
.kb-intro {
	position: relative;
	margin: 0 0 1rem;
	padding: 1rem 2.5rem 1rem 1.1rem;
	background: var(--kb-lime-light, #ecfdf5);
	border: 1.5px solid var(--kb-lime, #0f766e);
	border-radius: 14px;
}
.kb-intro__title { margin: 0 0 0.5rem; font-size: 1.05rem; }
.kb-intro__steps { margin: 0 0 0.85rem; padding-left: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.92rem; line-height: 1.4; }
.kb-intro__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.kb-intro__actions .kb-cta,
.kb-intro__actions .kb-btn-sec { width: auto; min-height: 44px; padding: 0.55rem 1rem; }
.kb-intro__close { position: absolute; top: 0.4rem; right: 0.5rem; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: inherit; }
@media (max-width: 520px) { .kb-intro__actions .kb-cta, .kb-intro__actions .kb-btn-sec { flex: 1 1 100%; } }

/* nombre del producto: abre el modal (ya no es un enlace) */
.muvap-kb button.kb-card__name {
	appearance: none;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	text-align: left;
	font-family: inherit;
	cursor: pointer;
	box-shadow: none !important;
	min-height: 0 !important;
	width: auto;
	text-transform: none;
	letter-spacing: normal;
}
.muvap-kb .kb-zoom-more {
	display: inline-block;
	margin-top: 0.75rem;
	font-weight: 600;
	color: var(--kb-lime, #0f766e);
	text-decoration: underline;
}
