/* ---------- Overlay ---------- */
.rnp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rnp-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

html.rnp-lock {
	overflow: hidden;
}

/* ---------- Popup 5:4 horizontal ---------- */
.rnp-popup,
.rnp-popup * {
	box-sizing: border-box;
}

.rnp-popup {
	container-type: inline-size;
	position: relative;
	display: grid;
	grid-template-columns: 45fr 55fr; /* imagen un poco más grande */
	grid-template-rows: minmax(0, 1fr);
	width: min(900px, 100%, calc((100vh - 32px) * 1.25));
	width: min(900px, 100%, calc((100dvh - 32px) * 1.25));
	aspect-ratio: 5 / 4;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	transform: translateY(14px);
	transition: transform 0.35s ease;
}

.rnp-overlay.is-open .rnp-popup {
	transform: none;
}

/* ---------- Columna izquierda (blanca) ---------- */
.rnp-info {
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 4cqw 4cqw 3.5cqw;
	background: #fff;
	color: #111;
	text-align: center;
}

.rnp-logo img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 7cqw;
	margin: 0 auto;
}

.rnp-content {
	width: 100%;
}

.rnp-kicker {
	margin: 0 0 1.2cqw;
	font-size: 1.2cqw;
	font-weight: 500;
	letter-spacing: 0.22em;
	color: #666;
	text-transform: uppercase;
	line-height: 1.3;
}

.rnp-title {
	margin: 0 0 2cqw;
	font-size: 2.6cqw;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.1;
	text-transform: uppercase;
	color: #111;
}

.rnp-body {
	margin: 0 0 2.6cqw;
	font-size: 1.45cqw;
	line-height: 1.6;
	color: #555;
}

.rnp-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1cqw;
	margin: 0;
}

.rnp-email {
	-webkit-appearance: none;
	appearance: none;
	width: 82%;
	height: auto;
	margin: 0;
	padding: 0.8cqw 1cqw;
	border: 1px solid #111 !important;
	border-radius: 0;
	background: #fff;
	font-size: 1.25cqw;
	letter-spacing: 0.08em;
	text-align: center;
	color: #111;
	outline: none !important;
	box-shadow: none !important;
}

.rnp-email::placeholder {
	color: #777;
	letter-spacing: 0.1em;
}

.rnp-email:focus,
.rnp-email:focus-visible {
	outline: none !important;
	box-shadow: none !important;
	border-color: #111 !important;
}

.rnp-submit {
	width: 82%;
	margin: 0;
	padding: 0.9cqw 1.2cqw;
	border: 1px solid #111;
	border-radius: 0;
	background: #111;
	color: #fff;
	font-size: 1.2cqw;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.rnp-submit:hover {
	background: #fff;
	color: #111;
}

.rnp-submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.rnp-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rnp-msg {
	min-height: 0;
	margin-top: 1cqw;
	font-size: 1.4cqw;
	line-height: 1.4;
	color: #111;
}

.rnp-msg.is-error {
	color: #b3261e;
}

.rnp-footer {
	font-size: 1.3cqw;
	font-style: italic;
	color: #888;
}

/* ---------- Columna derecha (imagen) ---------- */
.rnp-image {
	min-height: 0;
	background: #ddd;
}

.rnp-image img {
	display: block;
	width: 100%;
	height: calc(100% + 2px);
	margin: 0;
	object-fit: cover;
}

/* ---------- Cerrar ---------- */
.rnp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 26px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
}

.rnp-close:hover {
	background: #fff;
}

/* ---------- Móvil: mismo diseño (texto izquierda, imagen derecha), a menor escala ---------- */
@media (max-width: 640px) {
	.rnp-overlay {
		padding: 10px;
		overflow-y: auto;
		align-items: safe center;
	}

	.rnp-popup {
		container-type: normal;
		aspect-ratio: auto;
		grid-template-columns: 45fr 55fr !important;
		grid-template-rows: auto;
		width: 100%;
		max-width: 480px;
		max-height: none;
		overflow: hidden;
	}

	.rnp-image {
		position: relative;
		order: 0 !important;
		aspect-ratio: auto;
		min-height: 100%;
	}

	.rnp-image img {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: calc(100% + 2px);
		object-fit: cover;
	}

	.rnp-info {
		padding: 14px 8px 12px;
		gap: 12px;
	}

	.rnp-logo img { max-height: 30px; }
	.rnp-kicker { font-size: 7px; letter-spacing: 0.14em; margin-bottom: 8px; }
	.rnp-title { font-size: 13px; margin-bottom: 10px; }
	.rnp-body { font-size: 9.5px; line-height: 1.5; margin-bottom: 14px; }
	.rnp-form { gap: 6px; }
	.rnp-email { width: 90%; font-size: 10px; letter-spacing: 0.03em; padding: 6px 4px; }
	.rnp-email::placeholder { letter-spacing: 0.03em; }
	.rnp-submit { width: 90%; font-size: 9px; letter-spacing: 0.04em; padding: 8px 4px; }
	.rnp-msg { font-size: 10px; margin-top: 6px; }
	.rnp-footer { font-size: 9px; }

	.rnp-close {
		top: 6px;
		right: 6px;
		width: 30px;
		height: 30px;
		font-size: 22px;
		line-height: 30px;
	}
}
