/* Configurador "Crea tu ramo" paso a paso */
.bcf {
	--bcf-texto: #23433F;
	--bcf-verde: #366661;
	--bcf-rosa: #F6C8C7;
	--bcf-rosa-t: #FF77A9;
	--bcf-linea: rgba(35, 67, 63, .16);
	--bcf-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bcf-serif: "Noto Serif Display", Georgia, serif;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	color: var(--bcf-texto);
	font-family: var(--bcf-font);
}

/* ---------- Vista previa ---------- */
.bcf-preview {
	position: sticky;
	top: 130px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 440px;
	padding: 24px;
	border-radius: 6px;
	background: #FDF1F1;
}
.bcf-svg { width: min(320px, 100%); height: auto; }
.bcf-svg circle { transition: fill .35s ease; }
.bcf-wrap { transition: fill .35s ease; }
.bcf-preview-note { margin: 10px 0 0; font: 400 12.5px/1.4 var(--bcf-font); opacity: .65; }

/* ---------- Cabecera y progreso ---------- */
.bcf-eyebrow { margin: 0 0 10px; font: 500 11px/1 var(--bcf-font); letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.bcf-title {
	margin: 0 0 22px !important;
	font: italic 300 clamp(34px, 4vw, 50px)/1.05 var(--bcf-serif) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--bcf-texto) !important;
}
.bcf-progress { display: flex; gap: 6px; margin-bottom: 10px; }
.bcf-progress span { flex: 1; height: 3px; border-radius: 3px; background: rgba(35, 67, 63, .14); transition: background-color .3s ease; }
.bcf-progress span.is-on { background: var(--bcf-verde); }
.bcf-count { margin: 0 0 22px; font: 500 11px/1 var(--bcf-font); letter-spacing: .16em; text-transform: uppercase; opacity: .6; }

/* ---------- Paso ---------- */
.bcf-step[hidden] { display: none !important; }
.bcf-step { animation: bcf-in .35s ease; }
@keyframes bcf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bcf-q {
	margin: 0 0 6px !important;
	font: italic 300 clamp(26px, 2.6vw, 34px)/1.15 var(--bcf-serif) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--bcf-texto) !important;
	outline: none;
}
.bcf-help { margin: 0 0 20px; font: 400 14.5px/1.55 var(--bcf-font); opacity: .75; }

