/* ==========================================
   Aluna Hero Slider New — Frontend Styles
   Prefix: ahs2- (compatible with v2 legacy styles)
   Child slide class: .wp-block-aluna-slider-slide
   ========================================== */

/* --- Base Container --- */
.ahs2 {
	position: relative;
	height: calc(100vh - 110px) !important;
	min-height: calc(100vh - 110px) !important;
	overflow: hidden;
}

/* --- Track --- */
.ahs2-track {
	position: absolute;
	inset: 0;
}

/* --- Slide (child block: aluna/slider-slide) --- */
.wp-block-aluna-slider-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
	pointer-events: none;
}
.wp-block-aluna-slider-slide:first-child {
	opacity: 1;
	pointer-events: auto;
}
.wp-block-aluna-slider-slide.active {
	opacity: 1;
	pointer-events: auto;
}

/* --- Slide background image --- */
.ahs2-slide-bg {
	position: absolute;
	inset: 0;
}
.ahs2-slide-bg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.68) saturate(0.85);
}

/* --- Overlay --- */
.ahs2-slide-ov {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		160deg,
		rgba(28, 24, 20, 0.55) 0%,
		rgba(28, 24, 20, 0.12) 45%,
		rgba(28, 24, 20, 0.08) 55%,
		rgba(26, 20, 15, 0.72) 100%
	);
}

/* --- Content wrapper --- */
.ahs2-slide-inner {
	position: relative;
	z-index: 5;
	min-height: 100%;
	height: 100%;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 clamp(20px, 5vw, 72px) clamp(40px, 7vh, 88px);
	max-width: min(1360px, 100%);
	margin: 0 auto;
	box-sizing: border-box;
	font-family: var(--aluna-font-body);
}

/* --- Staggered entrance animations --- */
.wp-block-aluna-slider-slide .ahs2-slide-inner > * {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.9s; }
.wp-block-aluna-slider-slide.active .ahs2-slide-inner > *:nth-child(n+6) { opacity: 1; transform: translateY(0); transition-delay: 1s; }

/* --- Typography --- */
.ahs2-slide-inner h1,
.ahs2-slide-inner h2,
.ahs2-slide-inner h3,
.ahs2-slide-inner .wp-block-heading {
	font-family: var(--aluna-font-display);
	margin-top: 0 !important;
	line-height: 0.78;
	margin-bottom: 30px;
}
.ahs2-slide-inner em {
	font-style: italic;
	color: var(--aluna-cream);
}
.ahs2-slide-inner p[style*="font-style:italic"],
.ahs2-slide-inner p[style*="font-style: italic"] {
	font-family: var(--aluna-font-display);
	max-width: 520px;
	margin-bottom: 44px;
}
.ahs2-slide-inner .wp-block-button__link {
	font-family: var(--aluna-font-body);
}

/* Home hero content tuned to match the reference wireframe */
.ahs2-slide-inner .aluna-home-hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	width: fit-content;
	max-width: min(100%, 720px);
	margin-top: 0 !important;
	margin-bottom: 18px !important;
	font-family: var(--aluna-font-body) !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	letter-spacing: 5px !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
	color: rgba(254, 252, 248, 0.85) !important;
	text-wrap: balance;
}

.ahs2-slide-inner .aluna-home-hero-eyebrow::before {
	content: "";
	flex: 0 0 32px;
	width: 32px;
	height: 1px;
	background: rgba(254, 252, 248, 0.68);
}

.ahs2-slide-inner .aluna-home-hero-sub {
	max-width: 520px;
	margin-top: 0 !important;
	font-family: var(--aluna-font-display) !important;
	font-size: 22px !important;
	font-style: italic !important;
	font-weight: 300 !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
	color: rgba(254, 252, 248, 0.72) !important;
	text-wrap: pretty;
}

.ahs2-slide-inner .aluna-home-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 14px;
}

.ahs2-slide-inner .aluna-home-hero-button {
	margin: 0;
}

.ahs2-slide-inner .aluna-home-hero-button .wp-block-button__link {
	min-height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
}

/* --- Navigation Arrows --- */
.ahs2-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	width: 54px;
	height: 54px;
	background: rgba(254, 252, 248, 0.12);
	border: 1px solid rgba(254, 252, 248, 0.28);
	color: var(--aluna-cream);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: all 0.25s;
}
.ahs2-arrow-prev { left: 24px; }
.ahs2-arrow-next { right: 24px; }
.ahs2-arrow:hover {
	background: rgba(254, 252, 248, 0.28);
	border-color: rgba(254, 252, 248, 0.6);
}

