/* Banner Newsletter ESTB · v1.0.0 */

.estb-nlb {
	--nlb-bg: #123A4A;
	--nlb-ink: #FFFFFF;
	--nlb-text: #E4ECEE;
	--nlb-muted: #A9C0C7;
	--nlb-accent: #EE6A63;
	--nlb-chip-line: rgba(201, 217, 221, .28);
	--nlb-deco: rgba(201, 217, 221, .16);
	--nlb-postmark: rgba(178, 202, 209, .8);
	--nlb-radius: 4px;

	--nlb-card: #FFFFFF;
	--nlb-card-ink: #123A4A;
	--nlb-card-muted: #4C6670;
	--nlb-field-line: #A4B5BC;
	--nlb-focus: #3F807C;
	--nlb-btn: #E1464E;
	--nlb-btn-ink: #101617;
	--nlb-error: #B8322B;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	padding: clamp(40px, 5.5vw, 80px) clamp(22px, 5.5vw, 80px);
	border-radius: var(--nlb-radius);
	background: var(--nlb-bg);
	color: var(--nlb-text);
	font-family: inherit;
}

.estb-nlb *,
.estb-nlb *::before,
.estb-nlb *::after {
	box-sizing: border-box;
}

.estb-nlb--sky {
	--nlb-bg: #C9D9DD;
	--nlb-ink: #123A4A;
	--nlb-text: #123A4A;
	--nlb-muted: #4C6670;
	--nlb-accent: #D23F47;
	--nlb-chip-line: rgba(18, 58, 74, .22);
	--nlb-deco: rgba(18, 58, 74, .10);
	--nlb-postmark: rgba(18, 58, 74, .38);
}

.estb-nlb--blush {
	--nlb-bg: #F9F2F2;
	--nlb-ink: #123A4A;
	--nlb-text: #123A4A;
	--nlb-muted: #4C6670;
	--nlb-accent: #E1464E;
	--nlb-chip-line: rgba(18, 58, 74, .16);
	--nlb-deco: rgba(225, 70, 78, .12);
	--nlb-postmark: rgba(225, 70, 78, .42);
}

/* ---------- Decoración de fondo ---------- */

.estb-nlb__waves {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: 58%;
	height: 100%;
	fill: none;
	stroke: var(--nlb-deco);
	stroke-width: 1.4;
	vector-effect: non-scaling-stroke;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	pointer-events: none;
}

.estb-nlb__waves path {
	vector-effect: non-scaling-stroke;
}

/* ---------- Estructura ---------- */

.estb-nlb__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
	gap: clamp(36px, 5vw, 80px);
	align-items: center;
	max-width: 1240px;
	margin: 0 auto;
}

.estb-nlb--reverse .estb-nlb__copy {
	order: 2;
}

/* ---------- Texto ---------- */

.estb-nlb__copy {
	min-width: 0;
}

.estb-nlb .estb-nlb__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	color: var(--nlb-ink);
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.estb-nlb__kicker-icon {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--nlb-accent);
	flex: none;
}

.estb-nlb__kicker-icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 1.8;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.estb-nlb--sky .estb-nlb__kicker-icon svg,
.estb-nlb--blush .estb-nlb__kicker-icon svg {
	stroke: #FFFFFF;
}

.estb-nlb__kicker-small {
	color: var(--nlb-muted);
	font-weight: 400;
}

.estb-nlb .estb-nlb__title {
	margin: 0 0 20px;
	padding: 0;
	color: var(--nlb-ink);
	font-family: inherit;
	font-size: clamp(34px, 3.9vw, 56px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}

.estb-nlb__title-1,
.estb-nlb__title-2 {
	display: block;
}

.estb-nlb__title-2 {
	color: var(--nlb-accent);
}

.estb-nlb .estb-nlb__sub {
	max-width: 33em;
	margin: 0 0 8px;
	color: var(--nlb-text);
	font-size: 17px;
	line-height: 1.55;
}

.estb-nlb .estb-nlb__sub-en {
	max-width: 36em;
	margin: 0;
	color: var(--nlb-muted);
	font-size: 14px;
	line-height: 1.5;
}

.estb-nlb .estb-nlb__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.estb-nlb__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--nlb-chip-line);
	border-radius: 999px;
	color: var(--nlb-ink);
	font-size: 14px;
	line-height: 1.2;
}