.bcf-options { display: grid; gap: 10px; }
.bcf-options--budget { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.bcf-options--cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.bcf-options--extras { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.bcf .bcf-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 14px 10px !important;
	border: 1px solid var(--bcf-linea) !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--bcf-texto) !important;
	font: 500 15px/1.2 var(--bcf-font) !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.bcf .bcf-opt:hover { border-color: var(--bcf-rosa-t) !important; transform: translateY(-1px); }
.bcf .bcf-opt.is-on { border-color: var(--bcf-verde) !important; background: #F3F7F5 !important; box-shadow: 0 0 0 1px var(--bcf-verde) !important; }
.bcf .bcf-opt.is-on::after {
	content: "✓";
	position: absolute;
	top: 6px;
	right: 8px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bcf-verde);
	color: #fff;
	font: 600 11px/18px var(--bcf-font);
	text-align: center;
}
.bcf .bcf-budget { padding: 16px 8px !important; font-size: 17px !important; }

.bcf-dots { display: flex; justify-content: center; }
.bcf-dots i { width: 30px; height: 30px; margin: 0 -5px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(35, 67, 63, .12); }
.bcf-paper { display: block; width: 100%; height: 64px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(35, 67, 63, .1); }
.bcf-card img, .bcf-extra img { display: block; width: 100% !important; height: 96px !important; object-fit: cover; border-radius: 4px; margin: 0 !important; }
.bcf-card-name { font: 500 14px/1.3 var(--bcf-font); text-align: center; }
.bcf-extra-price { font: 400 13.5px/1.2 var(--bcf-font); opacity: .8; }

/* Mensaje */
.bcf-msg {
	display: block;
	width: 100%;
	padding: 14px 16px !important;
	border: 1px solid var(--bcf-linea) !important;
	border-radius: 6px !important;
	background: #FFFBFB !important;
	color: var(--bcf-texto) !important;
	font: italic 300 19px/1.5 var(--bcf-serif) !important;
	resize: vertical;
	box-shadow: none !important;
}
.bcf-msg:focus { outline: none; border-color: var(--bcf-verde) !important; }
.bcf-msg-count { margin: 6px 0 0; text-align: right; font: 400 12px/1 var(--bcf-font); opacity: .6; }

/* Resumen */
.bcf-summary { margin: 0; padding: 18px 20px; border-radius: 6px; background: #FDF1F1; }
.bcf-sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(35, 67, 63, .1); font: 400 15px/1.4 var(--bcf-font); }
.bcf-sum-row dt { margin: 0; opacity: .75; }
.bcf-sum-row dd { margin: 0; text-align: right; font-weight: 500; }
.bcf-sum-row.is-total { border: 0; padding-top: 12px; font-size: 18px; }
.bcf-sum-row.is-total dt { opacity: 1; font-weight: 500; }
.bcf-error { margin: 12px 0 0; padding: 10px 14px; border-left: 3px solid #A3264E; background: #FDF1F3; font: 400 14px/1.4 var(--bcf-font); }

/* ---------- Navegación ---------- */
.bcf-nav { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.bcf .bcf-back {
	width: auto !important; height: auto !important; min-height: 0 !important; padding: 8px 0 !important;
	border: 0 !important; background: none !important; box-shadow: none !important;
	color: var(--bcf-texto) !important; font: 400 14px/1 var(--bcf-font) !important;
	letter-spacing: 0 !important; text-transform: none !important; text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer;
}
.bcf .bcf-back[hidden] { display: none !important; }
.bcf .bcf-next {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-left: auto !important;
	min-width: 230px;
	height: 54px !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background: var(--bcf-verde) !important;
	color: #fff !important;
	font: 500 12.5px/1 var(--bcf-font) !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	box-shadow: 0 10px 24px -14px rgba(35, 67, 63, .8) !important;
	cursor: pointer;
	transition: background-color .25s ease, opacity .2s ease;
}
.bcf .bcf-next:hover { background: #2C5550 !important; }
.bcf .bcf-next:disabled { opacity: .4; cursor: not-allowed; box-shadow: none !important; }
.bcf .bcf-next.is-loading { opacity: .6; pointer-events: none; }
.bcf-next-price { font-size: 15px; letter-spacing: 0; }
.bcf-next-price:empty { display: none; }

/* Botón en la ficha del producto */
.bcf-product-cta { margin: 18px 0 8px; }
.bcf-product-cta p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; }
.bcf-product-cta .bc-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 28px;
	border-radius: 3px; background: #366661; color: #fff !important; font: 500 12.5px/1 "DM Sans", sans-serif;
	letter-spacing: .14em; text-transform: uppercase; text-decoration: none !important;
}
.bcf-product-cta .bc-btn:hover { background: #2C5550; }

/* ---------- Tablet y plegables ---------- */
@media (max-width: 900px) {
	.bcf { grid-template-columns: 1fr; }
	.bcf-preview { position: static; min-height: 0; padding: 16px; }
	.bcf-svg { width: 170px; }
}
/* ---------- Móvil: botón fijo abajo ---------- */
@media (max-width: 600px) {
	.bcf-preview { flex-direction: row; gap: 12px; }
	.bcf-svg { width: 110px; }
	.bcf-preview-note { margin: 0; }
	.bcf-options--budget { grid-template-columns: repeat(3, 1fr); }
	.bcf-options--cards, .bcf-options--extras { grid-template-columns: repeat(2, 1fr); }
	.bcf-nav {
		position: sticky;
		bottom: 0;
		z-index: 5;
		margin: 22px -4vw 0;
		padding: 12px 4vw calc(12px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -8px 20px -14px rgba(35, 67, 63, .5);
	}
	.bcf .bcf-next { min-width: 0; flex: 1; }
}

/* Bloque "Personalizar mi ramo" en la ficha y la vista rápida */
.bcf-product-cta {
	margin: 22px 0 24px;
	padding: 22px 22px 24px;
	border-radius: 6px;
	background: #FDF1F1;
	color: #23433F;
	font-family: "DM Sans", system-ui, sans-serif;
}
.bcf-product-cta .bcf-cta-title { margin: 0 0 12px; font: italic 300 22px/1.25 "Noto Serif Display", Georgia, serif; }
.bcf-product-cta ul { list-style: none; margin: 0 0 18px; padding: 0; }
.bcf-product-cta li { position: relative; margin: 0 0 7px; padding-left: 24px; font: 400 14.5px/1.45 "DM Sans", sans-serif; }
.bcf-product-cta li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #FF77A9; font-weight: 600; }
.bcf-product-cta .bcf-cta-btn {
	display: flex !important;
	width: 100%;
	height: 56px !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 3px;
	background: #366661 !important;
	color: #fff !important;
	font: 500 13px/1 "DM Sans", sans-serif !important;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -14px rgba(35, 67, 63, .8);
	transition: background-color .25s ease, gap .25s ease;
}
.bcf-product-cta .bcf-cta-btn:hover { background: #2C5550 !important; gap: 14px; }
.bcf-product-cta .bcf-cta-btn { white-space: nowrap; }
@media (max-width: 600px) {
	.bcf-product-cta { padding: 18px 16px 20px; }
	.bcf-product-cta .bcf-cta-btn { letter-spacing: .1em; font-size: 12.5px !important; }
}
