/* ============================================================
   GROWTH — historia de crecimiento en 3D (blueprint + scroll)
   Markup propio del widget nativo GEA_Widget_Growth; ver
   inc/elementor/widgets/class-widget-growth.php. Este stylesheet
   solo se carga en las páginas que realmente usan ese widget
   (ver GEA_Widget_Growth::get_style_depends()).
   ============================================================ */

/* Todo el contenido del widget es position:absolute (canvas + slides),
   así que no aporta ancho intrínseco: sin esto, el wrapper que Elementor
   genera automáticamente (.elementor-widget-container) colapsa a 0 de
   ancho dentro de un contenedor flex en columna sin align-items:stretch.
   Forzarlo aquí hace que el widget funcione sin depender de cómo esté
   configurado el contenedor que lo envuelve. */
.elementor-widget-gea_growth,
.elementor-widget-gea_growth > .elementor-widget-container {
	width: 100%;
}

/* The mockup resets every element's margin to 0 globally; the theme doesn't,
   so the browser's default <p>/<h3> margins (1em) were pushing the slides'
   text around. Zero-specificity reset: the explicit margins below still win. */
.gea-elementor-landing-template .growth__scroller :where(p, h2, h3, h4, ol, ul, li) {
	margin: 0;
}

.gea-elementor-landing-template .growth__hint {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--slate);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.gea-elementor-landing-template .growth__hint.is-visible {
	opacity: 1;
}

.gea-elementor-landing-template .growth__hint span {
	animation: gea-growth-bob 1.8s ease-in-out infinite;
}

@keyframes gea-growth-bob {
	50% {
		transform: translateY(4px);
	}
}

.gea-elementor-landing-template .growth__scroller {
	position: relative;
	width: 100%;
	height: 500vh;
}

.gea-elementor-landing-template .growth__stage {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
}

.gea-elementor-landing-template .growth__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Mapa: etiqueta con el logotipo de cada empresa sobre su punto (growth.js
   las reubica en cada cuadro). Los logotipos son claros: fondo de tinta. */
.gea-elementor-landing-template .growth__pins {
	position: absolute;
	inset: 0;
	pointer-events: none;
	transition: opacity 0.2s linear;
}

.gea-elementor-landing-template .growth__pin {
	position: absolute;
	left: 0;
	top: 0;
	width: 0;
	height: 0;
}

.gea-elementor-landing-template .growth__pin-tag {
	position: absolute;
	left: 0;
	display: grid;
	place-items: center;
	padding: 7px 11px;
	border-radius: 10px;
	background: var(--ink);
	box-shadow: 0 6px 16px rgba(10, 28, 46, 0.18);
	white-space: nowrap;
}

.gea-elementor-landing-template .growth__pin-tag::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 8px;
	height: 8px;
	background: var(--ink);
	transform: translateX(-50%) rotate(45deg);
}

.gea-elementor-landing-template .growth__pin--top .growth__pin-tag { bottom: 14px; transform: translateX(-50%); }
.gea-elementor-landing-template .growth__pin--top .growth__pin-tag::after { bottom: -4px; }
.gea-elementor-landing-template .growth__pin--bottom .growth__pin-tag { top: 14px; transform: translateX(-50%); }
.gea-elementor-landing-template .growth__pin--bottom .growth__pin-tag::after { top: -4px; }
.gea-elementor-landing-template .growth__pin--right .growth__pin-tag { left: 14px; top: 0; transform: translateY(-50%); }
.gea-elementor-landing-template .growth__pin--right .growth__pin-tag::after { left: -4px; top: 50%; transform: translateY(-50%) rotate(45deg); }

.gea-elementor-landing-template .growth__pin-tag img {
	display: block;
	height: 30px;
	width: auto;
	max-width: 112px;
	object-fit: contain;
}

@media (max-width: 640px) {
	.gea-elementor-landing-template .growth__pin-tag { padding: 4px 6px; border-radius: 7px; }
	.gea-elementor-landing-template .growth__pin-tag img { height: 18px; max-width: 66px; }
	.gea-elementor-landing-template .growth__pin--top .growth__pin-tag { bottom: 10px; }
	.gea-elementor-landing-template .growth__pin--bottom .growth__pin-tag { top: 10px; }
	.gea-elementor-landing-template .growth__pin--right .growth__pin-tag { left: 10px; }
}

/* Texto de cada etapa — abajo a la izquierda, alineado al contenedor */
.gea-elementor-landing-template .growth__slides {
	position: absolute;
	left: max(24px, calc((100vw - var(--container)) / 2));
	bottom: 11vh;
	width: min(460px, 38vw);
	display: grid;
	grid-template-rows: auto auto;
	align-items: start; /* todas las etapas arrancan justo bajo el indicador */
}

/* Las etapas comparten la misma celda; solo la activa es visible */
.gea-elementor-landing-template .growth__slide {
	grid-area: 2 / 1;
	width: 100%;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.5s ease, transform 0.5s ease;
	pointer-events: none;
}

.gea-elementor-landing-template .growth__slide.is-active {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.gea-elementor-landing-template .growth__slide .label {
	margin-bottom: 14px;
}

.gea-elementor-landing-template .growth__slide h3 {
	font-size: clamp(26px, 3vw, 38px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin-bottom: 14px;
	color: var(--ink);
}

.gea-elementor-landing-template .growth__slide p:not(.label) {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--slate);
}

.gea-elementor-landing-template .growth__scroller .link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 500;
	color: var(--accent);
	border-bottom: 1px solid transparent;
}

.gea-elementor-landing-template .growth__scroller .link-arrow span {
	transition: transform 0.25s ease;
}

.gea-elementor-landing-template .growth__scroller .link-arrow:hover span {
	transform: translateX(4px);
}

