/**
 * Hero fotográfico botánico — animaciones y tipografía.
 */

.gs-hero--garden,
.gs-hero.gs-hero-carousel.gs-hero--garden {
	--gs-hero-green: #173d32;
	--gs-hero-sage: #a7d48b;
	--gs-hero-accent: #a7e18c;
	--gs-hero-gold: #d4a62a;
	--gs-hero-gold-hover: #b88c1f;
	position: relative;
	width: 100%;
	aspect-ratio: auto;
	min-height: clamp(580px, 62vw, 650px);
	max-height: none;
	height: clamp(580px, 62vw, 650px);
	display: block;
	color: #fff;
	overflow: hidden;
	background: #0c2619;
}

@media (max-width: 900px) {
	.gs-hero.gs-hero-carousel.gs-hero--garden {
		min-height: clamp(450px, 70vw, 550px);
		height: clamp(450px, 70vw, 550px);
	}
}

@media (max-width: 700px) {
	.gs-hero.gs-hero-carousel.gs-hero--garden {
		min-height: 540px;
		height: 560px;
	}

	.gs-hero--garden .gs-hero-slide__title {
		font-size: clamp(2rem, 8vw, 2.75rem);
	}
}

.gs-hero--garden .gs-hero-carousel__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

@media (max-width: 700px) {
	.gs-hero--garden .gs-hero-carousel__viewport {
		position: absolute;
		min-height: 100%;
	}
}

.gs-hero--garden .gs-hero-slide__media-wrap {
	position: absolute;
	inset: -2%;
	overflow: hidden;
	z-index: 0;
}

.gs-hero--garden .gs-hero-slide__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 70% center;
	background-repeat: no-repeat;
	transform: scale(1);
	will-change: transform;
}

.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__media {
	animation: gsHeroZoom 18s ease-in-out alternate infinite;
}

@media (max-width: 700px) {
	.gs-hero--garden .gs-hero-slide__media {
		background-position: 60% center;
	}
}

@keyframes gsHeroZoom {
	0% { transform: scale(1); }
	100% { transform: scale(1.06); }
}

.gs-hero--garden .gs-hero-slide__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 1 !important;
	background: linear-gradient(
		90deg,
		rgba(12, 38, 25, 0.83) 0%,
		rgba(12, 38, 25, 0.55) 40%,
		rgba(12, 38, 25, 0.12) 75%,
		transparent 100%
	);
}

@media (max-width: 700px) {
	.gs-hero--garden .gs-hero-slide__overlay {
		background: linear-gradient(
			180deg,
			rgba(12, 38, 25, 0.72) 0%,
			rgba(12, 38, 25, 0.55) 45%,
			rgba(12, 38, 25, 0.35) 100%
		);
	}
}

.gs-hero--garden .gs-hero-slide__content {
	position: relative;
	z-index: 3;
	height: 100%;
	display: flex;
	align-items: center;
	padding-block: clamp(5rem, 11vw, 7rem) clamp(2rem, 5vw, 3rem);
	width: min(100% - 2.5rem, var(--container, 1240px));
	margin-inline: auto;
}

/* Solo desktop: bajar un poco el texto para que no lo tape el logo del header */
@media (min-width: 701px) {
	.gs-hero--garden .gs-hero-slide__content {
		padding-top: max(clamp(5rem, 11vw, 7rem), calc(var(--header-h, 175px) + 0.85rem));
	}
}

/* Solo móvil/celular: bajar el texto para que no lo tape el logo del header */
@media (max-width: 700px) {
	.gs-hero--garden .gs-hero-slide__content {
		align-items: flex-start;
		justify-content: flex-start;
		padding-top: calc(var(--header-h, 175px) + 1.75rem);
		padding-bottom: 2.5rem;
	}
}

.gs-hero--garden .gs-hero-slide__inner {
	max-width: min(540px, 50%);
}

@media (max-width: 900px) {
	.gs-hero--garden .gs-hero-slide__inner {
		max-width: min(540px, 92%);
	}
}

.gs-hero--garden .gs-hero-slide__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
	color: var(--gs-hero-sage);
	font-size: clamp(0.95rem, 1.2vw, 1.05rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	position: relative;
}

.gs-hero--garden .gs-hero-slide__eyebrow-icon {
	display: inline-flex;
	line-height: 0;
	color: var(--gs-hero-sage);
}

.gs-hero--garden .gs-hero-slide__eyebrow-text {
	position: relative;
}

.gs-hero--garden .gs-hero-slide__eyebrow-text::after {
	content: '';
	display: block;
	width: 100%;
	height: 3px;
	margin-top: 0.35rem;
	border-radius: 999px;
	background: var(--gs-hero-sage);
	opacity: 0.75;
	clip-path: ellipse(50% 100% at 50% 0%);
	transform: scaleY(0.55);
}

