/*
 * Configurador del nuevo diseño (págs. 18-19 del PDF). Vista: v2/configurador.
 * SUSTITUYE en v2 a assets/css/configurador-asistente.css, que no se carga:
 * aquí están todas las clases cfg-* de la vista y las que pinta el JS
 * (assets/js/configurador-asistente.js), incluidos los estados que este
 * cambia: .active, .completed, .selected, .in-budget, .show…
 *
 * Cada paso tiene su color (--jo-paso-N de tokens.css), que llega a todo lo de
 * dentro del paso a través de --cfg-color.
 * Colores y fuentes: SOLO desde tokens.css. Mobile-first.
 */

.tema-v2 .configurador-wrapper {
	--cfg-color: var(--jo-acento);
	padding-bottom: 96px; /* hueco para la barra fija del presupuesto */
}
.tema-v2 .cfg-step-content[data-step="1"], .tema-v2 .cfg-step-item[data-step="1"] { --cfg-color: var(--jo-paso-1); }
.tema-v2 .cfg-step-content[data-step="2"], .tema-v2 .cfg-step-item[data-step="2"] { --cfg-color: var(--jo-paso-2); }
.tema-v2 .cfg-step-content[data-step="3"], .tema-v2 .cfg-step-item[data-step="3"] { --cfg-color: var(--jo-paso-3); }
.tema-v2 .cfg-step-content[data-step="4"], .tema-v2 .cfg-step-item[data-step="4"] { --cfg-color: var(--jo-paso-4); }
.tema-v2 .cfg-step-content[data-step="5"], .tema-v2 .cfg-step-item[data-step="5"] { --cfg-color: var(--jo-paso-5); }
.tema-v2 .cfg-step-content[data-step="6"], .tema-v2 .cfg-step-item[data-step="6"] { --cfg-color: var(--jo-paso-6); }

.tema-v2 .configurador-wrapper button { font-family: inherit; cursor: pointer; }

/* ================================================================ Cabecera */
.tema-v2 .jo-cfg-hero { position: relative; padding-top: 24px; }
.tema-v2 .jo-cfg-hero__caja {
	position: relative;
	display: grid;
	gap: 16px;
	padding: 28px 20px 32px;
	background: var(--jo-panel-medio);
}
/* Pico hacia abajo, en el centro */
.tema-v2 .jo-cfg-hero__caja::after {
	content: "";
	position: absolute; left: 50%; bottom: -14px;
	transform: translateX(-50%);
	border: 14px solid transparent; border-bottom: 0;
	border-top-color: var(--jo-panel-medio);
}
.tema-v2 .jo-cfg-hero__titulo {
	margin: 0;
	font-size: var(--jo-titulo-m);
	line-height: 1.05;
	padding-right: 72px; /* el sello */
}
.tema-v2 .jo-cfg-hero__texto { margin: 0; font-size: var(--jo-texto-m); line-height: 1.35; max-width: 32ch; }
.tema-v2 .jo-cfg-hero__imagen { display: block; width: 100%; max-width: 420px; height: auto; }

.tema-v2 .jo-cfg-sello {
	position: absolute; top: 8px; right: calc(var(--jo-margen) - 8px);
	width: 72px; height: 72px;
}
.tema-v2 .jo-cfg-sello polygon { fill: var(--jo-acento); }
.tema-v2 .jo-cfg-sello text { fill: var(--jo-blanco); font-family: var(--jo-fuente-texto); font-size: 13px; font-weight: 500; }

/* ================================================================ Pasos */
.tema-v2 .jo-cfg-pasos__titulo {
	margin: 36px 0 20px;
	text-align: center;
	text-transform: uppercase;
	font-size: var(--jo-texto-s);
	font-weight: 500;
	letter-spacing: .03em;
}
.tema-v2 .cfg-stepper {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
}
/* La línea va del centro de la primera burbuja al de la última */
.tema-v2 .cfg-stepper-line {
	position: absolute; top: 16px; left: calc(100% / 12); right: calc(100% / 12);
	height: 1px;
	background: var(--jo-linea);
}
.tema-v2 .cfg-stepper-line-progress {
	height: 100%; width: 0;
	background: var(--jo-paso-hecho);
	transition: width .4s ease;
}
.tema-v2 .cfg-step-item {
	position: relative;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	padding: 0 2px;
	background: none; border: 0;
	color: var(--jo-texto);
}
.tema-v2 .cfg-step-bubble {
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: var(--jo-blanco);
	font-size: var(--jo-texto-m); font-weight: 500;
	transition: background-color .25s, color .25s;
}
.tema-v2 .cfg-step-label { font-size: 10px; line-height: 1.2; text-align: center; }
.tema-v2 .cfg-step-item:hover .cfg-step-bubble { box-shadow: 0 0 0 1px var(--cfg-color); }
.tema-v2 .cfg-step-item.completed .cfg-step-bubble { background: var(--jo-paso-hecho); }
.tema-v2 .cfg-step-item.active .cfg-step-bubble { background: var(--cfg-color); color: var(--jo-blanco); }

