/* ============================================================
   Lead-capture popup ("Recibe ofertas de tu sector")
   ============================================================ */

.otth-lead-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}

.otth-lead-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.otth-lead-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 20, 30, 0.6);
	backdrop-filter: blur(2px);
}

.otth-lead-popup__box {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--otth-white);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	padding: 34px 30px 30px;
	transform: translateY(16px) scale(.98);
	transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.otth-lead-popup.is-open .otth-lead-popup__box {
	transform: translateY(0) scale(1);
}

.otth-lead-popup__close {
	position: absolute;
	top: 12px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #9aa0a6;
	cursor: pointer;
	border-radius: 50%;
	transition: background .15s ease, color .15s ease;
}

.otth-lead-popup__close:hover {
	background: #f1f1ef;
	color: var(--otth-text);
}

.otth-lead-popup__badge {
	display: inline-block;
	font-family: var(--otth-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--otth-primary);
	background: rgba(242, 169, 59, 0.18);
	border-radius: 999px;
	padding: 5px 12px;
	margin-bottom: 14px;
}

.otth-lead-popup__title {
	font-family: var(--otth-font-heading);
	font-size: 26px;
	line-height: 1.2;
	color: var(--otth-primary);
	margin: 0 0 10px;
}

.otth-lead-popup__text {
	font-size: 15px;
	line-height: 1.5;
	color: #4a4f56;
	margin: 0 0 20px;
}

.otth-lead-popup__form {
	display: flex;
	flex-direction: column;
}

.otth-lead-popup__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--otth-text);
	margin-bottom: 5px;
}

.otth-lead-popup__select,
.otth-lead-popup__input {
	width: 100%;
	font-family: var(--otth-font-body);
	font-size: 15px;
	color: var(--otth-text);
	background: var(--otth-white);
	border: 1.5px solid var(--otth-border);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.otth-lead-popup__select:focus,
.otth-lead-popup__input:focus {
	outline: none;
	border-color: var(--otth-primary);
	box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.12);
}

.otth-lead-popup__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	line-height: 1.4;
	color: #5a5f66;
	margin-bottom: 18px;
}

.otth-lead-popup__consent input {
	margin-top: 2px;
	flex-shrink: 0;
}

.otth-lead-popup__consent a {
	color: var(--otth-primary);
	text-decoration: underline;
}

.otth-lead-popup__submit {
	width: 100%;
	font-family: var(--otth-font-heading);
	font-size: 16px;
	font-weight: 600;
	color: var(--otth-white);
	background: var(--otth-primary);
	border: none;
	border-radius: 10px;
	padding: 14px 18px;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}

.otth-lead-popup__submit:hover {
	background: #142138;
}

.otth-lead-popup__submit:active {
	transform: scale(.99);
}

.otth-lead-popup__submit:disabled {
	opacity: .7;
	cursor: default;
}

.otth-lead-popup__msg {
	font-size: 13.5px;
	line-height: 1.4;
	margin: 12px 0 0;
	min-height: 18px;
	text-align: center;
}

.otth-lead-popup__msg.is-error {
	color: #c0392b;
}

.otth-lead-popup__msg.is-success {
	color: var(--otth-new);
	font-weight: 600;
}

/* Success state: hide the form fields, keep the message centred. */
.otth-lead-popup.is-done .otth-lead-popup__form > *:not(.otth-lead-popup__msg) {
	display: none;
}

.otth-lead-popup.is-done .otth-lead-popup__text {
	display: none;
}

@media (max-width: 480px) {
	.otth-lead-popup__box {
		padding: 30px 22px 24px;
	}
	.otth-lead-popup__title {
		font-size: 22px;
	}
}
