/* ESTB Newsletter (Mautic) v1.1.0 — branding EST.B. Sin container queries (rompen las rejillas de Elementor). */

.estb-nl {
	--estb-nl-bg: #ffffff;
	--estb-nl-accent: #E75655;
	--estb-nl-topline: 0px;
	--estb-nl-ink: #101617;
	--estb-nl-text: #101617;
	--estb-nl-muted: #4C6670;
	--estb-nl-kicker: #4C6670;
	--estb-nl-label: #101617;
	--estb-nl-border: #A4B5BC;
	--estb-nl-focus: #3F807C;
	--estb-nl-input-bg: #ffffff;
	--estb-nl-input-color: #101617;
	--estb-nl-input-radius: 4px;
	--estb-nl-h: 54px;
	--estb-nl-btn-bg: var(--estb-nl-accent);
	--estb-nl-btn-color: #101617;
	--estb-nl-btn-border: var(--estb-nl-btn-bg);
	--estb-nl-btn-bg-hover: #1E3A4A;
	--estb-nl-btn-color-hover: #ffffff;
	--estb-nl-btn-border-hover: var(--estb-nl-btn-bg-hover);
	--estb-nl-btn-radius: 999px;
	--estb-nl-icon-move: 4px;
	--estb-nl-error: #B42318;
	--estb-nl-ok: #3F807C;
	--estb-nl-dir: row;
	--estb-nl-btn-w: auto;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	background: var(--estb-nl-bg);
	color: var(--estb-nl-text);
	border-top: var(--estb-nl-topline) solid var(--estb-nl-accent);
	padding: 24px 28px 18px;
	font-family: inherit;
	line-height: 1.45;
}
.estb-nl *,
.estb-nl *::before,
.estb-nl *::after { box-sizing: border-box; }

/* Temas */
.estb-nl-theme-dark .estb-nl {
	--estb-nl-bg: #1E3A4A;
	--estb-nl-ink: #ffffff;
	--estb-nl-text: rgba(255, 255, 255, .9);
	--estb-nl-muted: rgba(255, 255, 255, .66);
	--estb-nl-kicker: #E75655;
	--estb-nl-label: #ffffff;
	--estb-nl-border: rgba(255, 255, 255, .42);
	--estb-nl-focus: #ffffff;
	--estb-nl-input-bg: rgba(255, 255, 255, .06);
	--estb-nl-input-color: #ffffff;
	--estb-nl-btn-bg-hover: #ffffff;
	--estb-nl-btn-color-hover: #1E3A4A;
	--estb-nl-error: #FFB4A9;
	--estb-nl-ok: #9ED3CE;
}
.estb-nl-theme-transparent .estb-nl {
	--estb-nl-bg: transparent;
	padding: 0;
}

/* Encabezado */
.estb-nl__head { margin-bottom: 18px; }
.estb-nl__kicker {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--estb-nl-kicker);
}
.estb-nl .estb-nl__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--estb-nl-ink);
}
.estb-nl__en {
	display: block;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--estb-nl-muted);
}
.estb-nl__en--title { margin-top: 4px; font-size: 14px; }
.estb-nl__intro { margin-top: 10px; }
.estb-nl__intro p { margin: 0; font-size: 15px; color: var(--estb-nl-text); }
.estb-nl__intro p.estb-nl__en { margin-top: 2px; font-size: 12px; color: var(--estb-nl-muted); }

/* Campos */
.estb-nl__fields { display: flex; flex-direction: column; gap: 14px; }
.estb-nl__row {
	display: flex;
	flex-direction: var(--estb-nl-dir);
	align-items: flex-end;
	gap: 12px;
}
.estb-nl__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.estb-nl__field--email { flex: 1 1 auto; width: 100%; }
.estb-nl__label { display: block; }
.estb-nl__label-main {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--estb-nl-label);
}
.estb-nl .estb-nl__input {
	display: block;
	width: 100%;
	height: var(--estb-nl-h);
	min-height: 0;
	margin: 0;
	padding: 0 16px;
	font: inherit;
	font-size: 16px; /* evita el zoom de iOS */
	color: var(--estb-nl-input-color);
	background: var(--estb-nl-input-bg);
	border: 1px solid var(--estb-nl-border);
	border-radius: var(--estb-nl-input-radius);
	box-shadow: none;
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}
.estb-nl .estb-nl__input::placeholder { color: var(--estb-nl-muted); opacity: .85; }
.estb-nl .estb-nl__input:focus {
	border-color: var(--estb-nl-focus);
	box-shadow: 0 0 0 1px var(--estb-nl-focus);
}
.estb-nl .estb-nl__input[aria-invalid="true"] {
	border-color: var(--estb-nl-error);
	box-shadow: 0 0 0 1px var(--estb-nl-error);
}