.estb-nlb__chip::before {
	content: none;
}

.estb-nlb__chip-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--chip, var(--nlb-accent));
	flex: none;
}

.estb-nlb__chip-en {
	color: var(--nlb-muted);
	font-size: 12px;
}

/* ---------- Tarjeta (sello) ---------- */

.estb-nlb__card-wrap {
	position: relative;
	min-width: 0;
}

.estb-nlb__postmark {
	/* Por encima de la tarjeta, como un matasellos sobre el sello (en la esquina libre). */
	position: absolute;
	z-index: 2;
	top: -64px;
	right: -46px;
	width: 136px;
	height: 136px;
	transform: rotate(-14deg);
	fill: none;
	stroke: var(--nlb-postmark);
	pointer-events: none;
}

.estb-nlb__pm-ring {
	stroke-width: 1.6;
}

.estb-nlb__pm-text,
.estb-nlb__pm-big,
.estb-nlb__pm-small {
	fill: var(--nlb-postmark);
	stroke: none;
	font-family: inherit;
	font-weight: 700;
}

.estb-nlb__pm-text {
	font-size: 11px;
	letter-spacing: .12em;
}

.estb-nlb__pm-big {
	font-size: 22px;
	letter-spacing: .06em;
}

.estb-nlb__pm-small {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
}

.estb-nlb__card {
	position: relative;
	z-index: 1;
	padding: 34px 34px 28px;
	border-radius: var(--nlb-radius);
	background: var(--nlb-card);
	color: var(--nlb-card-ink);
	box-shadow: 0 28px 50px -30px rgba(6, 22, 28, .55);
}

.estb-nlb--sky .estb-nlb__card,
.estb-nlb--blush .estb-nlb__card {
	box-shadow: 0 22px 44px -30px rgba(18, 58, 74, .45);
}

/* Borde perforado de sello: círculos del color de la banda sobre los cantos. */
.estb-nlb--perforated .estb-nlb__card::before,
.estb-nlb--perforated .estb-nlb__card::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	height: 12px;
	background: radial-gradient(circle at 50% 50%, var(--nlb-bg) 4.6px, transparent 5.2px) center / 16px 12px repeat-x;
	pointer-events: none;
}

.estb-nlb--perforated .estb-nlb__card::before {
	top: -6px;
}

.estb-nlb--perforated .estb-nlb__card::after {
	bottom: -6px;
}

.estb-nlb__strip {
	display: flex;
	gap: 4px;
	margin: 0 0 20px;
}

.estb-nlb__strip span {
	width: 26px;
	height: 4px;
	border-radius: 2px;
	background: #ED975B;
}

.estb-nlb__strip span:nth-child(2) {
	background: #3F807C;
}

.estb-nlb__strip span:nth-child(3) {
	background: #9F0E50;
}

/* ---------- Formulario ---------- */

.estb-nlb__form {
	margin: 0;
}

.estb-nlb__field {
	margin: 0 0 20px;
}

.estb-nlb .estb-nlb__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0 0 10px;
	padding: 0;
	color: var(--nlb-card-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.estb-nlb .estb-nlb__label-en {
	color: var(--nlb-card-muted);
	font-size: 12px;
	font-weight: 400;
}

.estb-nlb__row {
	display: flex;
	gap: 8px;
}

.estb-nlb .estb-nlb__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 54px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--nlb-field-line);
	border-radius: 999px;
	background: #FFFFFF;
	color: var(--nlb-card-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1;
	box-shadow: none;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.estb-nlb .estb-nlb__input::placeholder {
	color: #8AA0A8;
	opacity: 1;
}

.estb-nlb .estb-nlb__input:focus {
	border-color: var(--nlb-focus);
	box-shadow: 0 0 0 3px rgba(63, 128, 124, .18);
}

.estb-nlb .estb-nlb__input[aria-invalid="true"] {
	border-color: var(--nlb-error);
}

/* Botón píldora coral (mismo lenguaje que los CTA de la home) */
.estb-nlb .estb-nlb__btn,
.estb-nlb .estb-nlb__btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	min-height: 54px;
	margin: 0;
	padding: 7px 8px 7px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--nlb-btn);
	color: var(--nlb-btn-ink);
	font-family: inherit;
	text-align: left;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .25s, color .25s;
}

