/*
 * Becomeyoo — Formularios Wenea (diseño 2026-11)
 * Se aplica a los formularios con la clase .by-premium (ver becomeyoo-wenea-formularios.php).
 * Usa selectores con más peso que el snippet heredado 7058 («Formularios - New») para no depender de él.
 */

.by-premium {
	--by-primario: #D5346F;
	--by-primario-hover: #B8285C;
	--by-primario-suave: rgba(213, 52, 111, .12);
	--by-tinta: #00121C;
	--by-texto: #33414A;
	--by-apagado: #66737C;
	--by-borde: #D3D9DF;
	--by-borde-hover: #A9B3BC;
	--by-fondo: #FFFFFF;
	--by-fondo-suave: #F6F8FC;
	--by-error: #C2253A;
	--by-ok: #137A4B;
	--by-radio: 12px;
	--by-alto: 52px;
}

/* ---------- Tarjeta ---------- */
.wpcf7 form.wpcf7-form.by-premium {
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	margin: 8px auto 64px;
	padding: 40px 48px 36px;
	background: var(--by-fondo);
	border: 1px solid #E7EBF0;
	border-radius: 20px;
	box-shadow: 0 1px 2px rgba(0, 18, 28, .04), 0 12px 40px rgba(0, 18, 28, .07);
	font-family: inherit;
	color: var(--by-texto);
	text-align: left;
}
.by-premium *, .by-premium *::before, .by-premium *::after { box-sizing: border-box; }
.by-premium .uacf7-multisetp-form,
.by-premium .uacf7-form-wrapper-container { max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* ---------- Indicador de pasos ---------- */
.by-premium .uacf7-steps.steps-form { margin: 0 0 32px !important; padding: 0 !important; background: none !important; }
.by-premium .uacf7-steps .steps-row {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.by-premium .uacf7-steps .steps-row::before { display: none !important; }
.by-premium .uacf7-steps .steps-step {
	display: flex !important;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	text-align: left !important;
}
.by-premium .uacf7-steps .steps-step:last-child { flex: 0 0 auto; }
.by-premium .uacf7-steps .steps-step:not(:last-child)::after {
	content: "";
	flex: 1 1 auto;
	height: 2px;
	min-width: 24px;
	margin: 0 16px;
	border-radius: 2px;
	background: #E3E7EC;
	transition: background-color .3s ease;
}
.by-premium .uacf7-steps .steps-step.step-complete:not(:last-child)::after { background: var(--by-primario); }
.by-premium .uacf7-steps .steps-step .btn-circle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px;
	margin: 0 !important;
	padding: 0 !important;
	border: 2px solid #D3D9DF !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: var(--by-apagado) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: all .25s ease;
	pointer-events: none;
}
.by-premium .uacf7-steps .steps-step .btn-circle.uacf7-btn-active {
	border-color: var(--by-primario) !important;
	background: var(--by-primario) !important;
	color: #fff !important;
	box-shadow: 0 0 0 5px var(--by-primario-suave) !important;
}
.by-premium .uacf7-steps .steps-step.step-complete .btn-circle:not(.uacf7-btn-active) {
	border-color: var(--by-primario) !important;
	background: #fff !important;
	color: var(--by-primario) !important;
}
.by-premium .uacf7-steps .steps-info { margin: 0 !important; padding: 0 !important; }
.by-premium .uacf7-steps .steps-info p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .04em;
	line-height: 1.3 !important;
	color: var(--by-apagado) !important;
	white-space: nowrap;
}
.by-premium .uacf7-steps .steps-step:has(.uacf7-btn-active) .steps-info p { color: var(--by-tinta) !important; font-weight: 600 !important; }
.by-premium .uacf7-step.uacf7-current::after,
.by-premium .uacf7-step::after { display: none !important; }

/* ---------- Campos ---------- */
.wpcf7 form.by-premium .bloq-1,
.wpcf7 form.by-premium .bloq-2 { display: block; margin: 0 !important; padding: 0 !important; }
.wpcf7 form.by-premium .uacf7-step.step-content { margin: 0 !important; padding: 0 !important; }
.by-premium .bloque-pregunta {
	display: block !important;
	margin: 0 0 22px !important;
	padding: 0 !important;
}
.by-premium .bloque-pregunta > label,
.by-premium .wpcf7-form .bloque-pregunta > label,
.by-premium label:not(.wpcf7-list-item label) {
	display: flex !important;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	color: var(--by-tinta) !important;
	text-align: left !important;
}
.by-premium label br { display: none; }
.by-premium span.Opcional {
	position: static !important;
	top: auto !important;
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #EEF1F5;
	color: var(--by-apagado);
	font-size: 11px !important;
	font-weight: 500 !important;
	letter-spacing: .03em;
	line-height: 1.5;
	text-transform: uppercase;
}
.by-premium .wpcf7-form-control-wrap,
.by-premium span.wpcf7-form-control-wrap {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	line-height: normal !important;
}
.by-premium input[type="text"],
.by-premium input[type="email"],
.by-premium input[type="tel"],
.by-premium input[type="number"],
.by-premium input[type="date"],
.by-premium select,
.by-premium textarea,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 form.by-premium:not(#by-a):not(#by-b) textarea.wpcf7-form-control,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) select.wpcf7-form-control {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	height: var(--by-alto) !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1.5px solid var(--by-borde) !important;
	border-radius: var(--by-radio) !important;
	background-color: #fff !important;
	color: var(--by-tinta) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) textarea.wpcf7-form-control,