.gea-elementor-landing-template .growth__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin-top: 16px;
}

/* Slide 0 — la frase que abre la sección (fuera del grid, anclada abajo) */
.gea-elementor-landing-template .growth__slide--intro {
	position: absolute;
	left: 0;
	bottom: 16vh;
	width: min(720px, 56vw);
}

.gea-elementor-landing-template .growth__slide--intro .statement {
	margin: 14px 0 20px;
}

.gea-elementor-landing-template .growth__slide--intro .statement .w {
	transition: color 0.35s ease;
}

.gea-elementor-landing-template .growth__lede {
	max-width: 560px;
	margin-bottom: 26px;
	font-size: clamp(16px, 1.3vw, 18px);
	line-height: 1.6;
	color: var(--slate);
	opacity: 0;
	transition: opacity 0.45s ease;
}

.gea-elementor-landing-template .growth__lede.is-visible {
	opacity: 1;
}

.gea-elementor-landing-template .growth__kicker {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--slate);
}

.gea-elementor-landing-template .growth__kicker::before {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	margin-top: 6px;
	background: var(--accent);
	flex-shrink: 0;
}

.gea-elementor-landing-template .growth__slide--intro .growth__kicker {
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gea-elementor-landing-template .growth__slide--intro .growth__kicker::before {
	width: 7px;
	height: 7px;
	margin-top: 13px;
}

/* Indicador de etapas — justo encima del título de cada etapa;
   aparece al entrar a la primera etapa */
.gea-elementor-landing-template .growth__nav {
	grid-area: 1 / 1;
	list-style: none;
	display: grid;
	gap: 14px;
	margin: 0 0 26px;
	padding: 0;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.gea-elementor-landing-template .growth__nav.is-visible {
	opacity: 1;
	transform: none;
}

.gea-elementor-landing-template .growth__nav li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--slate);
	opacity: 0.55;
	transition: opacity 0.3s ease, color 0.3s ease;
}

.gea-elementor-landing-template .growth__nav li::before {
	content: '';
	width: 22px;
	height: 1px;
	background: var(--slate);
	transition: width 0.3s ease, background 0.3s ease;
}

/* Etapa activa: mismo degradado que «Seguimos rumbo a la cima» */
.gea-elementor-landing-template .growth__nav li.is-active {
	opacity: 1;
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.gea-elementor-landing-template .growth__nav li.is-active::before {
	width: 44px;
	background: var(--accent);
}

/* Sin WebGL (o sin CDN): las etapas se apilan como texto normal */
.gea-elementor-landing-template .growth--static .growth__scroller {
	height: auto;
}

.gea-elementor-landing-template .growth--static .growth__stage {
	position: static;
	height: auto;
	overflow: visible;
}

.gea-elementor-landing-template .growth--static .growth__canvas,
.gea-elementor-landing-template .growth--static .growth__pins,
.gea-elementor-landing-template .growth--static .growth__nav {
	display: none;
}

.gea-elementor-landing-template .growth--static .growth__slides {
	position: static;
	width: auto;
	padding: 0 24px 64px;
	display: grid;
	gap: 48px;
}

.gea-elementor-landing-template .growth--static .growth__slide {
	grid-area: auto; /* stacked, not sharing the animated layout's single cell */
	position: static;
	opacity: 1;
	transform: none;
	pointer-events: auto;
	max-width: 520px;
}

.gea-elementor-landing-template .growth--static .statement .w {
	color: var(--ink);
}

.gea-elementor-landing-template .growth--static .growth__hint {
	display: none;
}

.gea-elementor-landing-template .growth--static .growth__lede {
	opacity: 1;
}

@media (max-width: 900px) {
	.gea-elementor-landing-template .growth__nav {
		display: none;
	}

	.gea-elementor-landing-template .growth__slides {
		bottom: 6vh;
		width: calc(100vw - 48px);
	}

	.gea-elementor-landing-template .growth__slide {
		padding: 20px 0 0;
		background: linear-gradient(to top, var(--paper) 78%, transparent);
	}

	.gea-elementor-landing-template .growth__slide h3 {
		font-size: clamp(24px, 6vw, 30px);
	}

	.gea-elementor-landing-template .growth__slide--intro {
		width: 100%;
		bottom: 0;
	}

	.gea-elementor-landing-template .growth__slide--intro .statement {
		font-size: clamp(24px, 6.5vw, 32px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gea-elementor-landing-template .statement .w {
		color: var(--ink);
		transition: none;
	}
}

/* ============================================================
   Large screens (≥1800 px: QHD, 4K, ultra-wide) — design-mockup's
   "PANTALLAS GRANDES" layer. Below 1800 px nothing changes. Elementor
   content uses its own Widescreen breakpoint (Kit, 1800 px).
   ============================================================ */
@media (min-width: 1800px) {
	.gea-elementor-landing-template .growth__slides {
		width: min(620px, 30vw);
	}

	.gea-elementor-landing-template .growth__slide--intro {
		width: min(980px, 50vw);
	}

	.gea-elementor-landing-template .growth__slide--intro .growth__kicker {
		font-size: clamp(22px, 1.15vw, 28px);
	}

	.gea-elementor-landing-template .growth__slide--intro .statement {
		font-size: clamp(42px, 2.3vw, 60px);
	}

	.gea-elementor-landing-template .growth__slide h3 {
		font-size: clamp(38px, 2vw, 52px);
	}

	.gea-elementor-landing-template .growth__slide p:not(.label),
	.gea-elementor-landing-template .growth__lede {
		max-width: 640px;
		font-size: 18px;
	}

	.gea-elementor-landing-template .growth__nav li {
		font-size: 22px;
	}
}
