/* Newsletter Curbella */
.cb-nl {
	--cb-primary: var(--wd-primary-color, #b87b61);
	--cb-primary-dark: #9d644c;
	--cb-ink: #2b2522;
	--cb-muted: #7a6d66;
	--cb-line: #e3d3ca;
	--cb-cream: #fbf6f2;
}

/* ---- Formulario (común) ---- */
.cb-nl .cb-nl__form { margin: 0; }
.cb-nl .cb-nl__row {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--cb-line);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
.cb-nl .cb-nl__row:focus-within {
	border-color: var(--cb-primary);
	box-shadow: 0 0 0 3px rgba(184, 123, 97, .15);
}
.cb-nl .cb-nl__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	font-family: var(--wd-text-font, inherit);
	font-size: 16px;
	color: var(--cb-ink);
}
.cb-nl .cb-nl__input::placeholder { color: #a3958d; }
.cb-nl .cb-nl__btn {
	flex: 0 0 auto;
	min-height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 0;
	background: var(--cb-primary);
	color: #fff;
	font-family: var(--btn-accented-font-family, var(--wd-text-font, inherit));
	font-size: var(--btn-font-size, 16px);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .2s;
}
.cb-nl .cb-nl__btn:hover,
.cb-nl .cb-nl__btn:focus-visible { background: var(--cb-primary-dark); color: #fff; }
.cb-nl .cb-nl__btn:disabled { opacity: .7; cursor: wait; }
.cb-nl .cb-nl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cb-nl .cb-nl__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--cb-muted);
	cursor: pointer;
}
.cb-nl .cb-nl__consent input {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	accent-color: var(--cb-primary);
}
.cb-nl .cb-nl__consent a {
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	color: var(--cb-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.cb-nl .cb-nl__msg { margin: 10px 0 0; font-size: 14px; line-height: 1.4; }
.cb-nl .cb-nl__msg:empty { display: none; }
.cb-nl .cb-nl__msg.is-error { color: #b3261e; }
.cb-nl .cb-nl__msg.is-ok { color: #2e7d4f; font-weight: 600; }
.cb-nl .cb-nl__form.is-done .cb-nl__row,
.cb-nl .cb-nl__form.is-done .cb-nl__consent { display: none; }

/* ---- Pie de página ---- */
.cb-nl--footer { max-width: 380px; }
.cb-nl--footer .cb-nl__lead {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--cb-muted);
}
/* En el pie, campo y botón apilados: la columna es estrecha en tablet */
.cb-nl--footer .cb-nl__row {
	flex-direction: column;
	gap: 10px;
	border: 0;
	background: none;
	overflow: visible;
	box-shadow: none !important;
}
.cb-nl--footer .cb-nl__input {
	height: 46px;
	font-size: 15px;
	border: 1px solid var(--cb-line) !important;
	border-radius: 6px;
	background: #fff;
}
.cb-nl--footer .cb-nl__input:focus {
	border-color: var(--cb-primary) !important;
	box-shadow: 0 0 0 3px rgba(184, 123, 97, .15) !important;
}
.cb-nl--footer .cb-nl__btn { min-height: 46px; width: 100%; border-radius: 6px; }

/* ---- Ventana emergente ---- */
.cb-nl-lock, .cb-nl-lock body { overflow: hidden; }
.cb-nl-pop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.cb-nl-pop[hidden] { display: none; }
.cb-nl-pop__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(30, 22, 18, .55);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .3s ease;
}
.cb-nl-pop__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 42% 58%;
	width: 100%;
	max-width: 780px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	border-radius: 14px;
	background: #fbf6f2;
	box-shadow: 0 30px 80px rgba(30, 22, 18, .35);
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .3s ease, transform .3s ease;
}
.cb-nl-pop.is-open .cb-nl-pop__backdrop { opacity: 1; }
.cb-nl-pop.is-open .cb-nl-pop__dialog { opacity: 1; transform: none; }

.cb-nl-pop__media {
	min-height: 440px;
	background-color: #e9d9cf;
	background-size: cover;
	background-position: 50% 30%;
}
.cb-nl-pop__body { padding: 48px 42px 34px; text-align: left; }
.cb-nl-pop__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--cb-primary);
}
.cb-nl-pop .cb-nl-pop__title {
	margin: 0 0 14px;
	font-family: var(--wd-title-font, inherit);
	font-style: italic;
	font-weight: 700;
	font-size: 34px;
	line-height: 1.1;
	color: var(--cb-ink);
}
.cb-nl-pop__text {
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.55;
	color: var(--cb-muted);
}
.cb-nl-pop .cb-nl-pop__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 38px;
	min-height: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .85);
	color: var(--cb-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.cb-nl-pop .cb-nl-pop__close:hover { background: #fff; }
.cb-nl-pop .cb-nl-pop__skip {
	display: block;
	min-height: 0;
	margin: 18px 0 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cb-muted);
	font-family: var(--wd-text-font, inherit);
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.cb-nl-pop .cb-nl-pop__skip:hover { color: var(--cb-ink); background: none; }

/* Móvil: hoja inferior compacta */
@media (max-width: 640px) {
	.cb-nl-pop { align-items: flex-end; padding: 0; }
	.cb-nl-pop__dialog {
		grid-template-columns: 1fr;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
		transform: translateY(40px);
	}
	.cb-nl-pop__media { min-height: 150px; background-position: 50% 22%; }
	.cb-nl-pop__body { padding: 24px 22px calc(22px + env(safe-area-inset-bottom)); }
	.cb-nl-pop .cb-nl-pop__title { font-size: 28px; }
	.cb-nl-pop__text { font-size: 16px; margin-bottom: 18px; }
	.cb-nl-pop .cb-nl-pop__skip { margin: 14px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
	.cb-nl-pop__backdrop, .cb-nl-pop__dialog { transition: none; }
}