/* ================================================================ Panel de cada paso */
.tema-v2 .cfg-main-container { margin-top: 28px; }
.tema-v2 .cfg-step-content {
	display: none;
	padding: 24px var(--jo-margen) 32px;
	margin: 0 calc(-1 * var(--jo-margen)); /* en móvil, el panel blanco llega al borde */
	background: var(--jo-blanco);
}
.tema-v2 .cfg-step-content.active { display: block; animation: joCfgEntrada .3s ease; }
@keyframes joCfgEntrada { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tema-v2 .cfg-step-number-tag {
	display: block;
	color: var(--cfg-color);
	font-size: 20px; font-weight: 500;
}
.tema-v2 .cfg-step-heading { margin: 8px 0 14px; font-size: 28px; line-height: 1.1; }
.tema-v2 .cfg-step-desc { margin: 0; max-width: 36ch; font-size: var(--jo-texto-m); line-height: 1.35; }

/* Atrás / Continuar. En móvil se queda pegada bajo la cabecera de la web. */
.tema-v2 .cfg-nav-footer {
	position: sticky; top: var(--jo-alto-cabecera); z-index: 20;
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	margin: 20px calc(-1 * var(--jo-margen)) 20px;
	padding: 10px var(--jo-margen);
	background: var(--jo-blanco);
	border-bottom: 1px solid var(--jo-panel);
}
.tema-v2 .cfg-btn-nav {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 18px;
	border: 0; border-radius: 999px;
	font-size: var(--jo-texto-xs); font-weight: 500; line-height: 1.2;
}
.tema-v2 .cfg-btn-nav.btn-back { background: var(--jo-panel); color: var(--jo-texto); }
.tema-v2 .cfg-btn-nav.btn-next { background: var(--cfg-color); color: var(--jo-blanco); }
.tema-v2 .cfg-btn-nav:hover { filter: brightness(.95); }
.tema-v2 .jo-cfg-pista {
	display: inline-flex; flex-direction: column; align-items: flex-start;
	max-width: 7.5em;
	color: var(--cfg-color);
	font-size: var(--jo-texto-xs); font-weight: 600; line-height: 1.3;
}

/* ================================================================ Pasos 1 y 2: tarjetas */
.tema-v2 .cfg-grid-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
}
.tema-v2 .cfg-choice-card {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	padding: 20px 10px 16px;
	border: 1px solid var(--jo-panel);
	background: var(--jo-blanco);
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: border-color .2s;
}
.tema-v2 .cfg-choice-card.cfg-card-oculta { display: none; } /* ambiente no asignado a este evento */
.tema-v2 .cfg-choice-card:hover { border-color: var(--cfg-color); }
.tema-v2 .cfg-card-check {
	position: absolute; top: 8px; right: 8px;
	display: flex; align-items: center; justify-content: center;
	width: 18px; height: 18px;
	border: 1px solid var(--jo-linea); border-radius: 50%;
	color: transparent;
}
.tema-v2 .cfg-card-icon {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 10px;
	border-radius: 50%;
	background: var(--jo-panel-medio);
	color: var(--jo-texto);
	transition: background-color .2s, color .2s;
}
.tema-v2 .cfg-card-icon svg { width: 22px; height: 22px; }
.tema-v2 .cfg-card-title { font-size: var(--jo-texto-m); font-weight: 700; margin-bottom: 4px; }
.tema-v2 .cfg-card-desc { font-size: var(--jo-texto-xs); line-height: 1.35; color: var(--jo-texto-suave); }
.tema-v2 .cfg-choice-card.selected { border-color: var(--cfg-color); }
.tema-v2 .cfg-choice-card.selected .cfg-card-check { border-color: var(--cfg-color); color: var(--cfg-color); }
.tema-v2 .cfg-choice-card.selected .cfg-card-icon { background: var(--cfg-color); color: var(--jo-blanco); }

