/* Animaciones de entrada (hero, SEO landing) y de scroll-reveal (Nosotros).
   Las clases utilitarias (colores, layout, responsive) viven en tailwind.css;
   esto es lo unico que no se puede expresar como utilidad de Tailwind. */

@keyframes loma-fade-up {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes loma-fade-scale {
	from { opacity: 0; transform: scale(0.9); }
	to   { opacity: 1; transform: scale(1); }
}

[data-animate-onload] {
	opacity: 0;
	animation: loma-fade-up 0.8s ease-out forwards;
	animation-delay: 0s;
}
[data-animate-onload="fade-scale"] {
	animation-name: loma-fade-scale;
}

[data-animate] {
	opacity: 0;
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animate="fade-left"]  { transform: translateX(-50px); }
[data-animate="fade-right"] { transform: translateX(50px); }
[data-animate="fade-up"]    { transform: translateY(30px); }
[data-animate].is-visible {
	opacity: 1;
	transform: translate(0, 0);
}

/* Hero parallax (background image follows scroll like the original useScroll/useTransform) */
#loma-hero-parallax {
	will-change: transform, opacity;
}

/* Dimensiones del slider principal por dispositivo: movil 1080x1350, tablet y escritorio 1920x1080 */
.hero-section {
	height: auto;
	aspect-ratio: 1080 / 1350;
}
@media (min-width: 768px) {
	.hero-section {
		aspect-ratio: 1920 / 1080;
	}
}
/* Logo del footer: un poco mas grande que el del header, sin pasarse del ancho en movil */
.loma-footer-logo {
	height: 56px;
	max-width: 100%;
}

/* Diagrama "Nuestros Cortes": la imagen nunca supera el ancho del panel */
.loma-cut-diagram,
.loma-cut-diagram img {
	max-width: 100%;
}

/* Panel "Nuestros Cortes": marco de la foto del corte (las fotos del catalogo son cuadradas) */
.loma-cut-image-frame {
	aspect-ratio: 4 / 3;
}

/* Contenido del hero pegado abajo (cuando la imagen ya trae su propio texto) */
.hero-content--bottom {
	align-self: flex-end;
	padding-bottom: 8%;
}
/* En movil, botones en una sola fila y compactos para no tapar el producto */
@media (max-width: 767px) {
	.hero-content--bottom {
		padding-bottom: 5%;
	}
	.hero-content--bottom .flex {
		flex-wrap: nowrap;
		gap: 0.75rem;
	}
	.hero-content--bottom a {
		padding: 0.85rem 1.1rem;
		letter-spacing: 0.15em;
		white-space: nowrap;
	}
}
