/* ====================================================================
   PUELO SECRETO — ANIMATIONS & MICROINTERACTIONS
   Scroll-reveal, hover, parallax, counters, microinteracciones.
   ==================================================================== */

/* === SCROLL REVEAL === */
[data-ps-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
	will-change: opacity, transform;
}
[data-ps-reveal].is-revealed {
	opacity: 1;
	transform: translateY(0);
}

[data-ps-reveal-stagger] {
	opacity: 0;
	transform: translateY(40px) scale(.98);
	transition: opacity .8s var(--ease-out), transform .8s var(--ease-bounce);
}
[data-ps-reveal-stagger].is-revealed {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Variantes de entrada */
[data-ps-reveal="left"]  { transform: translateX(-60px); }
[data-ps-reveal="right"] { transform: translateX(60px); }
[data-ps-reveal="scale"] { transform: scale(.85); }
[data-ps-reveal="fade"]  { transform: none; }

/* === HERO PARALLAX === */
.ps-hero__bg.is-parallax {
	transform: translate3d(0, var(--parallax-y, 0), 0);
}

/* === WIDE PHOTO PARALLAX === */
.ps-widephoto.is-parallax {
	background-position: center calc(50% + var(--parallax-y, 0) * .2);
}

/* === HERO TEXT — LETTER/SWORD ANIMATION === */
.ps-hero__title-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}
.ps-hero__title-word > span {
	display: inline-block;
	transform: translateY(120%);
	animation: ps-word-rise 1s var(--ease-bounce) forwards;
}

@keyframes ps-word-rise {
	to { transform: translateY(0); }
}

/* Fade-in slide de elementos en hero */
.ps-hero__slide-active .ps-eyebrow {
	animation: ps-fade-up .8s var(--ease-out) .2s both;
}
.ps-hero__slide-active h1 {
	animation: ps-fade-up .8s var(--ease-out) .35s both;
}
.ps-hero__slide-active p {
	animation: ps-fade-up .8s var(--ease-out) .5s both;
}
.ps-hero__slide-active a {
	animation: ps-fade-up .8s var(--ease-out) .65s both;
}

@keyframes ps-fade-up {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* === BUTTONS — RISE & SHINE === */
.ps-btn {
	animation: ps-btn-rise .8s var(--ease-bounce) both;
}

@keyframes ps-btn-rise {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

/* === STATS COUNTER === */
.ps-stats__item b {
	transition: transform var(--t-med);
}
.ps-stats__item:hover b {
	transform: scale(1.08);
	color: var(--forest);
}

/* === YURT CARD TILT === */
.ps-yurt {
	transition: transform var(--t-slow), box-shadow var(--t-slow);
}

/* === SECTION LABEL — UNDERLINE GROW === */
.ps-sectionlabel {
	position: relative;
	padding-bottom: 6px;
	display: inline-block;
}
.ps-sectionlabel::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 28px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .8s var(--ease-out) .25s;
}
.ps-sectionlabel.is-revealed::after,
[data-ps-reveal].is-revealed .ps-sectionlabel::after,
.ps-dark .ps-sectionlabel::after {
	transform: scaleX(1);
}

/* === NAV LINKS — LETTER SPACING ON HOVER === */
.ps-navlinks a {
	transition: letter-spacing var(--t-med), opacity var(--t-fast);
}
.ps-navlinks a:hover { letter-spacing: .22em; }

/* === MARQUEE-LIKE FOREST SCROLL HINT (hero bottom) === */
.ps-hero__bottom {
	transition: opacity var(--t-slow);
}
.ps-hero.is-out .ps-hero__bottom { opacity: 0; }

/* === LINKS — ARROW NUDGE === */
.ps-navbook,
.ps-yurt-reserve,
.ps-btn {
	transition: opacity var(--t-fast), transform var(--t-fast), letter-spacing var(--t-med);
}
.ps-yurt-reserve:hover { letter-spacing: .18em; }

/* === IMG ZOOM ON HOVER (yurt, experience) === */
.ps-yurt__photo,
.ps-experience__photo {
	overflow: hidden;
}
.ps-yurt__photo img,
.ps-experience__photo img,
.ps-photo-link img {
	transition: transform 1.2s var(--ease-out);
}

/* === RIPPLE KEYFRAME === */
@keyframes ps-ripple-anim {
	to { transform: scale(4); opacity: 0; }
}

/* === PULSE FOR ACTIVE SLIDES === */
[data-ps-hero-swiper] .swiper-slide-active .ps-eyebrow::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	background: var(--gold);
	border-radius: 50%;
	margin-right: 14px;
	vertical-align: middle;
	animation: ps-pulse 2s ease-in-out infinite;
}

@keyframes ps-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%      { transform: scale(1.5); opacity: .5; }
}

/* === TEXT SHIMMER (hero title hover) === */
.ps-hero h1 {
	background: linear-gradient(120deg, var(--white) 0%, var(--white) 40%, #e7d8c0 50%, var(--white) 60%, var(--white) 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: ps-shimmer 8s ease-in-out infinite;
}
@keyframes ps-shimmer {
	0%, 100% { background-position: 0% 50%; }
	50%      { background-position: 100% 50%; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	[data-ps-reveal],
	[data-ps-reveal-stagger] {
		opacity: 1;
		transform: none;
	}
	.ps-hero h1 {
		background: none;
		-webkit-text-fill-color: var(--white);
	}
}