/* ================================================================ Paso 3: invitados */
.tema-v2 .cfg-guests-box { margin-top: 24px; padding: 24px 16px; background: var(--jo-fondo); }
.tema-v2 .cfg-guests-display {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px;
}
.tema-v2 .cfg-guests-number { color: var(--cfg-color); font-size: 56px; font-weight: 500; line-height: 1; }
.tema-v2 .cfg-guests-unit { font-size: var(--jo-texto-l); font-weight: 500; }
.tema-v2 .cfg-slider-wrapper { margin: 20px 0 16px; }
.tema-v2 .cfg-range-slider {
	-webkit-appearance: none; appearance: none;
	display: block; width: 100%; height: 6px;
	border-radius: 3px;
	background: var(--jo-linea);
	outline: none;
}
.tema-v2 .cfg-range-slider::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--cfg-color); border: 0; cursor: pointer;
}
.tema-v2 .cfg-range-slider::-moz-range-thumb {
	width: 24px; height: 24px; border-radius: 50%;
	background: var(--cfg-color); border: 0; cursor: pointer;
}
.tema-v2 .cfg-range-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--jo-blanco), 0 0 0 5px var(--cfg-color); }
.tema-v2 .cfg-preset-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tema-v2 .cfg-pill-btn {
	padding: 6px 12px;
	border: 1px solid var(--jo-linea); border-radius: 999px;
	background: var(--jo-blanco); color: var(--jo-texto);
	font-size: var(--jo-texto-xs); font-weight: 600;
}
.tema-v2 .cfg-pill-btn:hover { border-color: var(--jo-texto); }
.tema-v2 .cfg-pill-btn.active { background: var(--jo-texto); border-color: var(--jo-texto); color: var(--jo-blanco); }

.tema-v2 .cfg-details-row { display: grid; gap: 16px; margin-top: 24px; }

/* Campos (pasos 3 y 6, y el modal del PDF) */
.tema-v2 .cfg-input-group { display: flex; flex-direction: column; gap: 6px; }
.tema-v2 .cfg-input-group label { font-size: 12px; font-weight: 700; }
.tema-v2 .cfg-input-control {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--jo-panel); border-radius: var(--jo-radio);
	background: var(--jo-blanco); color: var(--jo-texto);
	font-family: inherit; font-size: var(--jo-texto-s);
	margin: 0;
}
.tema-v2 .cfg-input-control:focus { outline: none; border-color: var(--cfg-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cfg-color) 25%, transparent); }
.tema-v2 select.cfg-input-control { height: auto; }
.tema-v2 .cfg-field-notice { font-size: var(--jo-texto-xs); color: var(--cfg-color); }

/* ================================================================ Paso 4: pack o de cero */
.tema-v2 .jo-cfg-elige { margin: 28px 0 0; font-size: var(--jo-texto-l); font-weight: 600; }
.tema-v2 .jo-cfg-opcion { display: grid; gap: 16px; align-items: center; padding: 28px 0; }
.tema-v2 .jo-cfg-opcion + .jo-cfg-opcion { border-top: 1px solid var(--cfg-color); }
.tema-v2 .jo-cfg-opcion__letra {
	display: block;
	color: var(--cfg-color);
	font-family: var(--jo-fuente-titulos); font-size: var(--jo-titulo-m); line-height: 1.1;
}
.tema-v2 .cfg-pack-info h4 {
	margin: 4px 0 10px;
	font-family: var(--jo-fuente-texto); font-size: 20px; font-weight: 600;
}
.tema-v2 .cfg-pack-info p { margin: 0; max-width: 40ch; font-size: var(--jo-texto-m); line-height: 1.35; }
.tema-v2 .cfg-btn-pack {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	justify-self: start;
	min-height: 48px; max-width: 18em; padding: 12px 26px;
	border: 0; border-radius: 999px;
	background: var(--cfg-color); color: var(--jo-blanco);
	font-size: var(--jo-texto-s); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
}
.tema-v2 .cfg-btn-pack:hover { color: var(--jo-blanco); filter: brightness(.95); }

.tema-v2 .cfg-cat-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 8px;
}
.tema-v2 .cfg-cat-tile {
	position: relative;
	display: flex; flex-direction: column; align-items: center;
	padding: 14px 8px 12px;
	border: 1px solid var(--jo-linea);
	background: var(--jo-blanco);
	text-align: center;
	cursor: pointer;
	opacity: .6;
	transition: opacity .2s, border-color .2s;
}
.tema-v2 .cfg-cat-tile:hover { opacity: .85; }
.tema-v2 .cfg-cat-tile:focus-visible { outline: 2px solid var(--cfg-color); outline-offset: 2px; }
.tema-v2 .cfg-cat-tile-badge {
	position: absolute; top: -9px; right: -9px;
	display: flex; align-items: center; justify-content: center;
	width: 18px; height: 18px; border-radius: 50%;
	background: var(--cfg-color); color: var(--jo-blanco);
	opacity: 0; transform: scale(.5);
	transition: opacity .2s, transform .2s;
}
.tema-v2 .cfg-cat-tile-badge svg { width: 10px; height: 10px; }
.tema-v2 .cfg-cat-tile-icon {
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; margin-bottom: 8px;
	border-radius: 50%;
	background: var(--jo-panel);
	color: var(--jo-texto);
}
.tema-v2 .cfg-cat-tile-icon svg { width: 20px; height: 20px; }
.tema-v2 .cfg-cat-tile-name { font-size: var(--jo-texto-s); font-weight: 700; }
.tema-v2 .cfg-cat-tile-sub { font-size: 10px; color: var(--jo-texto-tenue); }
.tema-v2 .cfg-cat-tile.active { opacity: 1; border-color: var(--cfg-color); }
.tema-v2 .cfg-cat-tile.active .cfg-cat-tile-badge { opacity: 1; transform: none; }
.tema-v2 .cfg-cat-tile.active .cfg-cat-tile-icon { background: color-mix(in srgb, var(--cfg-color) 30%, var(--jo-blanco)); }

