/**
 * Zafiro — Home V5.4: Natural Cinematic Scroll Motion Styles
 *
 * Isolated styles for GSAP + ScrollTrigger animations.
 * Provides GPU acceleration hints, overflow protection, natural unpinned layout,
 * and robust graceful degradation.
 *
 * @package Zafiro
 */

/* ==========================================================================
   0. Graceful Fallback & Overflow Protection
   ========================================================================== */
.zafiro-home {
	overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
	.zafiro-groups__banner {
		width: 100% !important;
		min-height: clamp(500px, 42vw, 620px) !important;
		border-radius: 16px !important;
	}

	.zafiro-groups__content,
	.zafiro-path-card,
	.zafiro-custom__copy,
	.zafiro-category-editorial {
		opacity: 1 !important;
		transform: none !important;
	}

	.zafiro-hero-slide--1[style*="--zafiro-hero-image"]::after,
	.zafiro-path-card__media img,
	.zafiro-custom__media img,
	.zafiro-category-editorial__media img,
	.zafiro-groups__bg {
		transform: none !important;
		scale: 1 !important;
		clip-path: none !important;
		transition: none !important;
	}
}

/* ==========================================================================
   1. Hero Section Subtle Scroll Zoom
   ========================================================================== */
.zafiro-hero-carousel {
	--zafiro-hero-scroll-zoom: 1;
}

.zafiro-hero-slide--1[style*="--zafiro-hero-image"]::after {
	transform: scale(var(--zafiro-hero-scroll-zoom, 1));
	transform-origin: 80% bottom;
	will-change: transform;
}

/* ==========================================================================
   2. Encontrá tu forma (Paths)
   ========================================================================== */
.zafiro-paths__grid {
	overflow: visible;
}

/* Prevent CSS transition conflict with GSAP direct transforms */
.zafiro-paths--animate .zafiro-path-card {
	transition: none !important;
}

.zafiro-path-card {
	will-change: transform, opacity;
}

.zafiro-path-card__media {
	overflow: hidden;
	position: relative;
}

.zafiro-path-card__media img {
	transform-origin: center center;
	will-change: transform;
}

/* ==========================================================================
   3. Creá tu propio diseño (Custom)
   ========================================================================== */
.zafiro-custom__media {
	overflow: hidden;
}

.zafiro-custom__media img {
	scale: 1.18;
	transform-origin: center center;
	will-change: transform;
}

.zafiro-custom__copy {
	will-change: transform, opacity;
}

/* ==========================================================================
   4. Prendas para tu mensaje (Categories)
   ========================================================================== */
.zafiro-category-editorial {
	will-change: transform, opacity;
}

.zafiro-category-editorial__media {
	overflow: hidden;
}

.zafiro-category-editorial__media img {
	transform-origin: center center;
	will-change: transform;
}

/* ==========================================================================
   5. Cotizá para grupos (Groups Natural Cinematic Expansion — No Pin)
   ========================================================================== */
.zafiro-groups {
	overflow-x: clip;
	position: relative;
}

.zafiro-groups__container {
	align-items: center;
	display: flex;
	justify-content: center;
	width: 100%;
}

.zafiro-groups__banner {
	box-shadow: 0 20px 50px rgba(16, 40, 30, 0.14);
	margin-inline: auto;
	max-inline-size: 100%;
	position: relative;
	width: 100%;
	will-change: width, min-height, border-radius;
}

.zafiro-groups__bg {
	transform-origin: center center;
	will-change: transform;
}

.zafiro-groups__content {
	will-change: opacity, transform;
}
