.newsletter {
	padding: 50px 20px;
	background-color: #005A9E;
	color: #ffffff;
	border-radius: 8px;
	margin: 60px 20px;
}

.newsletter-wrapper {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 60px;
	align-items: center;
}

.newsletter-text h2 {
	font-size: 38px;
	margin-bottom: 18px;
	font-weight: 700;
	line-height: 1.2;
}

.newsletter-text p {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.95;
}

.newsletter-form-container {
	display: flex;
	justify-content: flex-end;
	min-width: 0;
	flex: 1;
}

.newsletter-form {
	width: 100%;
	max-width: 650px;
}

.form-inline {
	display: flex;
	gap: 15px;
	margin-bottom: 12px;
}

.newsletter-form input[type="email"] {
	flex: 1;
	padding: 16px 22px;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	font-size: 15px;
	background-color: transparent;
	color: white;
	transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.65);
}

.newsletter-form input[type="email"]:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.9);
	background-color: rgba(255, 255, 255, 0.05);
}

.btn-newsletter {
	background-color: white;
	color: #0B5FA5;
	border: none;
	padding: 16px 36px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-newsletter:hover {
	background-color: #f5f5f5;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 2px;
}

.newsletter-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: white;
	flex-shrink: 0;
}

.newsletter-checkbox label {
	font-size: 14px;
	color: white;
	cursor: pointer;
	line-height: 1.4;
}

.newsletter-checkbox a {
	color: white;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}

.newsletter-checkbox a:hover {
	opacity: 0.8;
}

@media (max-width: 1024px) {
	.newsletter-wrapper {
		gap: 40px;
		grid-template-columns: 1fr 1.2fr;
	}
}

@media (max-width: 768px) {
	.newsletter {
		padding: 40px 0;
	}
	
	.newsletter-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.newsletter-text h2 {
		font-size: 28px;
	}
	
	.newsletter-form-container {
		justify-content: flex-start;
	}
	
	.form-inline {
		flex-direction: column;
		gap: 12px;
	}
	
	.btn-newsletter {
		width: 100%;
		padding: 16px;
	}

	/* Dynamics form: una columna, botón debajo del campo, consent al final */
	.newsletter .columnContainer[data-container="true"] {
		display: grid !important;
		grid-template-columns: 1fr !important;
		gap: 12px !important;
		width: 100% !important;
		max-width: 100% !important;
		flex-direction: unset !important;
	}
	.newsletter .textFormFieldBlock {
		grid-column: 1 !important;
		grid-row: 1 !important;
	}
	.newsletter .consentBlock {
		grid-column: 1 !important;
		grid-row: 2 !important;
	}
	.newsletter .submitButtonWrapper,
	.newsletter div[data-editorblocktype="SubmitButton"] {
		grid-column: 1 !important;
		grid-row: 3 !important;
		margin-left: 0 !important;
	}
	.newsletter .submitButton,
	.newsletter button.submitButton {
		width: 100% !important;
		padding: 16px !important;
	}
	.newsletter [data-layout="true"] {
		max-width: 100% !important;
	}

	/* Mejorar tap en el checkbox en móvil */
	.newsletter .consentBlock,
	.newsletter .consentBlock > div {
		align-items: flex-start;
		position: relative;
		z-index: 1;
	}
	.newsletter .consentBlock input[type="checkbox"] {
		min-width: 20px;
		min-height: 20px;
		touch-action: manipulation;
		pointer-events: auto;
	}
	.newsletter .consentBlock label,
	.newsletter .consentBlock label p {
		pointer-events: auto;
	}
}

/* ----- Formulario Dynamics dentro de .newsletter: estilos del bloque ----- */

/* Contenedor del formulario Dynamics */
.newsletter div[data-form-id] {
	background-color: transparent;
	padding: 0;
	width: 100%;
	min-width: 0;
}

.newsletter [data-layout="true"] {
	max-width: 680px;
	width: 100%;
	background-color: transparent;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Layout: campo y botón en la misma fila (dos columnas), checkbox debajo */
.newsletter .columnContainer[data-container="true"] {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto;
	gap: 12px 28px;
	align-items: end;
	width: 700px !important;
	max-width: 100%;
	box-sizing: border-box;
}
.newsletter .textFormFieldBlock {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}
.newsletter .submitButtonWrapper,
.newsletter div[data-editorblocktype="SubmitButton"] {
	grid-column: 2;
	grid-row: 1;
	padding: 0;
	margin: 0;
	margin-left: -120px;
	align-self: end;
}
.newsletter .consentBlock {
	grid-column: 1 / -1;
	grid-row: 2;
}

/* Campos de texto / email */
.newsletter .textFormFieldBlock input,
.newsletter .textFormFieldBlock input[type="email"] {
	background-color: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	color: #fff;
	padding: 16px 22px;
	font-size: 15px;
	transition: all 0.3s ease;
}
.newsletter .textFormFieldBlock input::placeholder {
	color: rgba(255, 255, 255, 0.65);
}
.newsletter .textFormFieldBlock input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.9);
	background-color: rgba(255, 255, 255, 0.05);
}
.newsletter .textFormFieldBlock label {
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	margin: 0 0 8px 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

/* Asterisco de requerido */
.newsletter .textFormFieldBlock label::after {
	color: #fff !important;
}

/* Bloque de consentimiento (checkbox) */
.newsletter .consentBlock,
.newsletter .consentBlock > div {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
}
.newsletter .consentBlock input[type="checkbox"] {
	/* Checkbox con fondo blanco y tick negro */
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	cursor: pointer;
	flex-shrink: 0;
	border: 1.5px solid #fff;
	border-radius: 4px;
	background-color: #fff;
	display: inline-grid;
	place-content: center;
	position: relative;
}
.newsletter .consentBlock input[type="checkbox"]::after {
	content: "";
	width: 8px;
	height: 4px;
	border: 2px solid #111;
	border-top: 0;
	border-right: 0;
	transform: rotate(-45deg);
	opacity: 0;
}
.newsletter .consentBlock input[type="checkbox"]:checked::after {
	opacity: 1;
}
.newsletter .consentBlock label,
.newsletter .consentBlock label p,
.newsletter .consentBlock label[id$="-label"] p {
	color: #fff !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	cursor: pointer !important;
}
.newsletter .consentBlock a {
	color: #fff;
	text-decoration: underline;
	transition: opacity 0.3s ease;
}
.newsletter .consentBlock a:hover {
	opacity: 0.8;
}

/* Botón de envío: blanco con letras azules */
.newsletter .submitButton,
.newsletter .submitButtonWrapper .submitButton,
.newsletter button.submitButton {
	background-color: #fff !important;
	color: #0B5FA5 !important;
	border: none !important;
	padding: 16px 36px !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.5px !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	transition: all 0.3s ease !important;
}
.newsletter .submitButton:hover,
.newsletter .submitButtonWrapper .submitButton:hover,
.newsletter button.submitButton:hover {
	background-color: #f5f5f5 !important;
	color: #0B5FA5 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Notificaciones Dynamics: no reservar espacio extra */
.newsletter .notification-container {
	margin: 0;
	min-height: 0;
}

/* Mensaje de envío correcto del formulario Microsoft (sobrescribir estilos inyectados) */
.newsletter div[data-cached-form-url] .onFormSubmittedFeedback {
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	margin: 0 auto;
}

.newsletter div[data-cached-form-url] .onFormSubmittedFeedback .onFormSubmittedFeedbackMessage {
	padding: 30px 10px 20px 10px;
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	font-family: inherit;
	text-align: center;
}