/* ================================================================ Paso 5: productos */
.tema-v2 .cfg-products-filter-bar { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.tema-v2 .cfg-cat-nav-tabs {
	display: flex; gap: 8px;
	overflow-x: auto; -webkit-overflow-scrolling: touch;
	margin: 0 calc(-1 * var(--jo-margen)); padding: 2px var(--jo-margen) 6px;
}
.tema-v2 .cfg-tab-btn {
	flex: 0 0 auto;
	padding: 7px 14px;
	border: 1px solid var(--jo-linea); border-radius: 999px;
	background: var(--jo-blanco); color: var(--jo-texto);
	font-size: var(--jo-texto-xs); font-weight: 600; white-space: nowrap;
}
.tema-v2 .cfg-tab-btn:hover { border-color: var(--jo-texto); }
.tema-v2 .cfg-tab-btn.cfg-tab-btn-muted { border-style: dashed; color: var(--jo-texto-tenue); }
.tema-v2 .cfg-tab-btn.active { background: var(--jo-texto); border: 1px solid var(--jo-texto); color: var(--jo-blanco); }
.tema-v2 .cfg-search-box { position: relative; max-width: 280px; }
.tema-v2 .cfg-search-box .search-icon {
	position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	display: flex; color: var(--jo-texto-tenue);
}
.tema-v2 .cfg-search-box input {
	width: 100%; margin: 0;
	padding: 8px 14px 8px 32px;
	border: 1px solid var(--jo-linea); border-radius: 999px;
	font-size: var(--jo-texto-xs);
}
.tema-v2 .jo-cfg-recuento {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
	margin: 16px 0 24px;
	font-size: var(--jo-texto-xs); font-weight: 500; color: var(--jo-texto-suave);
}

.tema-v2 .cfg-btn-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--jo-linea); border-radius: 6px;
	background: var(--jo-blanco); color: var(--jo-texto);
	font-size: var(--jo-texto-xs); font-weight: 600; text-decoration: none;
}
.tema-v2 .cfg-btn-secondary:hover { border-color: var(--jo-texto); color: var(--jo-texto); }

/* Secciones «Hemos añadido…» y «También tienes…» que pinta el JS */
.tema-v2 .cfg-products-section { margin-bottom: 32px; }
.tema-v2 .cfg-section-header {
	position: relative;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 calc(-1 * var(--jo-margen)) 28px;
	padding: 22px var(--jo-margen);
	background: var(--jo-panel-azul);
}
.tema-v2 .cfg-section-header.header-included::after {
	content: "";
	position: absolute; left: 50%; bottom: -16px;
	transform: translateX(-50%);
	border: 16px solid transparent; border-bottom: 0;
	border-top-color: var(--jo-panel-azul);
}
.tema-v2 .cfg-section-title-wrap { display: flex; align-items: center; gap: 14px; flex: 1 1 260px; }
.tema-v2 .cfg-section-icon {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 40px; height: 40px; border-radius: 50%;
	background: color-mix(in srgb, var(--cfg-color) 55%, var(--jo-blanco));
	color: var(--jo-blanco);
}
.tema-v2 .header-available .cfg-section-icon { display: none; }
.tema-v2 .cfg-section-title { margin: 0 0 4px; font-family: var(--jo-fuente-texto); font-size: var(--jo-texto-m); font-weight: 500; }
.tema-v2 .cfg-section-desc { margin: 0; font-size: var(--jo-texto-s); line-height: 1.35; }
.tema-v2 .cfg-section-badge {
	max-width: 7em;
	color: var(--cfg-color);
	font-size: 20px; font-weight: 500; line-height: 1.05;
}
/* «También tienes…»: el panel azul envuelve también las tarjetas */
.tema-v2 .cfg-products-section:has(> .header-available) {
	margin-left: calc(-1 * var(--jo-margen)); margin-right: calc(-1 * var(--jo-margen));
	padding: 0 var(--jo-margen) 24px;
	background: var(--jo-panel-azul);
}
.tema-v2 .cfg-products-section:has(> .header-available) > .cfg-section-header { margin-bottom: 8px; }

