/* =========================================================
   HH Campañas · Modal de campaña
   Mismo diseño que el modal «Back to the City».
   Base móvil + min-width para escritorio.
   ========================================================= */

/* ---------- Fuentes (subidas al sitio principal) ---------- */
@font-face {
	font-family: "PP Fragment Text";
	src: url("/wp-content/uploads/2025/05/PPFragment-GlareRegular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "PP Glare Sans";
	src: url("/wp-content/uploads/2025/05/PPFragment-SansRegular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* ---------- Modal (móvil) ---------- */
.hhc-modal,
.hhc-modal * {
	box-sizing: border-box;
}

.hhc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: min(430px, calc(100vw - 24px));
	max-width: none;
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #000;
	color: #fff;
	overflow-x: hidden;
	overflow-y: auto;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .30);
}

.hhc-modal:not([open]) {
	display: none !important;
}

.hhc-modal::backdrop {
	background: rgba(0, 0, 0, .55);
}

.hhc-modal[open] {
	animation: hhc-in .2s ease both;
}

@keyframes hhc-in {
	from { opacity: 0; transform: scale(.985); }
	to   { opacity: 1; transform: scale(1); }
}

/* ---------- Layout ---------- */
.hhc-modal .hhc-layout {
	position: relative;
	display: grid;
	grid-template-columns: 1fr;
	width: 100%;
	background: #000;
}

/* ---------- Imagen / vídeo ---------- */
.hhc-modal .hhc-media {
	position: relative;
	min-width: 0;
	height: 240px;
	overflow: hidden;
	background: #111;
}

.hhc-modal .hhc-media img,
.hhc-modal .hhc-media video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------- Contenido ---------- */
.hhc-modal .hhc-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: 28px 24px 30px;
	background: #000;
	color: #fff;
}

.hhc-modal .hhc-title {
	margin: 0 0 14px;
	padding: 0;
	color: #fff;
	font-family: "PP Fragment Text", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: normal;
	text-transform: none;
}

.hhc-modal .hhc-intro {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "PP Glare Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

/* ---------- Ventajas (con punto) ---------- */
.hhc-modal .hhc-benefits {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 18px 0 0;
	padding: 0;
}

.hhc-modal .hhc-benefits p {
	position: relative;
	margin: 0;
	padding: 0 0 0 15px;
	color: rgba(255, 255, 255, .76);
	font-family: "PP Glare Sans", sans-serif;
	font-size: 13px;
	line-height: 1.45;
}

.hhc-modal .hhc-benefits p::before {
	content: "•";
	position: absolute;
	top: 0;
	left: 0;
	font-family: Arial, sans-serif;
	font-size: 12px;
	line-height: 1.45;
}

/* ---------- Código y condiciones ---------- */
.hhc-modal .hhc-conditions {
	margin: 12px 0 0;
}

.hhc-modal .hhc-conditions p {
	margin: 0;
	color: rgba(255, 255, 255, .7);
	font-family: "PP Glare Sans", sans-serif;
	font-size: 11px;
	line-height: 1.45;
}

/* ---------- Negrita (texto entre **asteriscos** en el panel) ---------- */
.hhc-modal strong {
	color: #fff;
	font-weight: 700;
}

/* El código promocional destaca un poco más en la línea de condiciones */
.hhc-modal .hhc-conditions strong {
	font-size: 1.15em;
	letter-spacing: .03em;
}

/* ---------- Botón (colores y tipografía del kit de cada hotel) ---------- */
.hhc-modal .hhc-cta,
.hhc-modal .hhc-cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	margin-top: 22px;
	padding: 8px 24px;
	border: none;
	background-color: var(--e-global-color-c0f3212, #fff);
	color: var(--e-global-color-8cd5322, #000);
	font-family: var(--e-global-typography-1a50e84-font-family), sans-serif;
	font-size: var(--e-global-typography-1a50e84-font-size);
	line-height: var(--e-global-typography-1a50e84-line-height);
	text-decoration: none;
}

/* ---------- Cerrar ---------- */
.hhc-modal .hhc-close,
.hhc-modal .hhc-close:hover,
.hhc-modal .hhc-close:focus,
.hhc-modal .hhc-close:active {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 5px;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #fff !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	transform: none !important;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6));
}

.hhc-modal .hhc-close:hover {
	opacity: .7;
}

.hhc-modal .hhc-close:focus-visible {
	outline: 1px solid rgba(255, 255, 255, .8);
	outline-offset: 2px;
}

.hhc-modal .hhc-close svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
	pointer-events: none;
}

/* ---------- Modal antiguo: nunca a la vez que una campaña del plugin ---------- */
.aperitif-modal {
	display: none !important;
}

/* ---------- Bloqueo del scroll mientras está abierto ---------- */
html.hhc-open,
html.hhc-open body {
	overflow: hidden;
}

/* ---------- Escritorio ---------- */
@media (min-width: 601px) {
	.hhc-modal {
		width: min(780px, calc(100vw - 32px));
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		overflow: hidden;
	}

	.hhc-modal .hhc-layout {
		grid-template-columns: 45% 55%;
		min-height: 480px;
	}

	.hhc-modal .hhc-media {
		height: auto;
		min-height: 480px;
	}

	.hhc-modal .hhc-content {
		padding: 48px 40px 44px;
	}

	.hhc-modal .hhc-title {
		margin-bottom: 18px;
		font-size: 34px;
		line-height: 1;
	}

	.hhc-modal .hhc-intro {
		max-width: 345px;
		font-size: 16px;
	}

	.hhc-modal .hhc-benefits {
		gap: 5px;
		margin-top: 22px;
	}

	.hhc-modal .hhc-benefits p {
		font-size: 14px;
	}

	.hhc-modal .hhc-cta {
		margin-top: 28px;
	}
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.hhc-modal[open] {
		animation: none;
	}
}