/* Botón bilingüe (mismo lenguaje que "Quiero información / Request information") */
.estb-nl .estb-nl__btn {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: var(--estb-nl-btn-w);
	min-height: var(--estb-nl-h);
	margin: 0;
	padding: 6px 22px 6px 26px;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	color: var(--estb-nl-btn-color);
	background: var(--estb-nl-btn-bg);
	border: 1px solid var(--estb-nl-btn-border);
	border-radius: var(--estb-nl-btn-radius);
	box-shadow: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.estb-nl .estb-nl__btn:hover,
.estb-nl .estb-nl__btn:focus-visible {
	color: var(--estb-nl-btn-color-hover);
	background: var(--estb-nl-btn-bg-hover);
	border-color: var(--estb-nl-btn-border-hover);
}
.estb-nl .estb-nl__btn:focus-visible { outline: 2px solid var(--estb-nl-focus); outline-offset: 3px; }
.estb-nl__btn-texts { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.estb-nl__btn-main { font-size: 16px; font-weight: 700; }
.estb-nl__btn-en { margin-top: 3px; font-size: 12px; font-weight: 500; opacity: .78; }
.estb-nl__btn-icon { display: inline-flex; transition: transform .3s ease; }
.estb-nl__btn:hover .estb-nl__btn-icon,
.estb-nl__btn:focus-visible .estb-nl__btn-icon { transform: translateX(var(--estb-nl-icon-move)); }

/* Estado enviando */
.estb-nl__spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: estb-nl-spin .8s linear infinite;
}
.estb-nl.is-sending .estb-nl__btn { cursor: progress; }
.estb-nl.is-sending .estb-nl__btn-icon { display: none; }
.estb-nl.is-sending .estb-nl__spinner { display: inline-block; }
@keyframes estb-nl-spin { to { transform: rotate(360deg); } }

/* Privacidad */
.estb-nl__privacy {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	font-size: 13px;
	color: var(--estb-nl-text);
}
.estb-nl .estb-nl__check {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--estb-nl-focus);
	cursor: pointer;
}
.estb-nl-theme-dark .estb-nl .estb-nl__check { accent-color: var(--estb-nl-accent); }
.estb-nl__privacy label { cursor: pointer; }
.estb-nl__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.estb-nl__privacy a:hover { color: var(--estb-nl-accent); }
.estb-nl__privacy.is-invalid { color: var(--estb-nl-error); }
.estb-nl__privacy .estb-nl__en { margin-top: 2px; }

/* Mensajes */
.estb-nl__msg:empty { display: none; }
.estb-nl__msg {
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--estb-nl-error);
}
.estb-nl__msg .estb-nl__en { font-weight: 400; color: inherit; opacity: .8; }

.estb-nl__done {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-left: 3px solid var(--estb-nl-ok);
	background: color-mix(in srgb, var(--estb-nl-ok) 10%, transparent);
	color: var(--estb-nl-ink);
	outline: none;
}
.estb-nl__done[hidden] { display: none; }
.estb-nl__done-icon { display: inline-flex; color: var(--estb-nl-ok); }
.estb-nl__done-main { display: block; font-size: 15px; font-weight: 600; }
.estb-nl__form + .estb-nl__done { margin-top: 14px; }
.estb-nl.is-done .estb-nl__form.is-hidden { display: none; }
.estb-nl.is-done .estb-nl__form.is-hidden + .estb-nl__done { margin-top: 0; }

/* Info legal */
.estb-nl__legal {
	margin-top: 14px;
	font-size: 12px;
	color: var(--estb-nl-muted);
}
.estb-nl__legal summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--estb-nl-muted);
	list-style-position: inside;
}
.estb-nl__legal p { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--estb-nl-muted); }
.estb-nl__legal p.estb-nl__en { opacity: .85; }

/* Utilidades */
.estb-nl__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.estb-nl__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.estb-nl__frame { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
.estb-nl__notice {
	margin-bottom: 14px;
	padding: 10px 12px;
	font-size: 12px;
	background: #FFF4E5;
	color: #7A4A00;
	border-left: 3px solid #F5A524;
}

/* Responsive (mismos cortes que el formulario "Hablemos.") */
@media (max-width: 480px) {
	.estb-nl { padding: 20px 18px 16px; }
	.estb-nl .estb-nl__title { font-size: 22px; }
	/* Respaldo: el control "Disposición" de Elementor (selector más específico) manda si se ha tocado. */
	.estb-nl { --estb-nl-dir: column; --estb-nl-btn-w: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.estb-nl__btn,
	.estb-nl__btn-icon,
	.estb-nl .estb-nl__input { transition: none; }
	.estb-nl__spinner { animation-duration: 2s; }
}
