/* ==========================================================================
   Landing INAEXPO en Pronaca: lo que no viene del sitio original.
   - Sliders: reemplazo de Slider Revolution con las mismas posiciones.
   - Pop-up de recetas y eventos (en INAEXPO eran páginas propias).
   - Ajustes menores para convivir con el tema Pronaca.
   ========================================================================== */

/* ---------- Sliders ----------
   Cada capa trae sus posiciones en variables (--d* escritorio, --m* móvil) ya
   multiplicadas por --u, el tamaño de un "pixel de grilla". Igual que Slider
   Revolution: grilla de 1240 que se achica por debajo de 1240 px, y grilla móvil
   de 480 por debajo de 480 px. Se sale del padding de la columna como el
   slider "fullwidth" original. */
.inx-sr {
	container-type: inline-size;
	margin: 0 -15px;
}
.inx-sr__stage {
	--W: var(--dw);
	--H: var(--dh);
	--u: min(1px, 100cqw / var(--W));
	position: relative;
	height: calc(var(--H) * var(--u));
	overflow: hidden;
}
.inx-sr__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 50% 50%;
	animation: inx-sr-fade 1s ease-in-out both;
}
/* Sin transform ni z-index: la grilla no debe crear su propio contexto de apilado,
   así sus capas se ordenan por z-index junto con las capas de ancho completo
   (por ejemplo la franja verde de "Beneficios", que va debajo). */
.inx-sr__grid {
	position: absolute;
	top: 0;
	left: calc(50% - var(--W) * var(--u) / 2);
	width: calc(var(--W) * var(--u));
	height: 100%;
}
.inx-sr__l {
	position: absolute;
	display: var(--dshow);
	left: var(--dl);
	right: var(--dr);
	top: var(--dt);
	bottom: var(--db);
	width: var(--dw);
	height: var(--dh);
	translate: var(--dtr);
	box-sizing: border-box;
	animation: inx-sr-fade .3s cubic-bezier(.65, 0, .35, 1) both;
}
.inx-sr__l--text,
.inx-sr__l--button {
	font-size: var(--dfs);
	line-height: var(--dlh);
	padding: var(--dpad);
	text-align: var(--dta);
}
.inx-sr__l--img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.inx-sr__l--button {
	cursor: pointer;
	text-decoration: none;
	transition: background-color .3s;
}
.inx-sr__l--button:hover,
.inx-sr__l--button:focus {
	background: var(--hover-bg) !important;
	color: #fff;
	text-decoration: none;
}
@media (max-width: 479px) {
	.inx-sr__stage {
		--W: var(--mw);
		--H: var(--mh);
		--u: calc(100cqw / var(--W));
	}
	.inx-sr__l {
		display: var(--mshow);
		left: var(--ml);
		right: var(--mr);
		top: var(--mt);
		bottom: var(--mb);
		width: var(--mw);
		height: var(--mh);
		translate: var(--mtr);
	}
	.inx-sr__l--text,
	.inx-sr__l--button {
		font-size: var(--mfs);
		line-height: var(--mlh);
		padding: var(--mpad);
		text-align: var(--mta);
	}
}
@keyframes inx-sr-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Ícono de Font Awesome (fa-arrow-right) como SVG, sin cargar la fuente entera. */
.vc_btn3-icon.fa svg {
	display: block;
	width: .875em;
	height: 1em;
	margin-top: 1px;
}

/* Campo trampa del formulario (WPForms lo oculta igual). */
.inaexpo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Teléfono con selector de país: el contenedor de intl-tel-input ocupa toda la columna. */
#wpforms-46 .iti {
	width: 100%;
}

/* ---------- Pop-up ---------- */
.inx-modal[hidden] {
	display: none;
}
.inx-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
}
.inx-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 32, 31, .72);
	animation: inx-sr-fade .2s ease both;
}
.inx-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin: auto;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	overflow: hidden;
	animation: inx-modal-in .25s ease both;
	outline: none;
}
.inx-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 0;
	border-radius: 50%;
	background: #0b5547;
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.inx-modal__close:hover,
.inx-modal__close:focus-visible {
	background: #08856a;
}
.inx-modal__close svg {
	display: block;
	width: 100%;
	height: 100%;
}
html.inx-modal-open,
html.inx-modal-open body {
	overflow: hidden;
}
@keyframes inx-modal-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

/* La ficha de receta se diseñó como página: dentro del pop-up se ajustan márgenes. */
.inx-modal .receta-single {
	margin: 0;
}
.inx-modal .receta-hero {
	padding-top: 56px;
}
.inx-modal .receta-relacionadas {
	display: none;
}

/* Evento en el pop-up: misma tarjeta que el carrusel, a lo ancho. */
.inx-evento__img {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}
.inx-evento__body {
	padding: 30px 40px 40px;
}
.inx-evento__body .evento-card-head h2 {
	margin: 0;
}
.inx-evento__body .evento-flag {
	flex: 0 0 auto;
	width: 33px;
	height: 22px;
	margin-top: 8px;
	object-fit: cover;
	border-radius: 4px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}
@media (max-width: 767px) {
	.inx-modal {
		padding: 0;
	}
	.inx-modal__dialog {
		border-radius: 0;
		min-height: 100%;
	}
	.inx-evento__body {
		padding: 24px 20px 32px;
	}
}

@media print {
	body.inx-printing > *:not(.inx-modal) {
		display: none !important;
	}
	body.inx-printing .inx-modal {
		position: static;
		padding: 0;
	}
	body.inx-printing .inx-modal__backdrop,
	body.inx-printing .inx-modal__close,
	body.inx-printing .receta-actions {
		display: none !important;
	}
	body.inx-printing .inx-modal__dialog {
		box-shadow: none;
		max-width: none;
	}
}