.tema-v2 .cfg-products-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.tema-v2 .cfg-prod-card {
	position: relative;
	display: flex; flex-direction: column;
	border: 1px solid var(--jo-panel);
	background: var(--jo-blanco);
}
.tema-v2 .cfg-prod-card.in-budget { border-color: var(--cfg-color); }
.tema-v2 .cfg-prod-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--jo-blanco); }
.tema-v2 .cfg-prod-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.tema-v2 .cfg-prod-badge {
	position: absolute; top: 8px; left: 8px;
	padding: 0 4px;
	background: color-mix(in srgb, var(--jo-blanco) 85%, transparent);
	color: var(--cfg-color);
	font-family: var(--jo-fuente-titulos); font-size: var(--jo-texto-s); font-style: italic;
}
/* Primera etiqueta de una tarjeta incluida = «✓ Incluido» (lleva colores en
   línea desde el JS: de ahí los !important) */
.tema-v2 .cfg-prod-card.in-budget .cfg-prod-badge:first-of-type {
	padding: 2px 8px; border-radius: 999px;
	background: var(--cfg-color) !important; color: var(--jo-blanco) !important;
	font-family: var(--jo-fuente-texto); font-size: 10px; font-style: normal; font-weight: 600 !important;
}
.tema-v2 .cfg-prod-badge.badge-promocion { top: auto; bottom: 8px; color: var(--jo-alerta); }
.tema-v2 .cfg-prod-body { display: flex; flex-direction: column; flex-grow: 1; padding: 10px; }
.tema-v2 .cfg-prod-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 2.7em; margin-bottom: 6px;
	font-size: 12px; font-weight: 700; line-height: 1.35;
}
.tema-v2 .cfg-prod-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.tema-v2 .cfg-spec-tag { padding: 1px 6px; background: var(--jo-fondo); color: var(--jo-texto-tenue); font-size: 10px; }
.tema-v2 .cfg-prod-price-row {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 6px;
	margin-top: auto; margin-bottom: 10px;
}
.tema-v2 .cfg-prod-price { font-size: var(--jo-texto-m); font-weight: 700; }
.tema-v2 .cfg-prod-price small { font-size: 10px; font-weight: 400; color: var(--jo-texto-tenue); }
.tema-v2 .cfg-precio-antiguo { margin-right: .25em; color: var(--jo-texto-tenue); font-size: .75em; font-weight: 400; text-decoration: line-through; }
.tema-v2 .cfg-precio-rebajado { color: var(--jo-alerta); }
.tema-v2 .cfg-prod-suggested { color: var(--cfg-color) !important; font-size: 10px; font-weight: 500 !important; }

.tema-v2 .cfg-prod-actions { display: flex; flex-direction: column; gap: 6px; }
.tema-v2 .cfg-stepper-control {
	display: inline-flex; align-items: stretch;
	width: 100%; height: 32px;
	border: 1px solid var(--jo-linea); border-radius: 4px;
	overflow: hidden;
	background: var(--jo-blanco);
}
.tema-v2 .cfg-stepper-btn {
	flex: 0 0 28px;
	display: flex; align-items: center; justify-content: center;
	padding: 0 !important; margin: 0 !important;
	border: 0; background: var(--jo-fondo); color: var(--jo-texto);
	font-size: var(--jo-texto-m); font-weight: 700;
	user-select: none;
}
.tema-v2 .cfg-stepper-btn:hover { background: var(--jo-panel); }
.tema-v2 .cfg-stepper-input {
	flex: 1 1 auto; min-width: 0; width: 40px;
	padding: 0 !important; margin: 0 !important;
	border: 0; background: var(--jo-blanco); color: var(--jo-texto);
	font-size: 12px; text-align: center;
	-moz-appearance: textfield;
}
.tema-v2 .cfg-stepper-input::-webkit-outer-spin-button,
.tema-v2 .cfg-stepper-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tema-v2 .cfg-btn-add-prod,
.tema-v2 .cfg-btn-remove-prod {
	display: flex; align-items: center; justify-content: center; gap: 6px;
	flex: 1 1 auto; height: 32px;
	border: 0; border-radius: 4px;
	font-size: var(--jo-texto-xs); font-weight: 700;
}
.tema-v2 .cfg-btn-add-prod { background: var(--jo-texto); color: var(--jo-blanco); }
.tema-v2 .cfg-btn-add-prod:hover { background: #000; }
.tema-v2 .cfg-btn-remove-prod { background: color-mix(in srgb, var(--jo-alerta) 12%, var(--jo-blanco)); color: var(--jo-alerta); }
.tema-v2 .cfg-btn-remove-prod:hover { background: var(--jo-alerta); color: var(--jo-blanco); }

/* ================================================================ Paso 6: resumen */
.tema-v2 .cfg-summary-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.tema-v2 .cfg-summary-invoice,
.tema-v2 .cfg-form-card {
	padding: 18px 14px;
	border: 1px solid var(--jo-panel); border-radius: 12px;
	background: var(--jo-blanco);
}
.tema-v2 .cfg-invoice-header { margin-bottom: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--jo-linea); }
.tema-v2 .jo-cfg-subtitulo {
	display: flex; align-items: center; gap: 8px;
	margin: 0 0 12px;
	font-family: var(--jo-fuente-texto); font-size: 20px; font-weight: 700;
}
.tema-v2 .cfg-event-badge-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tema-v2 .cfg-event-tag { padding: 4px 10px; border-radius: 999px; background: var(--jo-fondo); font-size: var(--jo-texto-xs); }