.by-premium textarea {
	height: 128px !important;
	min-height: 96px;
	padding: 14px 16px !important;
	resize: vertical;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) select.wpcf7-form-control,
.by-premium select {
	padding-right: 44px !important;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300121C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 18px center !important;
	background-size: 12px 8px !important;
}
.by-premium select:invalid,
.by-premium select option[value=""] { color: var(--by-apagado); }
.by-premium select option { color: var(--by-tinta); }
.by-premium ::placeholder { color: #8C979F; opacity: 1; }
.by-premium input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):hover,
.by-premium select:hover,
.by-premium textarea:hover { border-color: var(--by-borde-hover) !important; }
.wpcf7 form.by-premium input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7 form.by-premium select.wpcf7-form-control:focus,
.wpcf7 form.by-premium textarea.wpcf7-form-control:focus {
	outline: none !important;
	border-color: var(--by-primario) !important;
	box-shadow: 0 0 0 4px var(--by-primario-suave) !important;
}

/* ---------- Rejilla en escritorio: nombre a lo ancho, el resto en parejas ---------- */
@media (min-width: 768px) {
	.wpcf7 form.by-premium .bloq-2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		column-gap: 20px;
		align-items: start;
	}
	.wpcf7 form.by-premium .bloq-2 > * { grid-column: 1 / -1; }
	.wpcf7 form.by-premium .bloq-2 > .bloque-pregunta:not(:first-child) { grid-column: auto; }
	.wpcf7 form.by-premium .bloq-2 > .bloque-pregunta:not(:first-child):nth-last-child(n) { min-width: 0; }
}
.wpcf7 form.by-premium .bloque-pregunta { width: auto !important; max-width: none !important; min-width: 0 !important; }

/* ---------- Paso completado ---------- */
.by-premium .uacf7-steps .steps-step:has(~ .steps-step .uacf7-btn-active) .btn-circle {
	border-color: var(--by-primario) !important;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23D5346F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 10px no-repeat !important;
	color: transparent !important;
}
.by-premium .uacf7-steps .steps-step:has(~ .steps-step .uacf7-btn-active)::after { background: var(--by-primario) !important; }
.by-premium .uacf7-steps .steps-step:has(~ .steps-step .uacf7-btn-active) .steps-info p { color: var(--by-texto) !important; }

/* ---------- Errores de validación ---------- */
.wpcf7 form.by-premium .wpcf7-not-valid:not(.wpcf7-acceptance) { border-color: var(--by-error) !important; }
.by-premium .wpcf7-not-valid-tip {
	display: block;
	margin: 6px 2px 0 !important;
	color: var(--by-error) !important;
	font-size: 13px !important;
	font-weight: 500;
	line-height: 1.4;
}