.gs-hero--garden .gs-hero-slide__title {
	margin: 0 0 1rem;
	color: #fff;
	font-family: 'Nunito', var(--font-heading), system-ui, sans-serif;
	font-weight: 900;
	font-size: clamp(2.4rem, 4vw, 4.5rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.gs-hero--garden .gs-hero-slide__accent {
	color: var(--gs-hero-accent);
}

.gs-hero--garden .gs-hero-slide__text {
	margin: 0 0 1.5rem;
	max-width: 540px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1.05rem, 1.25vw, 1.125rem);
	line-height: 1.6;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.gs-hero--garden .gs-hero-slide__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 48px;
	padding: 0 1.85rem;
	border-radius: 999px;
	background: var(--gs-hero-gold);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
	transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.gs-hero--garden .gs-hero-slide__btn:hover,
.gs-hero--garden .gs-hero-slide__btn:focus-visible {
	background: var(--gs-hero-gold-hover);
	color: #fff !important;
	outline: none;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.gs-hero--garden .gs-hero-slide__btn-icon {
	display: block;
	transition: transform 250ms ease;
}

.gs-hero--garden .gs-hero-slide__btn:hover .gs-hero-slide__btn-icon,
.gs-hero--garden .gs-hero-slide__btn:focus-visible .gs-hero-slide__btn-icon {
	transform: translateX(4px);
}

/* Entrada escalonada (una vez) */
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__eyebrow,
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__title,
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__text,
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__cta {
	animation: gsHeroFadeUp 650ms ease forwards;
	opacity: 0;
	transform: translateY(15px);
}

.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__eyebrow { animation-delay: 80ms; }
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__title { animation-delay: 200ms; }
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__text { animation-delay: 320ms; }
.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__cta { animation-delay: 440ms; }

@keyframes gsHeroFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Hojas cayendo */
.gs-hero__leaves {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	overflow: hidden;
}

.gs-hero__leaf {
	position: absolute;
	top: -40px;
	width: 18px;
	height: 18px;
	opacity: 0;
	will-change: transform, opacity;
	animation: gsFallingLeaf linear infinite;
}

.gs-hero__leaf--1 { left: 12%; width: 16px; height: 16px; animation-duration: 14s; animation-delay: 0s; }
.gs-hero__leaf--2 { left: 28%; width: 22px; height: 22px; animation-duration: 17s; animation-delay: -3s; }
.gs-hero__leaf--3 { left: 48%; width: 14px; height: 14px; animation-duration: 12s; animation-delay: -6s; }
.gs-hero__leaf--4 { left: 62%; width: 20px; height: 20px; animation-duration: 16s; animation-delay: -2s; }
.gs-hero__leaf--5 { left: 78%; width: 15px; height: 15px; animation-duration: 15s; animation-delay: -8s; }
.gs-hero__leaf--6 { left: 88%; width: 18px; height: 18px; animation-duration: 18s; animation-delay: -5s; }

@keyframes gsFallingLeaf {
	0% {
		transform: translate3d(0, -80px, 0) rotate(0deg);
		opacity: 0;
	}
	10% { opacity: 0.75; }
	50% {
		transform: translate3d(40px, 45vh, 0) rotate(95deg);
		opacity: 0.7;
	}
	90% { opacity: 0.55; }
	100% {
		transform: translate3d(90px, 110vh, 0) rotate(180deg);
		opacity: 0;
	}
}

/* Hojas en primer plano */
.gs-hero__fg-leaf {
	position: absolute;
	bottom: -8%;
	z-index: 4;
	width: min(22vw, 200px);
	height: auto;
	pointer-events: none;
	filter: blur(0.6px);
	animation: gsFgLeafSway 7s ease-in-out infinite;
}

.gs-hero__fg-leaf--left {
	left: -2%;
	transform-origin: bottom left;
}

.gs-hero__fg-leaf--right {
	right: -2%;
	transform-origin: bottom right;
	animation-duration: 8s;
	animation-direction: reverse;
}

@keyframes gsFgLeafSway {
	0%, 100% { transform: rotate(-2deg); }
	50% { transform: rotate(2.2deg); }
}

/* Controles slider */
.gs-hero--garden .gs-hero-carousel__nav {
	width: 46px;
	height: 46px;
	background: rgba(255, 255, 255, 0.88);
	color: var(--gs-hero-green);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.gs-hero--garden .gs-hero-carousel__nav:hover,
.gs-hero--garden .gs-hero-carousel__nav:focus-visible {
	background: var(--gs-hero-green);
	color: #fff;
	transform: translateY(-50%) scale(1.04);
	outline: none;
}

.gs-hero--garden .gs-hero-carousel__dot {
	width: 11px;
	height: 11px;
	border: 2px solid rgba(255, 255, 255, 0.95);
	background: transparent;
}

.gs-hero--garden .gs-hero-carousel__dot.is-active,
.gs-hero--garden .gs-hero-carousel__dot:hover {
	background: #fff;
}

@media (max-width: 767px) {
	/* En móvil: sin flechas laterales; se navega con dots / swipe */
	.gs-hero-carousel__nav,
	.gs-hero--garden .gs-hero-carousel__nav {
		display: none !important;
	}

	/* Solo móvil: bajar los 3 puntos para que no choquen con «Explorar productos» */
	.gs-hero-carousel__dots,
	.gs-hero--garden .gs-hero-carousel__dots {
		bottom: 0.35rem;
	}

	.gs-hero--garden .gs-hero-slide__content {
		padding-bottom: 3.75rem;
	}

	.gs-hero--garden .gs-hero__leaf {
		width: 12px !important;
		height: 12px !important;
		opacity: 0.55;
	}

	.gs-hero--garden .gs-hero__fg-leaf {
		width: min(34vw, 140px);
		opacity: 0.85;
	}

	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__media {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__media,
	.gs-hero--garden .gs-hero__leaf,
	.gs-hero--garden .gs-hero__fg-leaf,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__eyebrow,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__title,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__text,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__cta {
		animation: none !important;
	}

	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__eyebrow,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__title,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__text,
	.gs-hero--garden .gs-hero-slide.is-active .gs-hero-slide__cta {
		opacity: 1;
		transform: none;
	}

	.gs-hero--garden .gs-hero__leaves {
		display: none;
	}
}