.estb-nlb .estb-nlb__btn:hover,
.estb-nlb .estb-nlb__btn:focus-visible {
	background: var(--nlb-card-ink);
	color: #FFFFFF;
}

.estb-nlb .estb-nlb__btn:focus-visible {
	outline: 2px solid var(--nlb-focus);
	outline-offset: 3px;
}

.estb-nlb--navy .estb-nlb__link-mode .estb-nlb__btn:hover,
.estb-nlb--navy .estb-nlb__link-mode .estb-nlb__btn:focus-visible {
	background: var(--nlb-card-ink);
}

.estb-nlb .estb-nlb__btn[disabled] {
	cursor: progress;
	opacity: .75;
}

.estb-nlb__btn-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.estb-nlb__btn-es {
	font-size: 16px;
	font-weight: 600;
}

.estb-nlb__btn-en {
	font-size: 12px;
	font-weight: 400;
	opacity: .8;
}

.estb-nlb__btn-arrow {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(16, 22, 23, .1);
	transition: transform .25s, background-color .25s;
}

.estb-nlb .estb-nlb__btn:hover .estb-nlb__btn-arrow,
.estb-nlb .estb-nlb__btn:focus-visible .estb-nlb__btn-arrow {
	background: rgba(255, 255, 255, .16);
	transform: translateX(3px);
}

.estb-nlb__btn-arrow svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Idioma */
.estb-nlb .estb-nlb__lang {
	min-width: 0;
	margin: 0 0 18px;
	padding: 0;
	border: 0;
}

.estb-nlb__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.estb-nlb .estb-nlb__pill {
	position: relative;
	display: inline-flex;
	margin: 0;
	cursor: pointer;
}

.estb-nlb__pill input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.estb-nlb__pill span {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 16px;
	border: 1px solid var(--nlb-field-line);
	border-radius: 999px;
	color: var(--nlb-card-ink);
	font-size: 14px;
	line-height: 1;
	transition: background-color .2s, color .2s, border-color .2s;
}

.estb-nlb__pill:hover span {
	border-color: var(--nlb-card-ink);
}

.estb-nlb__pill input:checked + span {
	border-color: var(--nlb-card-ink);
	background: var(--nlb-card-ink);
	color: #FFFFFF;
}

.estb-nlb__pill input:focus-visible + span {
	outline: 2px solid var(--nlb-focus);
	outline-offset: 2px;
}