/* --- Dots (vertical, left side) --- */
.ahs2-dots {
	position: absolute;
	left: clamp(8px, 1.5vw, 28px);
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ahs2-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(254, 252, 248, 0.25);
	cursor: pointer;
	transition: all 0.3s;
	border: none;
	padding: 0;
}
.ahs2-dot.on {
	background: var(--aluna-cream);
	height: 22px;
	border-radius: 3px;
}

/* --- Counter --- */
.ahs2-counter {
	position: absolute;
	bottom: 40px;
	right: clamp(16px, 3vw, 72px);
	z-index: 50;
	font-family: var(--aluna-font-body);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 2px;
	color: rgba(254, 252, 248, 0.55);
}

/* --- Progress Bar --- */
.ahs2-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(254, 252, 248, 0.1);
	z-index: 50;
	overflow: hidden;
}
.ahs2-progress-bar {
	height: 100%;
	background: rgba(242, 230, 208, 0.55);
	width: 0%;
	transition: width linear;
}

/* --- Scroll Cue --- */
.ahs2-scroll-cue {
	position: absolute;
	bottom: 40px;
	left: clamp(20px, 5vw, 72px);
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 14px;
}
.ahs2-scroll-cue span {
	font-family: var(--aluna-font-body);
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(242, 230, 208, 0.70);
}
.ahs2-scroll-line {
	width: 44px;
	height: 1px;
	background: linear-gradient(to right, rgba(242, 230, 208, 0.5), transparent);
}

/* --- Responsive --- */
@media (max-width: 960px) {
	.ahs2-slide-inner h1,
	.ahs2-slide-inner h2,
	.ahs2-slide-inner .wp-block-heading {
		line-height: 0.98 !important;
	}
}

@media (max-width: 600px) {
	.ahs2 {
		height: calc(100vh - 70px) !important;
		min-height: calc(100vh - 70px) !important;
	}
	.ahs2-scroll-cue,
	.ahs2-counter { display: none; }
	.ahs2-arrow {
		width: 40px;
		height: 40px;
		font-size: 15px;
		top: auto;
		transform: none;
		bottom: 18px;
	}
	.ahs2-arrow-prev { left: 16px; }
	.ahs2-arrow-next { right: 16px; }
	.ahs2-dots {
		top: auto;
		bottom: 68px;
		left: 50%;
		transform: translateX(-50%);
		flex-direction: row;
	}
	.ahs2-slide-inner {
		padding: 0 20px 130px !important;
	}
	.ahs2-slide-inner .aluna-home-hero-eyebrow {
		gap: 10px;
		max-width: min(100%, 280px);
		font-size: 14px !important;
		letter-spacing: 3.4px !important;
		line-height: 1.5 !important;
	}
	.ahs2-slide-inner .aluna-home-hero-eyebrow::before {
		flex-basis: 20px;
		width: 20px;
	}
	.ahs2-slide-inner .aluna-home-hero-sub {
		max-width: min(100%, 320px);
		font-size: 18px !important;
		line-height: 1.5 !important;
		margin-bottom: 28px !important;
	}
	.ahs2-slide-inner .wp-block-buttons,
	.ahs2-slide-inner .aluna-home-hero-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		width: min(100%, 340px);
	}
	.ahs2-slide-inner .aluna-home-hero-button,
	.ahs2-slide-inner .aluna-home-hero-button .wp-block-button__link {
		width: 100%;
	}
	.ahs2-slide-inner .aluna-home-hero-button .wp-block-button__link {
		padding-right: 24px !important;
		padding-left: 24px !important;
		font-size: 14px !important;
		letter-spacing: 2px !important;
		line-height: 1.35 !important;
		white-space: normal;
	}
}

@media (max-width: 420px) {
	.ahs2-slide-inner .wp-block-button,
	.ahs2-slide-inner .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
	.wp-block-aluna-slider-slide { transition: none; }
	.wp-block-aluna-slider-slide .ahs2-slide-inner > * {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Pegar con la sección siguiente — sin margen inferior en layout full-width */
.wp-block-aluna-hero-slider-new.alignfull {
	margin-bottom: 0;
}