.tema-v2 .jo-cfg-tabla { overflow-x: auto; }
.tema-v2 .cfg-invoice-table { width: 100%; min-width: 460px; border-collapse: collapse; margin-bottom: 16px; }
.tema-v2 .cfg-invoice-table th {
	padding: 8px 4px;
	border-bottom: 1px solid var(--jo-panel);
	color: var(--jo-texto-tenue);
	font-size: 10px; font-weight: 500; text-transform: uppercase;
}
.tema-v2 .cfg-invoice-table td { padding: 10px 4px; border-bottom: 1px solid var(--jo-fondo); font-size: 12px; vertical-align: middle; }
.tema-v2 .cfg-item-info { display: flex; align-items: center; gap: 10px; }
.tema-v2 .cfg-item-info strong { font-weight: 600; }
.tema-v2 .cfg-item-thumb { width: 40px; height: 40px; flex-shrink: 0; border-radius: 4px; object-fit: cover; background: var(--jo-fondo); }
.tema-v2 .cfg-invoice-table .cfg-stepper-control { width: 96px !important; height: 30px !important; }
.tema-v2 .cfg-item-remove-btn { padding: 4px; border: 0; border-radius: 4px; background: none; color: var(--jo-alerta); }
.tema-v2 .cfg-item-remove-btn:hover { background: color-mix(in srgb, var(--jo-alerta) 12%, var(--jo-blanco)); }

.tema-v2 .cfg-totals-box { padding: 16px; border-radius: 8px; background: var(--jo-fondo); }
.tema-v2 .cfg-total-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: var(--jo-texto-s); color: var(--jo-texto-suave); }
.tema-v2 .cfg-total-row span:last-child { color: var(--jo-texto); }
.tema-v2 .cfg-total-row.grand-total {
	margin: 10px 0 0; padding-top: 10px;
	border-top: 1px solid var(--jo-linea);
	color: var(--jo-texto); font-size: 20px; font-weight: 700;
}
.tema-v2 .cfg-total-row.grand-total span:last-child { color: var(--jo-exito); }

.tema-v2 .cfg-shipping-alert {
	display: flex; align-items: flex-start; gap: 10px;
	margin-top: 16px; padding: 12px 14px;
	border: 1px solid var(--jo-panel); border-left: 3px solid var(--jo-paso-1); border-radius: 4px;
}
.tema-v2 .cfg-shipping-alert-icon { display: flex; flex-shrink: 0; color: var(--jo-paso-1); }
.tema-v2 .cfg-shipping-alert-text { font-size: var(--jo-texto-xs); line-height: 1.45; }

.tema-v2 .cfg-form-card h3 { margin: 0 0 10px; font-family: var(--jo-fuente-texto); font-size: var(--jo-texto-l); font-weight: 700; }
.tema-v2 .cfg-form-card > p { margin: 0 0 18px; color: var(--jo-texto-suave); font-size: 12px; line-height: 1.5; }
.tema-v2 .jo-cfg-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tema-v2 .jo-cfg-campos__ancho { grid-column: 1 / -1; }
.tema-v2 .jo-cfg-privacidad { margin: 14px 0; font-size: var(--jo-texto-xs); }
.tema-v2 .jo-cfg-privacidad a { text-decoration: underline; }
.tema-v2 .cfg-btn-submit-budget {
	display: flex; align-items: center; justify-content: flex-start;
	width: 100%; padding: 14px 20px;
	border: 0;
	background: var(--jo-paso-5); color: var(--jo-blanco);
	font-size: var(--jo-texto-l); font-weight: 500; line-height: 1.25; text-align: left;
}
.tema-v2 .cfg-btn-submit-budget:hover { filter: brightness(.95); }
.tema-v2 .cfg-btn-submit-budget:disabled { opacity: .7; cursor: wait; }
.tema-v2 .cfg-secondary-actions { margin-top: 10px; }
.tema-v2 .cfg-btn-pedir-ya {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 12px 20px;
	border: 0; border-radius: 8px;
	background: var(--jo-texto); color: var(--jo-blanco);
	font-size: var(--jo-texto-m); font-weight: 600;
}
.tema-v2 .cfg-btn-pedir-ya:hover { background: #000; color: var(--jo-blanco); }

/* ================================================================ Barra fija del presupuesto */
.tema-v2 .cfg-sticky-budget-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
	padding: 10px var(--jo-margen);
	background: var(--jo-texto); color: var(--jo-blanco);
	transition: transform .35s ease;
}
.tema-v2 .cfg-sticky-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	max-width: var(--jo-ancho); margin: 0 auto;
}
.tema-v2 .cfg-sticky-info { display: flex; align-items: center; gap: 20px; }
.tema-v2 .cfg-sticky-badge { display: none; font-size: var(--jo-texto-s); opacity: .8; }
.tema-v2 .cfg-sticky-total { display: flex; flex-direction: column; }
.tema-v2 .cfg-sticky-total-label { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; opacity: .7; }
.tema-v2 .cfg-sticky-total-val { font-size: 20px; font-weight: 700; line-height: 1.1; }
.tema-v2 .cfg-btn-sticky-cta {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 18px;
	border: 0; border-radius: 999px;
	background: var(--jo-acento); color: var(--jo-blanco);
	font-size: var(--jo-texto-s); font-weight: 600;
}