/* Privacidad */
.estb-nlb .estb-nlb__check {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	color: var(--nlb-card-ink);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.estb-nlb__check input {
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.estb-nlb__check-box {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: -1px;
	border: 1px solid var(--nlb-field-line);
	border-radius: 4px;
	background: #FFFFFF;
	transition: background-color .2s, border-color .2s;
}

.estb-nlb__check-box svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0;
	transition: opacity .15s;
}

.estb-nlb__check input:checked + .estb-nlb__check-box {
	border-color: var(--nlb-card-ink);
	background: var(--nlb-card-ink);
}

.estb-nlb__check input:checked + .estb-nlb__check-box svg {
	opacity: 1;
}

.estb-nlb__check input:focus-visible + .estb-nlb__check-box {
	outline: 2px solid var(--nlb-focus);
	outline-offset: 2px;
}

.estb-nlb__check input[aria-invalid="true"] + .estb-nlb__check-box {
	border-color: var(--nlb-error);
}

.estb-nlb__check-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.estb-nlb .estb-nlb__check a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.estb-nlb .estb-nlb__check a:hover {
	color: var(--nlb-btn);
}

.estb-nlb__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.estb-nlb .estb-nlb__status {
	min-height: 0;
	margin: 14px 0 0;
	color: var(--nlb-card-muted);
	font-size: 13px;
	line-height: 1.45;
	white-space: pre-line;
}

.estb-nlb .estb-nlb__status:empty {
	display: none;
}

.estb-nlb .estb-nlb__status.is-error {
	color: var(--nlb-error);
}

/* Confirmación */
.estb-nlb__done {
	padding: 6px 0 4px;
	outline: none;
}

.estb-nlb__done-icon {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0 0 16px;
	border-radius: 50%;
	background: var(--nlb-btn);
}

.estb-nlb__done-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--nlb-btn-ink);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.estb-nlb .estb-nlb__done-title {
	margin: 0 0 6px;
	color: var(--nlb-card-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.02em;
}

.estb-nlb .estb-nlb__done-en,
.estb-nlb .estb-nlb__done-mail {
	margin: 0;
	color: var(--nlb-card-muted);
	font-size: 14px;
	line-height: 1.5;
}

.estb-nlb .estb-nlb__done-mail {
	margin-top: 14px;
	color: var(--nlb-card-ink);
}

.estb-nlb__done-mail strong {
	font-weight: 600;
	word-break: break-all;
}

/* Solo botón */
.estb-nlb__link-mode {
	display: flex;
}

/* ---------- Animación de entrada (solo si hay JS y no se pide reducir movimiento) ---------- */

@media (prefers-reduced-motion: no-preference) {
	.estb-nlb.is-anim .estb-nlb__copy,
	.estb-nlb.is-anim .estb-nlb__card {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
	}

	.estb-nlb.is-anim .estb-nlb__card {
		transition-delay: .12s;
	}

	.estb-nlb.is-anim .estb-nlb__postmark {
		opacity: 0;
		transform: rotate(-30deg) scale(1.25);
		transition: opacity .5s ease .45s, transform .6s cubic-bezier(.3, 1.4, .5, 1) .45s;
	}

	.estb-nlb.is-anim.is-in .estb-nlb__copy,
	.estb-nlb.is-anim.is-in .estb-nlb__card {
		opacity: 1;
		transform: none;
	}

	.estb-nlb.is-anim.is-in .estb-nlb__postmark {
		opacity: 1;
		transform: rotate(-14deg);
	}

	.estb-nlb.is-done .estb-nlb__postmark {
		animation: estb-nlb-stamp .55s cubic-bezier(.3, 1.4, .5, 1);
	}

	.estb-nlb.is-done .estb-nlb__done-icon {
		animation: estb-nlb-pop .45s cubic-bezier(.3, 1.4, .5, 1);
	}
}

@keyframes estb-nlb-stamp {
	0% { transform: rotate(-14deg) scale(1); }
	40% { transform: rotate(-8deg) scale(.86); }
	100% { transform: rotate(-14deg) scale(1); }
}

@keyframes estb-nlb-pop {
	0% { transform: scale(.4); opacity: 0; }
	100% { transform: scale(1); opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.estb-nlb__inner {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
	}

	.estb-nlb__card {
		padding: 30px 26px 24px;
	}
}

/* Dos columnas estrechas: email y botón uno debajo del otro */
@media (min-width: 881px) and (max-width: 1180px) {
	.estb-nlb__row {
		flex-direction: column;
	}

	.estb-nlb .estb-nlb__row .estb-nlb__btn {
		justify-content: space-between;
		width: 100%;
	}
}

@media (max-width: 880px) {
	.estb-nlb__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
	}

	.estb-nlb--reverse .estb-nlb__copy {
		order: 0;
	}

	.estb-nlb__card-wrap {
		max-width: 600px;
	}

	.estb-nlb__waves {
		width: 100%;
		height: 60%;
		-webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
	}

	.estb-nlb__postmark {
		top: -44px;
		right: -14px;
		width: 112px;
		height: 112px;
	}
}

@media (max-width: 560px) {
	.estb-nlb .estb-nlb__sub {
		font-size: 16px;
	}

	.estb-nlb__row {
		flex-direction: column;
	}

	.estb-nlb .estb-nlb__btn {
		justify-content: space-between;
		width: 100%;
	}

	.estb-nlb__card {
		padding: 28px 20px 22px;
	}

	.estb-nlb__chip {
		font-size: 13px;
		padding: 7px 12px;
		min-height: 34px;
	}

	.estb-nlb__postmark {
		right: -26px;
		width: 96px;
		height: 96px;
	}
}
