/* GSS · Hero slider
   Efectos: zoom-fade (fundido + zoom lento) · wipe (cortina) · slide (deslizamiento con paralaje) */

.gss-hs {
	--gss-hs-t: 1400ms;
	--gss-hs-i: 7000ms;
	--gss-hs-ova: 1;
	--gss-hs-pad: max(24px, calc((100vw - var(--gss-max, 1180px)) / 2));
	--gss-hs-serif: var(--gss-serif, "Cormorant Garamond", Georgia, serif);
	position: relative; isolation: isolate; overflow: hidden; width: 100%;
	min-height: min(78vh, 680px); color: #fff; background: #14281e;
}
.gss-hs__slides { position: absolute; inset: 0; touch-action: pan-y; }
.gss-hs__slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; }
.gss-hs__media { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #1e3a2c 0%, #2c4d37 55%, #4b7048 100%); }
.gss-hs__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transform-origin: 50% 50%; }
.gss-hs__ov { position: absolute; inset: 0; pointer-events: none; opacity: var(--gss-hs-ova);
	background: linear-gradient(90deg, rgba(12, 26, 18, 0.74) 0%, rgba(12, 26, 18, 0.46) 42%, rgba(12, 26, 18, 0.06) 78%), linear-gradient(0deg, rgba(12, 26, 18, 0.34) 0%, rgba(12, 26, 18, 0) 38%); }

