/* ================================================
   TIENDA — hero animado con código (reemplaza a los videos banner-*.mp4)
   Réplica de la composición HyperFrames de _videos/banner-home (16 s en bucle).
   La escena se dibuja a tamaño de diseño (1500×360 / 900×360 / 400×330): solo
   el alto que ocupa el contenido, sin aire extra. Todas las medidas se escalan
   con --u = 1px de diseño según el ancho real. El botón de WhatsApp va bajo los planes.
   El fondo es la imagen difuminada fija: solo se mueven las letras.
   Animación en lib/js/tienda-hero.js (GSAP).
   ================================================ */
.tha {
	/* medidas por formato (el JS las lee: --tha-ancho y --tha-k) */
	--tha-ancho: 1500;
	--tha-alto: 360;
	--tha-k: 1.2;           /* textos más grandes que los h2 de la página */
	--tha-k-gigante: 1;     /* la palabra de fondo no crece con los textos */
	--tha-contenido: 900;
	--tha-pie: 0;

	--u: calc(100cqw / var(--tha-ancho));

	--tha-texto: var(--site-color-primary);
	--tha-texto-2: var(--site-color-text);
	--tha-grad-a: var(--marca);
	--tha-grad-b: var(--marca-claro);
	--tha-pildora: var(--site-color-gris-claro);
	--tha-borde: var(--site-color-borde);
	--tha-contorno: rgba(136, 106, 222, 0.2);

	position: relative;
	container-type: inline-size;
	padding: 32px 0 32px !important;
	overflow: hidden;
	background: var(--site-color-fondo);
}

@media (max-width: 1300px) {
	.tha {
		--tha-ancho: 900;
		--tha-alto: 360;
		--tha-k: 0.95;
		--tha-k-gigante: var(--tha-k);
		--tha-contenido: 760;
		--tha-pie: 0;
	}
}

@media (max-width: 768px) {
	.tha {
		--tha-ancho: 400;
		--tha-alto: 330;
		--tha-k: 0.72;          /* textos más grandes: pueden pasar a dos líneas */
		--tha-k-gigante: var(--tha-k);
		--tha-contenido: 380;
		--tha-pie: 0;
	}
	.tha {
		padding-top: 16px !important;
	}
	/* la frase del gancho fluye seguida: se parte donde quepa, sin dejar "más" sola */
	.tha__t1 .tha__linea {
		display: inline;
	}
	/* el gancho completo entra en un solo frame */
	.tha__t1 .tha__titulo {
		font-size: calc(var(--tha-k) * 40 * var(--u));
	}
	.tha__t2-l1 {
		font-size: calc(var(--tha-k) * 38 * var(--u));
	}
	.tha__t2-l2 {
		font-size: calc(var(--tha-k) * 80 * var(--u));
	}
	/* en móvil la fila del ticker baja un poco para que "Orden de mesas" quepa en una línea */
	.tha__fila {
		font-size: calc(var(--tha-k) * 44 * var(--u));
	}
	.tha__noti {
		font-size: 15px;
	}
}

/* fondo difuminado fijo (el mismo que tenía el hero antes del video) */
.tha::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: var(--tha-blur);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	opacity: 0.1;
	pointer-events: none;
}

/* H1 solo para SEO y lectores de pantalla */
.tha__h1 {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.tha__defs {
	position: absolute;
	width: 0;
	height: 0;
}

.tha__escena {
	position: relative;
	width: 100%;
	aspect-ratio: var(--tha-ancho) / var(--tha-alto);
	color: var(--tha-texto);
	font-family: var(--site-typography-primary-font-family), sans-serif;
	-webkit-font-smoothing: antialiased;
}

.tha-oculto {
	opacity: 0;
	visibility: hidden;
}

/* ---------- Palabra gigante en contorno ---------- */
.tha__gigante {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: calc(var(--tha-pie) * var(--u));
	display: flex;
	align-items: center;
	justify-content: center;
}

.tha__gigante span {
	display: block;
	font-size: calc(var(--tha-k-gigante) * 230 * var(--u));
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.05em;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--tha-contorno);
}

/* ---------- Tiempos: centrados, un poco por encima del centro ---------- */
.tha__tiempo {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: calc(var(--tha-pie) * var(--u));
	width: calc(var(--tha-contenido) * var(--u));
	margin-left: calc(var(--tha-contenido) * var(--u) / -2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: calc(var(--tha-k) * 16 * var(--u));
	text-align: center;
}

.tha__titulo {
	margin: 0;
	font-family: var(--site-typography-primary-font-family), sans-serif;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--tha-texto);
}

