.pmm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.pmm-overlay.pmm-open {
	display: flex;
	animation: pmm-fade-in 0.25s ease;
}

@keyframes pmm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.pmm-modal {
	position: relative;
	background: var(--pmm-bg, #fff);
	color: var(--pmm-text-color, #222);
	border-radius: 14px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px 36px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: pmm-slide-up 0.3s ease;
}

@keyframes pmm-slide-up {
	from { transform: translateY(24px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.pmm-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.65);
	border: 2px solid currentColor;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: var(--pmm-text-color, #222);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pmm-close:hover {
	background: rgba(255, 255, 255, 0.95);
}

.pmm-title {
	margin: 0 0 12px;
	font-size: 1.5em;
	line-height: 1.25;
	color: var(--pmm-title-color, inherit);
}

.pmm-bigtext {
	font-size: clamp(4.5em, 19vw, 7.5em);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.02em;
	color: var(--pmm-highlight-color, inherit);
	margin-bottom: 10px;
}

/* Tipografía Alfa Slab One en titulares (solo tiene peso 400).
   !important para imponerse a las reglas tipográficas del tema. */
.pmm-font-alfa .pmm-bigtext,
.pmm-font-alfa .pmm-title {
	font-family: 'Alfa Slab One', 'Rockwell', serif !important;
	font-weight: 400 !important;
	letter-spacing: 0;
}

.pmm-font-alfa .pmm-bigtext {
	letter-spacing: 0.07em !important;
}

.pmm-font-alfa .pmm-title {
	font-size: 2.2em;
	line-height: 1.15;
	margin-bottom: 8px;
}

.pmm-body {
	font-size: 1.1em;
}

.pmm-align-center .pmm-content {
	text-align: center;
}

.pmm-align-center .pmm-form input[type="text"]:not(.pmm-hp),
.pmm-align-center .pmm-form input[type="email"] {
	text-align: left;
}

.pmm-body {
	margin-bottom: 16px;
}

.pmm-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}

.pmm-form input[type="text"]:not(.pmm-hp),
.pmm-form input[type="email"] {
	padding: 15px 18px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	width: 100%;
	box-sizing: border-box;
}

.pmm-form input:focus {
	outline: 2px solid #2271b1;
	border-color: #2271b1;
}

/* Honeypot: oculto para humanos */
.pmm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pmm-form button[type="submit"] {
	padding: 15px 20px;
	background: var(--pmm-button-bg, #2271b1);
	color: var(--pmm-button-color, #fff);
	border: none;
	border-radius: 999px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.pmm-form button[type="submit"]:hover:not(:disabled) {
	filter: brightness(0.88);
}

.pmm-form button[type="submit"]:disabled {
	opacity: 0.6;
	cursor: default;
}

.pmm-message {
	margin: 0;
	font-size: 14px;
	min-height: 1em;
}

.pmm-message.pmm-success {
	color: #1a7a2e;
	font-weight: 600;
}

.pmm-message.pmm-error {
	color: #b32d2e;
}

.pmm-email-label {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: -4px;
}

.pmm-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
	cursor: pointer;
	font-weight: 400;
}

.pmm-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	flex: none;
	accent-color: var(--pmm-button-bg, #2271b1);
	cursor: pointer;
}

.pmm-consent a {
	color: inherit;
	text-decoration: underline;
}

.pmm-footer {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.5;
	color: #777;
}

.pmm-footer a {
	color: inherit;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Estilo "Pantalla completa": titular grande sobre fondo oscuro difuminado
 * ---------------------------------------------------------------------- */

.pmm-overlay.pmm-style-fullscreen {
	background: rgba(12, 12, 12, 0.78);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.pmm-style-fullscreen .pmm-modal {
	background: var(--pmm-bg, transparent);
	color: var(--pmm-text-color, #fff);
	box-shadow: none;
	border-radius: 0;
	max-width: 620px;
	padding: 24px;
	animation: pmm-fade-in 0.35s ease;
}

.pmm-style-fullscreen .pmm-close {
	position: fixed;
	top: 24px;
	right: 28px;
	width: 44px;
	height: 44px;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.pmm-style-fullscreen .pmm-close:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.pmm-style-fullscreen .pmm-title {
	font-size: clamp(2.4em, 7vw, 4.2em);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-bottom: 20px;
}

.pmm-highlight {
	background: var(--pmm-highlight-bg, #d7f2c0);
	color: var(--pmm-highlight-color, #111);
	padding: 0 0.08em;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

.pmm-style-fullscreen .pmm-body {
	font-size: 1.05em;
	line-height: 1.55;
	margin-bottom: 24px;
	color: var(--pmm-text-color, rgba(255, 255, 255, 0.95));
}

.pmm-style-fullscreen .pmm-email-label {
	color: var(--pmm-text-color, #fff);
	font-weight: 400;
}

.pmm-style-fullscreen .pmm-form input[type="text"]:not(.pmm-hp),
.pmm-style-fullscreen .pmm-form input[type="email"] {
	padding: 15px 16px;
	border-radius: 8px;
	border: none;
	font-size: 16px;
}

.pmm-style-fullscreen .pmm-form button[type="submit"] {
	border-radius: 999px;
	padding: 16px 20px;
	font-size: 16px;
	background: var(--pmm-button-bg, #fff);
	color: var(--pmm-button-color, #111);
	margin-top: 4px;
}

.pmm-style-fullscreen .pmm-form button[type="submit"]:hover:not(:disabled) {
	filter: brightness(0.92);
}

.pmm-style-fullscreen .pmm-message.pmm-success {
	color: #b6f09c;
}

.pmm-style-fullscreen .pmm-message.pmm-error {
	color: #ff9b9b;
}

.pmm-style-fullscreen .pmm-footer {
	color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 480px) {
	.pmm-modal {
		padding: 24px 18px;
	}

	.pmm-style-fullscreen .pmm-close {
		top: 14px;
		right: 14px;
	}
}
