/* Ventana modal común (hero-banner y tarjeta-con-bloques); la abre y cierra modal.js. */
.modal-eva {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: max(1rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
	background: rgba(0, 0, 0, 0.5);
}

.modal-eva[hidden] { display: none; }

/* Sin scroll de la página mientras hay una ventana abierta */
.modal-abierta,
.modal-abierta body { overflow: hidden; }

.modal-eva__dialog {
	position: relative;
	box-sizing: border-box;
	width: 91.666%;
	max-height: calc(100vh - 2rem);
	max-height: calc(100dvh - 2rem);
	margin: 0 auto;
	padding: 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #fff;
	color: #000;
}

/* Móvil: círculo blanco fijo en la esquina de la pantalla; desde 1024 px, X en la esquina del cuadro */
.modal-eva__close {
	position: fixed;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 10;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 9999px;
	background: #fff;
	color: #000;
	font-size: 1.25rem;
	cursor: pointer;
}

@media (min-width: 1024px) {
	.modal-eva__dialog { width: 66.666%; padding: 2.5rem; }
	.modal-eva__close { position: absolute; }
}

/* Contenido tipo «tarjeta con imagen lateral» dentro de la ventana */
.modal-eva .tarjeta__titulo { margin-bottom: 0.5rem; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; }
.modal-eva .elem--texto { font-size: 0.75rem; line-height: 1.125rem; }
.modal-eva .tarjeta__elementos { gap: 0.75rem; }

@media (min-width: 1024px) {
	.modal-eva .tarjeta__titulo { font-size: 1.5rem; line-height: 2rem; }
	.modal-eva .elem--texto { font-size: 1rem; line-height: 1.5rem; }
	.modal-eva .tarjeta__elementos { gap: 1rem; }
}
