/* ===============================================================
   BASE / SIN JS  -> slides apilados y legibles
================================================================*/
.gm-ss__slide {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
}
.gm-ss__content {
	width: 100%;
	max-width: 100%;
	padding: 2rem clamp( 24px, 6vw, 96px );
	padding-left: 16%;
}
.gm-ss__title {
	/*font-size: clamp( 2.4rem, 6vw, 5rem );
	line-height: 1.02;
	margin: 0 0 1rem;
	font-weight: 700;*/
	color: #fff;
}
.gm-ss__desc {
	font-size: clamp( 1rem, 1.4vw, 1.25rem );
	line-height: 1.5;
	max-width: 46ch;
	margin: 0 0 1.6rem;
	opacity: .92;
}
.gm-ss__btn {
	display: inline-block;
	background: var( --gm-ss-accent, #e8604c );
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	padding: .85em 1.6em;
	border-radius: 8px;
	transition: filter .2s ease, transform .2s ease;
}
.gm-ss__btn:hover { filter: brightness( 1.07 ); transform: translateY( -1px ); }

/* Cabecera (número + etiqueta) y barra */
.gm-ss__meta {
	display: flex;
	align-items: baseline;
	gap: clamp( 32px, 12vw, 200px );
	padding: 0 clamp( 24px, 6vw, 96px );
	color: #fff;
	font-size: clamp( .85rem, 1vw, 1rem );
	letter-spacing: .02em;
}
.gm-ss__num { opacity: .9;font-weight:500; }
.gm-ss__label { opacity: .9;font-weight:500; }
.gm-ss__hint {
	display: flex; align-items: center; justify-content: center; gap: .5em;
	color: #fff; opacity: .8; font-size: .9rem;
}
.gm-ss__chevron { font-size: 1.4em; line-height: 0; }

/* ===============================================================
   MODO ESTÁTICO (movimiento reducido)
================================================================*/
.gm-ss--static .gm-ss__bg,
.gm-ss--static .gm-ss__top,
.gm-ss--static .gm-ss__hint { display: none; }

/* ===============================================================
   EFECTO PIN (con JS): gm-ss--ready
================================================================*/
.gm-ss--ready { position: relative; } /* altura la fija el JS */

.gm-ss--ready .gm-ss__sticky {
	position: sticky;
	top: 125px;                 /* si tienes header sticky, usa su altura */
	height: calc(100vh - 125px);
	height: calc(100svh - 125px);
	overflow: hidden;
}

/* Fondos: cada slide es un MARCO a pantalla completa que sube desde abajo
   y tapa al anterior (cover-reveal). Dentro, la imagen hace parallax. */
.gm-ss--ready .gm-ss__bg { position: absolute; inset: 0; z-index: 0; }
.gm-ss--ready .gm-ss__bg-layer {
	position: absolute;
	inset: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;        /* recorta la imagen interior para el parallax */
	will-change: transform;
	transform: translateY( 100% ); /* parte desde abajo hasta que el JS la coloca */
}
.gm-ss--ready .gm-ss__bg-img {
	position: absolute;
	inset: -10% 0;           /* algo más alta que el marco -> margen para el parallax */
	background-size: cover;
	background-position: center;
	will-change: transform;
	transform: none !important;
}

/* Velo para legibilidad */
.gm-ss--ready .gm-ss__overlay {
	position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient( 180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.6) 100% );
}

/* CABECERA SUPERIOR: número + etiqueta y, debajo, la barra de progreso */
.gm-ss--ready .gm-ss__top {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 4;
	padding-top: clamp( 22px, 3vw, 40px );
}
.gm-ss--ready .gm-ss__meta { animation: gm-ss-meta-in .4s ease; }
.gm-ss--ready .gm-ss__meta.is-in { animation: gm-ss-meta-in .4s ease; }
@keyframes gm-ss-meta-in { from { opacity: .15; } to { opacity: 1; } }

.gm-ss--ready .gm-ss__progress {
	margin-top: clamp( 10px, 1.4vw, 18px );
	height: 2px;
	background: rgba( 255, 255, 255, .28 );
}
.gm-ss--ready .gm-ss__progress-bar {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX( 0 );
	transform-origin: left center;
	background: #fff;
	will-change: transform;
}

/* Contenido: slides apilados, solo el activo visible */
.gm-ss--ready .gm-ss__slides { position: absolute; inset: 0; z-index: 2; }
.gm-ss--ready .gm-ss__slide {
	position: absolute;
	inset: 0;
	min-height: 0;
	background: none;
	display: flex;
	align-items: center;
}
.gm-ss--ready .gm-ss__content {
	opacity: 0;
	will-change: transform, opacity;
}

/* Hint inferior */
.gm-ss--ready .gm-ss__hint {
	position: absolute;
	left: 0; right: 0; bottom: clamp( 18px, 3vw, 34px );
	z-index: 4;
}
.gm-ss__chevron {
	font-size: 0;
   width: 24px;
   height: 20px;
   filter: invert(1);
	background-image: url("https://stack.gmedia.es/wp-content/uploads/2026/07/nav-arrow-down-1.svg");
   animation: oscilar 2s ease-in-out infinite;
}

@keyframes oscilar {
  0%, 100% {
    transform: translateY(5px);
  }
  50% {
    transform: translateY(-5px);
  }
}