/* ---------- Casillas legales ---------- */
.by-premium .legalesyenvioform {
	display: flex !important;
	flex-direction: column;
	gap: 14px;
	margin: 6px 0 0 !important;
	padding: 18px 20px !important;
	border-radius: var(--by-radio);
	background: var(--by-fondo-suave);
	font-size: 14px !important;
}
.by-premium .legalesyenvioform br { display: none; }
.by-premium .legalesyenvioform .wpcf7-form-control-wrap { display: block !important; }
.by-premium .wpcf7-acceptance,
.by-premium .legalesyenvioform .wpcf7-acceptance { display: block !important; margin: 0 !important; font-size: 14px !important; }
.by-premium .wpcf7-acceptance .wpcf7-list-item,
.by-premium .legalesyenvioform .wpcf7-list-item {
	display: block !important;
	height: auto !important;
	margin: 0 !important;
	font-size: 14px !important;
}
.by-premium .wpcf7-acceptance .wpcf7-list-item label {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	cursor: pointer;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--by-texto) !important;
}
.by-premium .wpcf7-acceptance .wpcf7-list-item-label {
	display: block !important;
	max-width: none !important;
	min-height: 0 !important;
	width: auto !important;
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: var(--by-texto) !important;
}
.by-premium .wpcf7-acceptance a { color: var(--by-primario) !important; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.by-premium input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative !important;
	top: 0 !important;
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	margin: 1px 0 0 !important;
	border: 1.5px solid var(--by-borde-hover);
	border-radius: 6px;
	background: #fff center / 12px 9px no-repeat;
	cursor: pointer;
	transition: all .15s ease;
}
.by-premium input[type="checkbox"]:hover { border-color: var(--by-primario); }
.by-premium input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--by-primario-suave); border-color: var(--by-primario); }
.by-premium input[type="checkbox"]:checked {
	border-color: var(--by-primario);
	background-color: var(--by-primario);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.by-premium .wpcf7-acceptance.wpcf7-not-valid input[type="checkbox"] { border-color: var(--by-error); }

/* ---------- Botones ---------- */
.by-premium .uacf7-step { position: relative; }
.wpcf7 form.by-premium p.uacf7-buttons,
.by-premium p.uacf7-buttons {
	position: static !important;
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: space-between !important;
	gap: 12px !important;
	width: auto !important;
	margin: 32px 0 0 !important;
	padding: 24px 0 0 !important;
	border-top: 1px solid #EDF0F3;
	background: none !important;
	left: auto !important;
	bottom: auto !important;
}
.by-premium .btn-enviar {
	position: static !important;
	display: flex !important;
	justify-content: flex-end !important;
	width: auto !important;
	margin: 32px 0 0 !important;
	padding: 24px 0 0 !important;
	border-top: 1px solid #EDF0F3;
	background: none !important;
}
/* Primer paso: sin «Anterior». Último paso: sin «Siguiente»; «Anterior» a la altura de «Enviar». */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step:not(.uacf7-step ~ .uacf7-step) button.uacf7-prev { display: none !important; }
.by-premium .uacf7-step:not(.uacf7-step ~ .uacf7-step) p.uacf7-buttons { justify-content: flex-end !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step:not(:has(~ .uacf7-step)) button.uacf7-next { display: none !important; }
.wpcf7 form.by-premium .uacf7-step:not(:has(~ .uacf7-step)):has(.btn-enviar) p.uacf7-buttons {
	position: absolute !important;
	left: 0 !important;
	bottom: 0 !important;
	height: var(--by-alto);
	margin: 0 !important;
	padding: 0 !important;
	border: 0;
}

.wpcf7 form.by-premium:not(#by-a):not(#by-b) button.uacf7-next,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input.wpcf7-submit,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-buttons input[type="submit"] {
	text-align: center !important;
	max-width: none !important;
	position: static !important;
	left: auto !important;
	top: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	float: none !important;
	height: var(--by-alto) !important;
	min-width: 180px;
	margin: 0 !important;
	padding: 0 30px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--by-primario) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	line-height: 1 !important;
	opacity: 1 !important;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(213, 52, 111, .28) !important;
	transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.wpcf7 form.by-premium button.uacf7-next::after { content: "→"; font-size: 17px; line-height: 1; }
.wpcf7 form.by-premium button.uacf7-next:hover,
.wpcf7 form.by-premium input.wpcf7-submit:hover:not(:disabled) {
	background: var(--by-primario-hover) !important;
	box-shadow: 0 8px 22px rgba(213, 52, 111, .34) !important;
	transform: translateY(-1px);
}
.wpcf7 form.by-premium button.uacf7-next:focus-visible,
.wpcf7 form.by-premium input.wpcf7-submit:focus-visible { outline: 3px solid var(--by-primario-suave); outline-offset: 3px; }
.wpcf7 form.by-premium input.wpcf7-submit:disabled {
	background: #E5A7BD !important;
	box-shadow: none !important;
	cursor: not-allowed;
	transform: none;
}
.wpcf7 form.by-premium button.uacf7-prev {
	position: static !important;
	left: auto !important;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	height: var(--by-alto) !important;
	margin: 0 !important;
	padding: 0 6px !important;
	border: 0 !important;
	background: none !important;
	color: var(--by-texto) !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	opacity: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.wpcf7 form.by-premium button.uacf7-prev::before { content: "←"; font-size: 17px; line-height: 1; }
.wpcf7 form.by-premium button.uacf7-prev:hover { color: var(--by-primario) !important; }
.by-premium .wpcf7-spinner { display: none !important; }
.wpcf7 form.by-premium.submitting input.wpcf7-submit { opacity: .7 !important; cursor: progress !important; }
.by-premium .uacf7-ajax-loader { display: none !important; }

/* ---------- Mensaje de respuesta ---------- */
.wpcf7 form.by-premium .wpcf7-response-output {
	margin: 24px 0 0 !important;
	padding: 14px 18px !important;
	border: 0 !important;
	border-radius: var(--by-radio);
	background: var(--by-fondo-suave);
	color: var(--by-texto);
	font-size: 14px;
	line-height: 1.5;
}
.wpcf7 form.by-premium.sent .wpcf7-response-output { background: #E7F5EE; color: var(--by-ok); font-weight: 500; }
.wpcf7 form.by-premium.invalid .wpcf7-response-output,
.wpcf7 form.by-premium.unaccepted .wpcf7-response-output,
.wpcf7 form.by-premium.failed .wpcf7-response-output,
.wpcf7 form.by-premium.spam .wpcf7-response-output,
.wpcf7 form.by-premium.aborted .wpcf7-response-output { background: #FCEBEE; color: var(--by-error); }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.wpcf7 form.wpcf7-form.by-premium {
		margin: 0 auto 40px;
		padding: 24px 18px 22px;
		border-radius: 16px;
		box-shadow: 0 6px 24px rgba(0, 18, 28, .07);
	}
	.by-premium .uacf7-steps.steps-form { margin-bottom: 26px !important; }
	.by-premium .uacf7-steps .steps-step { gap: 8px; }
	.by-premium .uacf7-steps .steps-step:not(:last-child)::after { margin: 0 10px; min-width: 12px; }
	.by-premium .uacf7-steps .steps-step:not(:has(.uacf7-btn-active)) .steps-info { display: none !important; }
	.by-premium .uacf7-steps .steps-info p { font-size: 12px !important; white-space: nowrap; }
	.by-premium .uacf7-steps .steps-step:has(.uacf7-btn-active) { flex: 0 1 auto; min-width: 0; }
	.by-premium .uacf7-steps .steps-step:not(:last-child)::after { min-width: 20px; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) select.wpcf7-form-control,
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) textarea.wpcf7-form-control { font-size: 16px !important; } /* evita el zoom de iOS */
	.by-premium .legalesyenvioform { padding: 16px !important; }
	.wpcf7 form.by-premium p.uacf7-buttons,
	.by-premium .btn-enviar { margin-top: 24px !important; padding-top: 20px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) button.uacf7-next,
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) input.wpcf7-submit { width: 100% !important; min-width: 0; flex: 1 1 100%; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .btn-enviar { display: block !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step:not(:has(~ .uacf7-step)) button.uacf7-prev { margin: 0 auto !important; }
	.by-premium .uacf7-step:not(.uacf7-step ~ .uacf7-step) p.uacf7-buttons { justify-content: stretch !important; }
	.wpcf7 form.by-premium .uacf7-step:not(:has(~ .uacf7-step)):has(.btn-enviar) p.uacf7-buttons {
		position: static !important;
		justify-content: center !important;
		width: 100% !important;
		height: auto;
		margin: 12px 0 0 !important;
	}
}

/* ---------- Variante «progressbar-style-8» (texto dentro del enlace del paso) ---------- */
.by-premium .uacf7-steps-wrapper {
	display: block !important;
	position: static !important;
	margin: 0 0 32px !important;
	padding: 0 !important;
	overflow: visible !important;
	background: none !important;
}
.by-premium .uacf7-steps-wrapper ~ .uacf7-steps-wrapper,
.by-premium .uacf7-multisetp-form .uacf7-steps-wrapper,
.by-premium .uacf7-steps-wrapper .scroll-btn { display: none !important; }
.by-premium .uacf7-steps-wrapper .uacf7-steps.steps-form { margin: 0 !important; }
.wpcf7 form.by-premium .progressbar-style-8 .steps-row { counter-reset: by-paso; }
.wpcf7 form.by-premium .progressbar-style-8 .steps-step { counter-increment: by-paso; }
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 12px;
	width: auto !important;
	height: auto !important;
	min-width: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
	color: var(--by-apagado) !important;
}
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle::before {
	content: counter(by-paso);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border: 2px solid #D3D9DF;
	border-radius: 50%;
	background: #fff;
	color: var(--by-apagado);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: all .25s ease;
}
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle.uacf7-btn-active::before {
	border-color: var(--by-primario);
	background: var(--by-primario);
	color: #fff;
	box-shadow: 0 0 0 5px var(--by-primario-suave);
}
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step:has(~ .steps-step .uacf7-btn-active) .btn-circle::before {
	content: "";
	border-color: var(--by-primario);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3.2L11 1' fill='none' stroke='%23D5346F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 10px no-repeat;
}
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .04em;
	line-height: 1.3 !important;
	color: var(--by-apagado) !important;
	text-align: left !important;
	white-space: nowrap;
	background: none !important;
}
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle.uacf7-btn-active p { color: var(--by-tinta) !important; font-weight: 600 !important; }
.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .steps-info { display: none !important; }
.wpcf7 form.by-premium .progressbar-style-8 .steps-step::before { display: none !important; }

/* ---------- Opciones de respuesta única (Sí / No…) como tarjetas ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 12px !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio .wpcf7-list-item {
	display: block !important;
	flex: 1 1 140px;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio .wpcf7-list-item label {
	display: flex !important;
	align-items: center;
	gap: 12px;
	min-height: var(--by-alto);
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1.5px solid var(--by-borde);
	border-radius: var(--by-radio);
	background: #fff;
	cursor: pointer;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--by-tinta) !important;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio .wpcf7-list-item label:hover { border-color: var(--by-borde-hover); }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio .wpcf7-list-item label:has(input:checked) {
	border-color: var(--by-primario);
	background: #FDF3F7;
	box-shadow: 0 0 0 3px var(--by-primario-suave);
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-radio .wpcf7-list-item-label {
	display: inline !important;
	width: auto !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	color: inherit !important;
	text-indent: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	position: static !important;
	top: auto !important;
	display: inline-block !important;
	flex: 0 0 20px;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	border: 1.5px solid var(--by-borde-hover);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: all .15s ease;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input[type="radio"]:checked {
	border-color: var(--by-primario);
	box-shadow: inset 0 0 0 4px #fff;
	background: var(--by-primario);
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input[type="radio"]:focus-visible { outline: none; box-shadow: inset 0 0 0 4px #fff, 0 0 0 4px var(--by-primario-suave); }

/* ---------- Mapa de ubicación ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) #map2,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) #map2 #map {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) #map2 #map {
	height: 320px !important;
	margin: 0 !important;
	border: 1.5px solid var(--by-borde);
	border-radius: var(--by-radio);
	overflow: hidden;
}

@media (max-width: 767px) {
	.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle:not(.uacf7-btn-active) p { display: none !important; }
	.wpcf7 form.by-premium:not(#by-a) .progressbar-style-8 .steps-step .btn-circle p { font-size: 12px !important; }
	.wpcf7 form.by-premium:not(#by-a) .uacf7-steps .steps-step:has(.uacf7-btn-active),
	.wpcf7 form.by-premium:not(#by-a) .uacf7-steps .steps-step .btn-circle.uacf7-btn-active { min-width: 0; flex-shrink: 1; }
	.wpcf7 form.by-premium:not(#by-a) .uacf7-steps .steps-step .btn-circle p,
	.wpcf7 form.by-premium:not(#by-a) .uacf7-steps .steps-info p { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
	.wpcf7 form.by-premium:not(#by-a) .uacf7-steps .steps-info { min-width: 0; overflow: hidden; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) #map2 #map { height: 260px !important; }
}

/* ---------- Casillas legales de tipo «checkbox» (p. ej. Ubicación) ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform .wpcf7-checkbox { display: block !important; margin: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform .wpcf7-checkbox .wpcf7-list-item { display: block !important; height: auto !important; margin: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform .wpcf7-checkbox .wpcf7-list-item label {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	margin: 0 !important;
	cursor: pointer;
	font-size: 14px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--by-texto) !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform .wpcf7-checkbox .wpcf7-list-item-label {
	display: block !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

/* ---------- Móvil: bloque del formulario a todo el ancho y centrado ---------- */
@media (max-width: 767px) {
	.elementor-widget:has(form.by-premium) {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 16px !important;
		padding-right: 16px !important;
		--container-widget-width: 100% !important;
		--container-widget-flex-grow: 1 !important;
	}
	/* Espacio para que el globo del chat no tape el botón al final de la página */
	.wpcf7 form.wpcf7-form.by-premium { margin-bottom: 110px; }
}

/* ---------- Indicador de pasos siempre dentro de la tarjeta (Becomeyoo 2026-11-10) ----------
 * Ultra Addons lo pinta como display:table, que no se encoge: con el texto del paso en una línea
 * empujaba el último círculo fuera de la tarjeta en móvil. */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.steps-form:has(.btn-circle) {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
}
/* El plugin deja un segundo indicador vacío: se oculta */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.steps-form:not(:has(.btn-circle)) { display: none !important; }
/* Los círculos no se encogen (en la variante style-8 el círculo es un ::before dentro del enlace) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:not(.progressbar-style-8) .steps-step .btn-circle { flex-shrink: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row { width: 100% !important; min-width: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-step:not(:has(.uacf7-btn-active)) { flex-shrink: 0; }
/* Con 4 pasos o más, en escritorio solo se nombra el paso actual */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .steps-step:not(:has(.uacf7-btn-active)) .steps-info,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .steps-step .btn-circle:not(.uacf7-btn-active) p { display: none !important; }
/* Móvil: «PASO 1 DE 2», nombre del paso y barra de progreso por tramos (en vez de círculos) */
@media (max-width: 767px) {
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row {
		position: relative !important;
		display: flex !important;
		align-items: stretch !important;
		gap: 6px !important;
		padding: 54px 0 0 !important;
		counter-reset: by-n;
	}
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row:has(> .steps-step:nth-child(2):last-child) { --by-total: "2"; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row:has(> .steps-step:nth-child(3):last-child) { --by-total: "3"; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row:has(> .steps-step:nth-child(4):last-child) { --by-total: "4"; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row:has(> .steps-step:nth-child(5):last-child) { --by-total: "5"; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row:has(> .steps-step:nth-child(6):last-child) { --by-total: "6"; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step {
		position: static !important;
		counter-increment: by-n;
		display: block !important;
		flex: 1 1 0 !important;
		min-width: 0 !important;
		height: 5px !important;
		margin: 0 !important;
		padding: 0 !important;
		border-radius: 5px;
		background: #E3E8EE !important;
		transition: background-color .3s ease;
	}
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(.uacf7-btn-active),
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(~ .steps-step .uacf7-btn-active) { background: var(--by-primario) !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step::after { display: none !important; }
	/* Línea superior: «PASO 1 DE 2» */
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(.uacf7-btn-active)::before {
		content: "Paso " counter(by-n) " de " var(--by-total, "") !important;
		display: block !important;
		position: absolute !important;
		top: 0; left: 0; right: 0;
		width: auto !important; height: auto !important;
		margin: 0 !important; padding: 0 !important;
		background: none !important; border: 0 !important; box-shadow: none !important;
		font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 16px;
		text-transform: uppercase; color: var(--by-apagado);
	}
	:lang(en) .wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(.uacf7-btn-active)::before { content: "Step " counter(by-n) " of " var(--by-total, "") !important; }
	/* Se ocultan los círculos y los nombres de los pasos que no son el actual */
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:not(:has(.uacf7-btn-active)) > *,
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:not(.progressbar-style-8) .steps-row .steps-step .btn-circle { display: none !important; }
	/* Nombre del paso actual (variante normal: .steps-info; variante style-8: texto dentro del enlace) */
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(.uacf7-btn-active) .steps-info,
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.progressbar-style-8 .steps-row .steps-step .btn-circle.uacf7-btn-active {
		display: block !important;
		position: absolute !important;
		top: 19px; left: 0; right: 0;
		width: auto !important; height: auto !important; min-width: 0 !important;
		margin: 0 !important; padding: 0 !important;
		background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
		text-align: left !important; pointer-events: none;
		transform: none !important;
	}
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.progressbar-style-8 .steps-row .steps-step .btn-circle.uacf7-btn-active::before { display: none !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps .steps-row .steps-step:has(.uacf7-btn-active) .steps-info p,
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.progressbar-style-8 .steps-row .steps-step .btn-circle.uacf7-btn-active p {
		display: block !important;
		margin: 0 !important; padding: 0 !important;
		font-size: 17px !important; font-weight: 600 !important; line-height: 24px !important;
		letter-spacing: 0 !important; text-transform: none !important;
		color: var(--by-tinta) !important;
		white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
	}
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps.steps-form { margin-bottom: 28px !important; }
	.wpcf7 form.by-premium .uacf7-steps .by-paso-n { display: none !important; }
}
/* Aviso de cookies: en móviles de 375 px era 13 px más ancho que la pantalla y provocaba scroll lateral */
@media (max-width: 480px) {
	.cky-consent-container.cky-box-bottom-left,
	.cky-consent-container.cky-box-bottom-right { max-width: calc(100vw - 16px) !important; }
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) select.wpcf7-form-control { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }

/* ---------- Formulario Wenea Care by Caser (11400) — Becomeyoo 2026-11-10 ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
/* «¿Tienes dudas? Llámanos»: discreto, arriba a la derecha */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser-dudas {
	position: static !important;
	display: flex !important;
	justify-content: flex-end;
	width: auto !important;
	margin: 0 0 20px !important;
	padding: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser-dudas img { display: block; width: auto !important; max-width: 100%; height: 44px !important; }
/* Títulos de cada paso */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser label.titulo {
	display: block !important;
	margin: 0 0 22px !important;
	text-align: left !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser label.titulo strong {
	display: block;
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -.01em !important;
	text-align: left !important;
	color: var(--by-tinta) !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-pregunta,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-pregunta.tipo-ubicacion {
	display: block !important;
	width: auto !important;
	margin: 0 0 22px !important;
	align-items: initial !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .campo { margin: 0 !important; padding: 0 !important; width: auto !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .nota {
	margin: 10px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 10px;
	background: var(--by-fondo-suave);
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: var(--by-texto) !important;
	text-align: left !important;
}
/* Paso 1: tarjetas con foto (toda la tarjeta selecciona la opción) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-form-control-wrap { width: 100% !important; max-width: 100% !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item { min-width: 0 !important; width: auto !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item label { gap: 12px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item label input[type="radio"] { flex: 0 0 auto; margin: 1px 0 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item {
	position: relative;
	display: flex !important;
	flex-direction: column;
	overflow: hidden;
	border: 1.5px solid var(--by-borde);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item:hover { border-color: var(--by-borde-hover); box-shadow: 0 8px 24px rgba(0, 18, 28, .08); }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item:has(input:checked) {
	border-color: var(--by-primario);
	box-shadow: 0 0 0 3px var(--by-primario-suave);
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-list-item::before {
	content: "" !important;
	display: block !important;
	width: 100% !important;
	height: 190px !important;
	margin: 0 !important;
	border-radius: 0 !important;
	background-position: center !important;
	background-size: cover !important;
	background-repeat: no-repeat !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-list-item.first::before { background-image: url("/wp-content/uploads/2025/01/vivienda-unifamiliar.png") !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-list-item.last::before { background-image: url("/wp-content/uploads/2025/01/vivienda-comunitario.png") !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item label {
	position: static !important;
	flex: 1 1 auto;
	align-items: flex-start !important;
	min-height: 0 !important;
	padding: 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item label::after { content: ""; position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item:has(input:checked) label { background: #FDF3F7 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item input[type="radio"] { margin-top: 1px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloq-3,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloq-3 .campo,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloq-4 > * { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
/* El CSS antiguo de la página fija min-width:705px en .bloq-3 */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .wpcf7-form-control-wrap,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser input.wpcf7-form-control:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser select.wpcf7-form-control { min-width: 0 !important; max-width: 100% !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .campo { display: block !important; }
/* Paso 4: dirección en rejilla */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloq-4 { display: block !important; width: auto !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion {
	display: grid !important;
	grid-template-columns: 1fr 2fr;
	column-gap: 16px;
	width: auto !important;
	margin: 0 0 22px !important;
	padding: 0 !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > * { min-width: 0; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > .wpcf7-form-control-wrap { margin-bottom: 22px !important; }
/* label/campo: Tipo de vía | Calle, y debajo Número | Otros */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(1) { grid-area: 1 / 1; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(2) { grid-area: 2 / 1; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(3) { grid-area: 1 / 2; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(4) { grid-area: 2 / 2; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(5) { grid-area: 3 / 1; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(6) { grid-area: 4 / 1; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(7) { grid-area: 3 / 2; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion > :nth-child(8) { grid-area: 4 / 2; }
/* Paso 4 a todo el ancho de la tarjeta (el CSS de la página lo estrechaba) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloq-4 { max-width: none !important; margin: 0 !important; padding: 0 !important; }
/* Texto legal suelto tras la casilla: casilla a la izquierda y texto seguido */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .legalesyenvioform { display: block !important; line-height: 1.5 !important; color: var(--by-texto); }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .legalesyenvioform > .wpcf7-form-control-wrap:has(.wpcf7-acceptance) { float: left; display: block !important; width: auto !important; margin: 1px 10px 0 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .legalesyenvioform > .wpcf7-form-control-wrap:has(.wpcf7-acceptance) .wpcf7-list-item-label:empty { display: none !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .legalesyenvioform > a { display: inline !important; font-weight: 600; color: var(--by-tinta) !important; text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .legalesyenvioform > .wpcf7-form-control-wrap:has(.wpcf7-checkbox) { clear: both; padding-top: 14px; }
/* Fecha: icono de calendario a tamaño normal */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser input[type="date"] { background-size: 20px 20px !important; background-position: right 16px center !important; padding-right: 48px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser input[type="date"]::-webkit-calendar-picker-indicator { width: 20px; height: 20px; background-size: 20px 20px; }
/* Logo «Patrocinado por Caser» al pie */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser { display: flex !important; justify-content: center; margin: 28px 0 0 !important; padding: 0 !important; width: auto !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser img { width: auto !important; height: 56px !important; }
@media (max-width: 767px) {
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser-dudas { justify-content: center; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .logo-caser-dudas img { height: 40px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser label.titulo strong { font-size: 20px !important; }
	/* Tarjetas horizontales: foto a la izquierda */
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio { grid-template-columns: minmax(0, 1fr); gap: 12px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item { flex-direction: row; align-items: stretch; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-list-item::before { flex: 0 0 104px; width: 104px !important; height: auto !important; min-height: 96px; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .tipo-ubicacion .wpcf7-radio .wpcf7-list-item label { align-items: center !important; padding: 14px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .form-caser .bloque-direccion { display: block !important; }
}
@media (min-width: 768px) {
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .steps-step:not(:last-child)::after { min-width: 12px !important; margin: 0 8px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .steps-step { gap: 8px !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .steps-step:has(.uacf7-btn-active) { flex: 0 1 auto !important; min-width: 0 !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:has(.steps-step:nth-child(4)) .btn-circle.uacf7-btn-active p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
/* Móvil, pasos intermedios: «Siguiente» a todo el ancho y «Anterior» debajo */
@media (max-width: 767px) {
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) p.uacf7-buttons:has(.uacf7-prev):has(.uacf7-next) {
		display: flex !important;
		flex-direction: column-reverse !important;
		align-items: stretch !important;
		gap: 6px !important;
	}
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) p.uacf7-buttons:has(.uacf7-prev):has(.uacf7-next) button.uacf7-next { width: 100% !important; min-width: 0 !important; flex: 0 0 auto !important; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) p.uacf7-buttons:has(.uacf7-prev):has(.uacf7-next) button.uacf7-prev { align-self: center !important; width: auto !important; margin: 0 auto !important; padding: 10px 16px !important; justify-content: center !important; }
}

/* ---------- Generales: anula anchos mínimos/máximos fijados por el CSS antiguo de cada página ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .wpcf7-form-control-wrap,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) input.wpcf7-form-control:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.wpcf7 form.by-premium:not(#by-a):not(#by-b) select.wpcf7-form-control,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) textarea.wpcf7-form-control { min-width: 0 !important; max-width: 100% !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step.step-content { margin-top: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .bloq-2,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform { max-width: none !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .bloq-2 .bloque-pregunta { gap: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) p.uacf7-buttons,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-buttons { margin-top: 28px !important; }
/* Paso activo en el indicador (algunas páginas lo pintaban blanco con reglas por ID) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-steps:not(.progressbar-style-8) .steps-step .btn-circle.uacf7-btn-active {
	background: var(--by-primario) !important;
	border-color: var(--by-primario) !important;
	color: #fff !important;
}

/* ---------- Formulario «Presupuesto para casa» (6989): tarjetas de producto con imagen ---------- */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto { display: block !important; max-width: none !important; margin: 0 0 8px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-radio { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 12px !important; width: 100% !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item { width: auto !important; min-width: 0 !important; margin: 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item label { min-height: 72px; padding: 14px 18px !important; gap: 16px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto input[type="radio"] { display: inline-block !important; flex: 0 0 auto; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item-label {
	display: block !important;
	flex: 1 1 auto;
	width: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: var(--by-tinta) !important;
	text-align: left !important;
}
/* Opciones con imagen: la imagen ya incluye el contenido; el texto queda solo para lectores de pantalla */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item:nth-child(-n+2) .wpcf7-list-item-label {
	position: relative;
	height: 96px;
	font-size: 0 !important;
	line-height: 0 !important;
	color: transparent !important;
	text-indent: 0 !important;
	overflow: hidden;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item-label::before {
	position: absolute; inset: 0;
	width: auto !important; height: auto !important; margin: 0 !important;
	background-repeat: no-repeat !important; background-size: contain !important; background-position: left center !important;
}
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::before { content: "" !important; display: block !important; background-image: url("/wp-content/uploads/2025/05/0003formulario.png") !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::before { content: "" !important; display: block !important; background-image: url("/wp-content/uploads/2025/04/0002formulario-1.png") !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item:nth-child(n+3) .wpcf7-list-item-label::before { display: none !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto input[type="radio"]:checked + .wpcf7-list-item-label { border: 0 !important; background: none !important; }
@media (max-width: 767px) {
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item:nth-child(-n+2) .wpcf7-list-item-label { height: 76px; }
	.wpcf7 form.by-premium:not(#by-a):not(#by-b) .opciones-producto .wpcf7-list-item label { padding: 12px 14px !important; gap: 12px !important; }
}
/* Separación entre preguntas aunque la página tenga reglas por ID (p. ej. margin-bottom:-16px en 6989) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .uacf7-step > .bloque-pregunta,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .bloque-pregunta { margin: 0 0 22px !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .bloq-2 > .bloque-pregunta,
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .bloque-direccion .bloque-pregunta { margin-bottom: 22px !important; }
/* Etiquetas con negritas: texto seguido (con flex cada trozo quedaba separado) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) label:not(.wpcf7-list-item label) { display: block !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) label:not(.wpcf7-list-item label) strong { font-weight: 600 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) label span.Opcional { margin-left: 8px; vertical-align: 1px; }
/* Texto legal suelto tras la casilla (formularios cuyo texto no va dentro de la casilla) */
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform:has(> a) { display: block !important; line-height: 1.5 !important; color: var(--by-texto); }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform:has(> a) > .wpcf7-form-control-wrap:first-child { float: left; display: block !important; width: auto !important; margin: 1px 10px 0 0 !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform:has(> a) > .wpcf7-form-control-wrap:first-child .wpcf7-list-item-label:empty { display: none !important; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform:has(> a) > a { display: inline !important; font-weight: 600; color: var(--by-tinta) !important; text-decoration: underline; text-underline-offset: 2px; }
.wpcf7 form.by-premium:not(#by-a):not(#by-b) .legalesyenvioform:has(> a) > .wpcf7-form-control-wrap:not(:first-child) { clear: both; display: block !important; padding-top: 14px; }
