/* Ventana de la newsletter (MailPoet) con el estilo de Blosoom.
   Ordenador y tablet: foto a la izquierda y formulario a la derecha.
   Móvil y plegables cerrados: panel que sube desde abajo. */
.mailpoet_form_popup_overlay {
	background: rgba(35, 67, 63, .45) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
html body div.mailpoet_form_popup {
	--bnl-texto: #23433F;
	--bnl-verde: #366661;
	--bnl-rosa: #F6C8C7;
	--bnl-rosa-s: #FDF1F1;
	--bnl-rosa-t: #FF77A9;
	--bnl-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bnl-serif: "Noto Serif Display", Georgia, serif;
	display: grid !important;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	width: min(780px, calc(100vw - 32px)) !important;
	min-width: 0 !important;
	max-width: none !important;
	max-height: calc(100vh - 32px) !important;
	max-height: calc(100dvh - 32px) !important;
	padding: 0 !important;
	overflow: hidden auto !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: 0 40px 90px -40px rgba(35, 67, 63, .6);
	color: var(--bnl-texto);
	text-align: left !important;
	overscroll-behavior: contain;
}
/* Foto */
html body div.mailpoet_form_popup::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	min-height: 100%;
	background: var(--bnl-photo, none) center / cover no-repeat, #F4EEEC;
}
html body div.mailpoet_form_popup > form.mailpoet_form {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	margin: 0 !important;
	padding: clamp(28px, 4.4vw, 48px) clamp(24px, 4vw, 44px) !important;
}
html body div.mailpoet_form_popup * { font-family: var(--bnl-font) !important; }
html body div.mailpoet_form_popup > form::before {
	content: "Bienvenida a Blosoom's";
	display: block;
	margin: 0 0 14px;
	color: var(--bnl-rosa-t);
	font: 500 11px/1 var(--bnl-font);
	letter-spacing: .22em;
	text-transform: uppercase;
}
/* "10%" */
html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1),
html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1) * {
	margin: 0 !important;
	color: var(--bnl-rosa-t) !important;
	font-family: var(--bnl-serif) !important;
	font-size: clamp(60px, 8vw, 86px) !important;
	font-style: italic !important;
	font-weight: 300 !important;
	line-height: .95 !important;
	letter-spacing: -.01em;
	text-align: left !important;
}
/* "en tu primer ramo" */
html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(2),
html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(2) * {
	margin: 2px 0 0 !important;
	color: var(--bnl-texto) !important;
	font-family: var(--bnl-serif) !important;
	font-size: clamp(24px, 2.8vw, 30px) !important;
	font-style: italic !important;
	font-weight: 300 !important;
	line-height: 1.15 !important;
	text-align: left !important;
}
html body div.mailpoet_form_popup form > p.mailpoet-heading img.emoji { display: none !important; }
/* Texto */
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last),
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last) * {
	margin: 14px 0 22px !important;
	color: var(--bnl-texto) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.6 !important;
	text-align: left !important;
	opacity: .85;
}
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last) * { margin: 0 !important; opacity: 1; }
html body div.mailpoet_form_popup .mailpoet_paragraph { margin: 0 0 10px !important; line-height: 1 !important; }
/* Correo */
html body div.mailpoet_form_popup input.mailpoet_text {
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 1px solid rgba(35, 67, 63, .3) !important;
	border-radius: 3px !important;
	background: #fff !important;
	color: var(--bnl-texto) !important;
	font-size: 15px !important;
	box-shadow: none !important;
}
html body div.mailpoet_form_popup input.mailpoet_text::placeholder { color: rgba(35, 67, 63, .55) !important; }
html body div.mailpoet_form_popup input.mailpoet_text:focus { outline: none; border-color: var(--bnl-verde) !important; box-shadow: 0 0 0 3px rgba(54, 102, 97, .14) !important; }
/* Botón */
html body div.mailpoet_form_popup input.mailpoet_submit {
	width: 100% !important;
	height: 52px !important;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background: var(--bnl-verde) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
html body div.mailpoet_form_popup input.mailpoet_submit:hover { background: #2C5550 !important; }
/* Privacidad */
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph.last,
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph.last * {
	margin: 12px 0 0 !important;
	color: var(--bnl-texto) !important;
	font-size: 12.5px !important;
	font-style: normal !important;
	line-height: 1.5 !important;
	text-align: left !important;
	opacity: .7;
}
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph.last * { margin: 0 !important; opacity: 1; }
html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph.last a { text-decoration: underline !important; text-underline-offset: 2px; }
/* Mensajes */
html body div.mailpoet_form_popup .mailpoet_message { padding: 0 !important; }
html body div.mailpoet_form_popup .mailpoet_validate_success { margin: 12px 0 0 !important; padding: 12px 14px; border-radius: 4px; background: #E4F2EA; color: #24573F !important; font-size: 14px !important; line-height: 1.5 !important; }
html body div.mailpoet_form_popup .mailpoet_validate_error,
html body div.mailpoet_form_popup .parsley-errors-list { margin: 6px 0 0 !important; padding: 0 !important; color: #A3264E !important; font-size: 13px !important; list-style: none !important; }
/* Cerrar */
html body div.mailpoet_form_popup .mailpoet_form_close_icon {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	z-index: 2;
	width: 38px !important;
	height: 38px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bnl-rosa-s) !important;
	cursor: pointer;
	transition: background-color .2s ease;
}
html body div.mailpoet_form_popup .mailpoet_form_close_icon:hover { background: var(--bnl-rosa) !important; }
html body div.mailpoet_form_popup .mailpoet_form_close_icon svg { width: 13px !important; height: 13px !important; }
html body div.mailpoet_form_popup .mailpoet_form_close_icon svg path { fill: var(--bnl-texto) !important; }

/* ---------- Tablet estrecha ---------- */
@media (max-width: 860px) and (min-width: 641px) {
	html body div.mailpoet_form_popup { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); width: min(680px, calc(100vw - 32px)) !important; }
}

/* ---------- Móvil y plegables cerrados: panel desde abajo ---------- */
@media (max-width: 640px) {
	html body div.mailpoet_form_popup {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto auto;
		top: auto !important;
		bottom: 0 !important;
		left: 0 !important;
		right: 0 !important;
		transform: none !important;
		width: 100% !important;
		min-width: 100% !important;
		max-height: 92vh !important;
		max-height: 92dvh !important;
		border-radius: 10px 10px 0 0 !important;
		animation-name: bnl-up !important;
		animation-duration: .35s !important;
		animation-timing-function: cubic-bezier(.2, .7, .2, 1) !important;
		padding-bottom: env(safe-area-inset-bottom) !important;
	}
	html body div.mailpoet_form_popup::before { grid-row: 1; min-height: 0; height: clamp(120px, 24vh, 190px); }
	html body div.mailpoet_form_popup > form.mailpoet_form { grid-column: 1; grid-row: 2; padding: 22px 20px 22px !important; }
	html body div.mailpoet_form_popup .mailpoet_form_close_icon { background: rgba(255, 255, 255, .9) !important; }
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1),
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1) * { font-size: clamp(48px, 15vw, 64px) !important; }
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(2),
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(2) * { font-size: clamp(21px, 6.4vw, 26px) !important; }
	html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last) { margin: 10px 0 16px !important; }
	html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last),
	html body div.mailpoet_form_popup form > p.mailpoet_form_paragraph:not(.last) * { font-size: 14.5px !important; }
}
/* Pantallas muy estrechas (plegables cerrados tipo Galaxy Fold) */
@media (max-width: 340px) {
	html body div.mailpoet_form_popup > form.mailpoet_form { padding: 18px 16px !important; }
	html body div.mailpoet_form_popup input.mailpoet_submit { letter-spacing: .08em !important; }
}
/* Poca altura (móvil en horizontal): sin foto para que todo quepa */
@media (max-height: 560px) {
	html body div.mailpoet_form_popup { grid-template-columns: minmax(0, 1fr) !important; width: min(520px, calc(100vw - 24px)) !important; }
	html body div.mailpoet_form_popup::before { display: none; }
	html body div.mailpoet_form_popup > form.mailpoet_form { grid-column: 1; grid-row: 1; padding: 20px 22px !important; }
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1),
	html body div.mailpoet_form_popup form > p.mailpoet-heading:nth-of-type(1) * { font-size: 48px !important; }
}
@keyframes bnl-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { html body div.mailpoet_form_popup { animation: none !important; } }
/* El botón de cerrar de MailPoet es una imagen negra: se oculta la imagen y se dibuja una X propia */
html body div.mailpoet_form_popup input.mailpoet_form_close_icon {
	box-sizing: border-box !important;
	padding: 0 0 0 38px !important;
	overflow: hidden !important;
	border: 0 !important;
	background: var(--bnl-rosa-s) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323433F' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px no-repeat !important;
}
html body div.mailpoet_form_popup input.mailpoet_form_close_icon:hover { background-color: var(--bnl-rosa) !important; }
@media (max-width: 640px) {
	html body div.mailpoet_form_popup input.mailpoet_form_close_icon { background-color: rgba(255, 255, 255, .92) !important; }
}
.mailpoet_form_popup_overlay.active { opacity: 1 !important; }