/* ================================================================ Modales */
.tema-v2 .cfg-modal-backdrop {
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: var(--jo-margen);
	background: color-mix(in srgb, var(--jo-texto) 65%, transparent);
	opacity: 0; pointer-events: none;
	transition: opacity .3s ease;
}
.tema-v2 .cfg-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.tema-v2 .cfg-modal-card {
	position: relative;
	width: 100%; max-width: 480px;
	max-height: calc(100vh - 2 * var(--jo-margen)); overflow-y: auto;
	padding: 32px 24px;
	background: var(--jo-blanco);
	text-align: center;
	transform: translateY(12px);
	transition: transform .3s ease;
}
.tema-v2 .cfg-modal-backdrop.show .cfg-modal-card { transform: none; }
.tema-v2 .jo-cfg-modal--estrecho { max-width: 420px; text-align: left; }
.tema-v2 .jo-cfg-modal--estrecho .jo-cfg-modal__titulo,
.tema-v2 .jo-cfg-modal--estrecho .jo-cfg-modal__texto { text-align: center; }
.tema-v2 .jo-cfg-modal--estrecho form { display: grid; gap: 12px; }
.tema-v2 .jo-cfg-modal--estrecho .cfg-btn-pack { justify-self: stretch; max-width: none; --cfg-color: var(--jo-texto); }
.tema-v2 .cfg-modal-close-btn {
	position: absolute; top: 12px; right: 12px;
	display: flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border: 0; border-radius: 50%;
	background: var(--jo-fondo); color: var(--jo-texto);
	font-size: 20px; line-height: 1;
}
.tema-v2 .cfg-success-icon-wrap {
	display: flex; align-items: center; justify-content: center;
	width: 64px; height: 64px; margin: 0 auto 16px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--jo-exito) 14%, var(--jo-blanco));
	color: var(--jo-exito);
}
.tema-v2 .jo-cfg-modal__titulo { margin: 0 0 10px; font-size: 26px; line-height: 1.15; }
.tema-v2 .jo-cfg-modal__texto { margin: 0 0 20px; color: var(--jo-texto-suave); font-size: var(--jo-texto-s); line-height: 1.5; }
.tema-v2 .jo-cfg-modal__texto strong { color: var(--jo-texto); }
.tema-v2 .jo-cfg-modal__acciones { display: flex; flex-direction: column; gap: 10px; }
.tema-v2 .jo-cfg-modal__acciones .cfg-btn-pack,
.tema-v2 .jo-cfg-modal__acciones .cfg-btn-secondary { max-width: none; width: 100%; min-height: 44px; }
.tema-v2 .cfg-btn-whatsapp { background: var(--jo-whatsapp); border-color: var(--jo-whatsapp); color: var(--jo-blanco); }
.tema-v2 .cfg-btn-whatsapp:hover { border-color: var(--jo-whatsapp); color: var(--jo-blanco); filter: brightness(.95); }

/* ================================================================ Tableta */
@media (min-width: 576px) {
	.tema-v2 .cfg-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tema-v2 .cfg-prod-actions { flex-direction: row; }
	.tema-v2 .cfg-prod-actions .cfg-stepper-control { width: 92px; flex: 0 0 92px; }
	.tema-v2 .cfg-sticky-badge { display: inline; }
}

