/* ---------------------------------------------------------
   Promo vigente: popup (template-parts/promo-popup.php +
   assets/js/promo-popup.js). Flyer vertical centrado, × arriba a la
   derecha, letra chica debajo. Entra con un fundido + leve zoom.
   --------------------------------------------------------- */

.datio-promo {
	position: fixed;
	inset: 0;
	z-index: 100000; /* por encima del botón flotante de WhatsApp */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.datio-promo[hidden] {
	display: none;
}

.datio-promo.is-visible {
	opacity: 1;
}

.datio-promo__fondo {
	position: absolute;
	inset: 0;
	background: rgba(5, 6, 10, 0.72);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.datio-promo__caja {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	max-height: 100%;
	transform: scale(0.94) translateY(10px);
	transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.datio-promo.is-visible .datio-promo__caja {
	transform: none;
}

/* El flyer manda por altura (es vertical): entra entero en la pantalla
   dejando lugar a la letra chica. */
.datio-promo__flyer {
	position: relative;
	display: block;
	line-height: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.datio-promo__flyer img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(92vw, 560px);
	max-height: calc(100vh - 110px);
	max-height: calc(100dvh - 110px);
}

/* Enlace real sobre el botón "Escribime por WhatsApp" dibujado en el
   flyer (posición en % de la imagen, así acompaña cualquier tamaño). */
.datio-promo__whatsapp {
	position: absolute;
	left: 57.6%;
	top: 90.5%;
	width: 34.8%;
	height: 5.2%;
	border-radius: 999px;
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.datio-promo__whatsapp:hover,
.datio-promo__whatsapp:focus-visible {
	background: rgba(37, 211, 102, 0.14);
	box-shadow: 0 0 0 3px #25d366, 0 0 22px rgba(37, 211, 102, 0.6);
	outline: none;
}

.datio-promo__cerrar {
	position: absolute;
	z-index: 2;
	top: -14px;
	right: -14px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #14232a;
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.datio-promo__cerrar:hover,
.datio-promo__cerrar:focus-visible {
	background: var(--datio-brand-red);
	transform: scale(1.06);
	outline: none;
}

/* Letra chica legible: blanco pleno, más peso y una sombra que la
   separa del fondo oscurecido (sin agrandar el popup). */
.datio-promo__letra-chica {
	max-width: min(92vw, 560px);
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.datio-promo__letra-chica a {
	color: #ffffff;
	font-weight: 600;
	white-space: nowrap;
}

/* Celular: la × entra en la pantalla (no puede salirse por arriba). */
@media (max-width: 600px) {
	.datio-promo__cerrar {
		top: 8px;
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.datio-promo,
	.datio-promo__caja {
		transition: none;
	}
}

/* El fondo de la página no scrollea con el popup abierto. */
html.datio-promo-abierta {
	overflow: hidden;
}

/* ---------------------------------------------------------
   Precio de lista tachado + "Gratis el primer año" en el plan y la
   galleta del .com del bloque Dominios (ver datio_get_promo()).
   --------------------------------------------------------- */
.datio-plan__precio--promo {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.datio-plan__precio--promo del {
	color: var(--datio-text-dim);
	font-size: 0.95rem;
	text-decoration-color: var(--datio-brand-red);
	text-decoration-thickness: 2px;
}

.datio-plan__precio--promo strong {
	color: var(--datio-brand-yellow);
}

.datio-plan__promo-nota {
	margin: 6px 0 0;
	font-size: 0.74rem;
	line-height: 1.35;
	color: var(--datio-text-dim);
}

.datio-consulta-dominio__chip--promo del {
	opacity: 0.6;
	text-decoration-color: var(--datio-brand-red);
	text-decoration-thickness: 2px;
}