/* Contenido */
.gss-hs__content { position: relative; z-index: 2; width: 100%; box-sizing: border-box; padding: 130px var(--gss-hs-pad) 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.gss-hs__content > * { margin: 0; opacity: 0; transform: translateY(26px); }
.gss-hs__eyebrow { display: inline-block; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.55); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; font-weight: 500; color: #fff; }
.gss-hs__title { font-family: var(--gss-hs-serif); font-weight: 500; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.04; letter-spacing: -0.005em; color: #fff; max-width: 12em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.gss-hs__text { max-width: 27rem; font-size: 1.05rem; line-height: 1.55; color: #f1f2ea; }
.gss-hs__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.gss-hs a.gss-hs__btn, .gss-hs a.gss-hs__btn:visited { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px; border-radius: 999px; font-size: 0.86rem; font-weight: 500; line-height: 1.2; text-decoration: none; color: #fff; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.gss-hs a.gss-hs__btn--primary { background: var(--gss-btn, #2c4b36); border-color: var(--gss-btn, #2c4b36); }
.gss-hs a.gss-hs__btn--primary:hover, .gss-hs a.gss-hs__btn--primary:focus, .gss-hs a.gss-hs__btn--primary:active { background: var(--gss-forest, #1e3a2c); border-color: var(--gss-forest, #1e3a2c); color: #fff; }
.gss-hs a.gss-hs__btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.gss-hs a.gss-hs__btn--ghost:hover, .gss-hs a.gss-hs__btn--ghost:focus, .gss-hs a.gss-hs__btn--ghost:active { background: rgba(255, 255, 255, 0.16); border-color: #fff; color: #fff; }
.gss-hs a.gss-hs__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.gss-hs--center .gss-hs__content { align-items: center; text-align: center; }
.gss-hs--center .gss-hs__title, .gss-hs--center .gss-hs__text { margin-inline: auto; }
.gss-hs--center .gss-hs__actions { justify-content: center; }

/* Entrada escalonada del texto en la slide activa; la saliente conserva su aspecto final */
.gss-hs__slide.is-active .gss-hs__content > * { animation: gss-hs-rise 0.95s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--gss-hs-t) * 0.32 + var(--n, 0) * 120ms); }
.gss-hs__content > :nth-child(1) { --n: 0; }
.gss-hs__content > :nth-child(2) { --n: 1; }
.gss-hs__content > :nth-child(3) { --n: 2; }
.gss-hs__content > :nth-child(4) { --n: 3; }
.gss-hs__slide.is-prev .gss-hs__content > * { opacity: 1; transform: none; animation: none; }
@keyframes gss-hs-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------ Efecto 1 · fundido con zoom lento (Ken Burns) */
.gss-hs--zoom-fade .gss-hs__slide { opacity: 0; transition: opacity var(--gss-hs-t) ease, visibility 0s linear var(--gss-hs-t); }
.gss-hs--zoom-fade .gss-hs__slide.is-prev { opacity: 1; visibility: visible; z-index: 1; transition: none; }
.gss-hs--zoom-fade .gss-hs__slide.is-active { opacity: 1; visibility: visible; z-index: 2; transition: opacity var(--gss-hs-t) ease; }
.gss-hs--zoom-fade .is-active .gss-hs__img, .gss-hs--zoom-fade .is-prev .gss-hs__img { animation: gss-hs-kb calc(var(--gss-hs-i) + var(--gss-hs-t) * 2) ease-out forwards; }
.gss-hs--zoom-fade .gss-hs__slide:nth-child(even) .gss-hs__img { transform-origin: 72% 38%; }
@keyframes gss-hs-kb { from { transform: scale(1); } to { transform: scale(1.1); } }

/* ------------------------------------------------ Efecto 2 · cortina (barrido con revelado) */
.gss-hs--wipe .gss-hs__slide { clip-path: inset(0 100% 0 0); z-index: 0; }
.gss-hs--wipe[data-dir="back"] .gss-hs__slide { clip-path: inset(0 0 0 100%); }
.gss-hs--wipe .gss-hs__slide.is-prev { visibility: visible; clip-path: inset(0); z-index: 1; }
.gss-hs--wipe .gss-hs__slide.is-active { visibility: visible; clip-path: inset(0); z-index: 2; transition: clip-path var(--gss-hs-t) cubic-bezier(0.77, 0, 0.18, 1); }
.gss-hs--wipe .is-active .gss-hs__img, .gss-hs--wipe .is-prev .gss-hs__img { animation: gss-hs-settle calc(var(--gss-hs-t) * 1.7 + var(--gss-hs-i)) cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes gss-hs-settle { from { transform: scale(1.2); } to { transform: scale(1.04); } }
.gss-hs--wipe .gss-hs__slide.is-active .gss-hs__content > * { animation-delay: calc(var(--gss-hs-t) * 0.55 + var(--n, 0) * 120ms); }

/* ------------------------------------------------ Efecto 3 · deslizamiento con paralaje */
.gss-hs--slide .gss-hs__slide { transform: translate3d(100%, 0, 0); z-index: 0; }
.gss-hs--slide[data-dir="back"] .gss-hs__slide { transform: translate3d(-100%, 0, 0); }
.gss-hs--slide .gss-hs__slide.is-prev { visibility: visible; z-index: 1; transform: translate3d(-35%, 0, 0); transition: transform var(--gss-hs-t) cubic-bezier(0.65, 0, 0.2, 1); }
.gss-hs--slide[data-dir="back"] .gss-hs__slide.is-prev { transform: translate3d(35%, 0, 0); }
.gss-hs--slide .gss-hs__slide.is-active { visibility: visible; z-index: 2; transform: none; transition: transform var(--gss-hs-t) cubic-bezier(0.65, 0, 0.2, 1); }
.gss-hs--slide .gss-hs__media { transform: scale(1.12); transition: none; }
.gss-hs--slide .is-active .gss-hs__media { transform: none; transition: transform calc(var(--gss-hs-t) * 1.25) cubic-bezier(0.65, 0, 0.2, 1); }
.gss-hs--slide .is-prev .gss-hs__media { transform: none; }

/* ------------------------------------------------ Controles */
.gss-hs__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; box-sizing: border-box; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gss-hs-pad) 30px; pointer-events: none; }
.gss-hs__ui > * { pointer-events: auto; }
.gss-hs__dots { display: flex; gap: 10px; }
.gss-hs .gss-hs__dot, .gss-hs .gss-hs__dot:hover, .gss-hs .gss-hs__dot:focus, .gss-hs .gss-hs__dot:active { position: relative; width: 58px; height: 28px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; color: #fff; }
.gss-hs .gss-hs__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(255, 255, 255, 0.38); transition: background 0.2s; }
.gss-hs .gss-hs__dot:hover::before { background: rgba(255, 255, 255, 0.7); }
.gss-hs__fill { position: absolute; left: 0; top: 50%; width: 100%; height: 2px; margin-top: -1px; background: #fff; transform: scaleX(0); transform-origin: left center; }
.gss-hs__dot.is-active .gss-hs__fill { animation: gss-hs-fill var(--gss-hs-i) linear forwards; }
.gss-hs:not([data-autoplay="1"]) .gss-hs__dot.is-active .gss-hs__fill { animation: none; transform: scaleX(1); }
.gss-hs.is-paused .gss-hs__dot.is-active .gss-hs__fill { animation-play-state: paused; }
@keyframes gss-hs-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gss-hs .gss-hs__dot:focus-visible { outline: 2px solid #fff; outline-offset: 0; }

.gss-hs__ctrl { display: flex; align-items: center; gap: 14px; }
.gss-hs__count { display: inline-flex; align-items: baseline; gap: 6px; margin-right: 8px; font-family: var(--gss-hs-serif); font-size: 1.15rem; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; }
.gss-hs__count b { font-weight: 500; font-size: 1.5rem; color: #fff; }
.gss-hs__count i { font-style: normal; opacity: 0.6; }
.gss-hs .gss-hs__arrow, .gss-hs .gss-hs__arrow:hover, .gss-hs .gss-hs__arrow:focus, .gss-hs .gss-hs__arrow:active,
.gss-hs .gss-hs__pause, .gss-hs .gss-hs__pause:hover, .gss-hs .gss-hs__pause:focus, .gss-hs .gss-hs__pause:active { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; margin: 0; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 50%; background: transparent; color: #fff; box-shadow: none; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.gss-hs .gss-hs__arrow:hover, .gss-hs .gss-hs__pause:hover, .gss-hs .gss-hs__arrow:active, .gss-hs .gss-hs__pause:active { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.gss-hs .gss-hs__arrow:focus-visible, .gss-hs .gss-hs__pause:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.gss-hs__arrow svg { width: 16px; height: 10px; }
.gss-hs .gss-hs__pause { width: 36px; height: 36px; }
.gss-hs__pause span { display: block; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.gss-hs__pause[aria-pressed="true"] span { width: 0; height: 0; border: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
.gss-hs__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gss-hs--single .gss-hs__slide { visibility: visible; opacity: 1; clip-path: none; transform: none; }

@media (max-width: 767px) {
	.gss-hs__content { padding: 96px 24px 128px; gap: 18px; }
	.gss-hs__ui { padding: 0 24px 22px; flex-wrap: wrap; row-gap: 10px; }
	.gss-hs .gss-hs__dot { width: 40px; }
	.gss-hs__count { display: none; }
	.gss-hs .gss-hs__arrow { width: 40px; height: 40px; }
}

/* Movimiento reducido: sin zoom, barrido ni deslizamiento; solo cambio de slide */
@media (prefers-reduced-motion: reduce) {
	.gss-hs *, .gss-hs *::before, .gss-hs *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.gss-hs__content > * { opacity: 1 !important; transform: none !important; }
	.gss-hs__dot.is-active .gss-hs__fill { transform: scaleX(1) !important; }
}