@media (min-width: 768px) {
	.tema-v2 .jo-cfg-hero { padding-top: 48px; }
	.tema-v2 .jo-cfg-hero__caja { padding: 40px 48px; }
	.tema-v2 .jo-cfg-hero__titulo { font-size: 40px; }
	.tema-v2 .jo-cfg-sello { top: 20px; width: 84px; height: 84px; }

	.tema-v2 .cfg-stepper-line { top: 24px; }
	.tema-v2 .cfg-step-bubble { width: 48px; height: 48px; font-size: 22px; }
	.tema-v2 .cfg-step-label { font-size: 12px; }

	.tema-v2 .cfg-step-content { margin: 0; padding: 40px 48px 48px; }
	.tema-v2 .cfg-step-number-tag { font-size: 24px; }
	.tema-v2 .cfg-step-heading { font-size: var(--jo-titulo-m); }
	.tema-v2 .cfg-step-desc { font-size: var(--jo-texto-l); }

	.tema-v2 .cfg-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
	.tema-v2 .cfg-card-desc { padding: 0 6px; }

	.tema-v2 .cfg-guests-box { padding: 32px 48px; }
	.tema-v2 .cfg-guests-number { font-size: 72px; }
	.tema-v2 .cfg-guests-unit { font-size: 22px; }
	.tema-v2 .cfg-details-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0 20px; }

	.tema-v2 .jo-cfg-opcion { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; padding: 36px 40px; }
	.tema-v2 .jo-cfg-opcion__letra { font-size: var(--jo-titulo-l); }
	.tema-v2 .cfg-pack-info h4 { font-size: 26px; }
	.tema-v2 .cfg-cat-tiles { padding: 0 56px; gap: 24px 28px; }

	.tema-v2 .cfg-products-filter-bar { margin-top: 24px; }
	.tema-v2 .cfg-cat-nav-tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
	.tema-v2 .cfg-section-header,
	.tema-v2 .cfg-products-section:has(> .header-available) { margin-left: 0; margin-right: 0; }
	.tema-v2 .cfg-section-header { padding: 28px 40px; }
	.tema-v2 .cfg-products-section:has(> .header-available) { padding: 0 48px 48px; }
	.tema-v2 .cfg-products-section:has(> .header-available) > .cfg-section-header { padding-left: 0; padding-right: 0; }
	.tema-v2 .cfg-section-icon { width: 48px; height: 48px; }
	.tema-v2 .cfg-section-title { font-size: var(--jo-texto-l); }
	.tema-v2 .cfg-section-desc { font-size: var(--jo-texto-m); }
	.tema-v2 .cfg-section-badge { font-size: 26px; }
	.tema-v2 .cfg-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

	.tema-v2 .cfg-summary-invoice,
	.tema-v2 .cfg-form-card { padding: 24px; }
	.tema-v2 .jo-cfg-subtitulo { font-size: var(--jo-titulo-s); }
}

/* ================================================================ Escritorio */
@media (min-width: 992px) {
	.tema-v2 .jo-cfg-hero__caja {
		grid-template-columns: auto auto minmax(0, 1fr);
		align-items: center;
		gap: 40px;
		padding: 56px 56px;
	}
	.tema-v2 .jo-cfg-hero__titulo { padding-right: 0; max-width: 6.5em; }
	.tema-v2 .jo-cfg-hero__texto { padding: 12px 0 12px 32px; border-left: 1px solid var(--jo-texto); font-size: var(--jo-texto-l); }
	.tema-v2 .jo-cfg-hero__imagen { justify-self: end; }
	.tema-v2 .jo-cfg-sello { top: 0; right: calc(var(--jo-margen) - 36px); width: 96px; height: 96px; }

	.tema-v2 .cfg-stepper-line { top: 28px; }
	.tema-v2 .cfg-step-bubble { width: 56px; height: 56px; font-size: 26px; }
	.tema-v2 .cfg-step-label { font-size: var(--jo-texto-s); }

	/* Cabecera del paso a la izquierda y botones arriba a la derecha */
	.tema-v2 .cfg-step-content.active {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 32px;
		align-items: start;
		padding: 48px 64px 64px;
	}
	.tema-v2 .cfg-step-content > * { grid-column: 1 / -1; }
	.tema-v2 .cfg-step-content > .cfg-step-header { grid-column: 1; grid-row: 1; }
	.tema-v2 .cfg-step-content > .cfg-nav-footer {
		grid-column: 2; grid-row: 1;
		position: static;
		justify-content: flex-end; gap: 16px;
		margin: 0; padding: 0;
		border: 0; background: none;
	}
	.tema-v2 .cfg-nav-footer > div:empty { display: none; }
	.tema-v2 .cfg-btn-nav { padding: 12px 24px; font-size: 12px; }
	/* Paso 6: los botones van en su propia fila, bajo la cabecera */
	.tema-v2 .cfg-step-content[data-step="6"] > .cfg-nav-footer {
		grid-column: 1 / -1; grid-row: auto;
		justify-content: space-between;
		margin: 32px 0 24px; padding-bottom: 16px;
		border-bottom: 1px solid var(--jo-panel);
	}
	.tema-v2 .cfg-step-content[data-step="6"] .btn-back { background: var(--jo-blanco); border: 1px solid var(--jo-linea); }

	.tema-v2 .cfg-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 40px; padding: 0 12px; }
	.tema-v2 .cfg-cat-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.tema-v2 .cfg-products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tema-v2 .cfg-summary-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
	.tema-v2 .cfg-step-heading { font-size: 40px; }
	.tema-v2 .cfg-step-number-tag { font-size: 28px; }
}