.tha__linea {
	display: block;
}

.tha .pal {
	display: inline-block;
	white-space: nowrap;
}

.tha .ch {
	display: inline-block;
}

.tha__degradado {
	background: linear-gradient(90deg, var(--tha-grad-a) 0%, var(--tha-grad-b) 50%, var(--tha-grad-a) 100%);
	background-size: 200% 100%;
	background-position: 0% 50%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* máscara por palabra */
.tha__w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}

.tha__wi {
	display: inline-block;
}

.tha__icono {
	fill: none;
	stroke: url(#tha-g-icono);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Tiempo 1: el gancho ---------- */
.tha__t1 .tha__titulo {
	font-size: calc(var(--tha-k) * 44 * var(--u));
	font-weight: 400;
}

/* más aire entre la 1.ª frase y la 2.ª */
.tha__t1 {
	gap: calc(var(--tha-k) * 26 * var(--u));
}

.tha__ia {
	position: relative;
	width: 1.45em;
	text-align: left;
}

.tha__ia-base {
	display: inline-block;
}

.tha__ia-var {
	position: absolute;
	left: 0;
	top: 0;
	opacity: 0;
}

/* ---------- Tiempo 1 (2.ª parte): "es la forma de contar tu historia" ---------- */
.tha__t2-l1 {
	display: block;
	font-size: calc(var(--tha-k) * 40 * var(--u));
	font-weight: 600;
}

.tha__t2-l2 {
	position: relative;
	display: inline-block;
	font-size: calc(var(--tha-k) * 96 * var(--u));
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.045em;
}

.tha__t2-grad {
	display: inline-block;
	padding: 0 calc(4 * var(--u)) calc(6 * var(--u));
}

.tha__destello {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(20 * var(--u));
	height: calc(20 * var(--u));
	margin-left: calc(-10 * var(--u));
	margin-top: calc(-10 * var(--u));
}

.tha__destello svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ---------- Tiempo 3: el panel ---------- */
.tha__t3-tit {
	font-size: calc(var(--tha-k) * 50 * var(--u));
}

.tha__ticker {
	height: calc(var(--tha-k) * 72 * var(--u));
	width: calc(var(--tha-contenido) * var(--u));
	overflow: hidden;
}

.tha__ticker-col {
	display: flex;
	flex-direction: column;
}

.tha__fila {
	height: calc(var(--tha-k) * 72 * var(--u));
	display: flex;
	align-items: center;
	justify-content: center;
	gap: calc(var(--tha-k) * 14 * var(--u));
	font-size: calc(var(--tha-k) * 56 * var(--u));
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: calc(var(--tha-k) * 72 * var(--u));
}

.tha__fila svg {
	display: block;
	flex: 0 0 calc(var(--tha-k) * 46 * var(--u));
	width: calc(var(--tha-k) * 46 * var(--u));
	height: calc(var(--tha-k) * 46 * var(--u));
}

/* ---------- Tiempo 4: la app ---------- */
.tha__t4-tit {
	font-size: calc(var(--tha-k) * 52 * var(--u));
}

.tha__t4-grad {
	display: inline-block;
	font-weight: 800;
}

.tha__notis {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: calc(10 * var(--u));
	margin-top: calc(6 * var(--u));
}

.tha__noti {
	display: flex;
	align-items: center;
	gap: calc(12 * var(--u));
	padding: calc(8 * var(--u)) calc(18 * var(--u)) calc(8 * var(--u)) calc(8 * var(--u));
	border: 1px solid var(--tha-borde);
	border-radius: calc(14 * var(--u));
	background: #FFFFFF;
	box-shadow: 0 10px 24px rgba(20, 30, 60, 0.07);
	font-family: var(--site-typography-text-font-family), sans-serif;
	font-size: max(13px, calc(var(--tha-k) * 16 * var(--u)));
	font-weight: 600;
	color: var(--tha-texto);
}

.tha__noti-icono {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 calc(30 * var(--u));
	width: calc(30 * var(--u));
	height: calc(30 * var(--u));
	border-radius: calc(9 * var(--u));
	background: linear-gradient(135deg, var(--tha-grad-a) 0%, var(--tha-grad-b) 100%);
}

.tha__noti-icono svg {
	display: block;
	width: calc(16 * var(--u));
	height: calc(16 * var(--u));
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tha__campana {
	transform-origin: 50% 15%;
}
