/**
 * GEOCIKLO Core — Hero Section Cinematic Styles (FASE 1.3)
 * Multi-layer composition, Ken Burns camera, Organic Gradient, Truck Glow, Depth Leaves, Overlapping Dock
 */

/* ==========================================================================
   1. Hero Scene & Container
   ========================================================================== */
.gc-hero {
	position: relative;
	width: 100%;
	min-height: 820px;
	height: auto;
	overflow: visible; /* Allows the dock to overhang 50% onto the next section */
	background: #f7faf8;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.gc-hero__scene {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

/* ==========================================================================
   2. Background Video (Pure, Clean & Natural)
   ========================================================================== */
.gc-hero__video-wrapper {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.gc-hero__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 46%;
	display: block;
}

/* ==========================================================================
   3. Clean Left Contrast Gradient (Ensures perfect text readability)
   ========================================================================== */
.gc-hero__overlay-left {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(247, 250, 248, 0.95) 0%,
		rgba(247, 250, 248, 0.88) 28%,
		rgba(247, 250, 248, 0.65) 42%,
		rgba(247, 250, 248, 0.20) 58%,
		transparent 72%
	);
	z-index: 2;
	pointer-events: none;
}

.gc-hero__overlay-vignette,
.gc-hero__truck-glow,
.gc-hero__leaf {
	display: none !important;
}

/* ==========================================================================
   4. Foreground Cinematic Depth Leaves & Particles
   ========================================================================== */
.gc-hero__leaf {
	position: absolute;
	z-index: 3;
	pointer-events: none;
	will-change: transform;
}

/* Leaf 1: Top-right foreground with slight depth-of-field blur */
.gc-hero__leaf--1 {
	top: 14%;
	right: 18%;
	width: 48px;
	height: 48px;
	filter: blur(1.5px);
	opacity: 0.82;
	animation: gc-leaf-float-1 9s ease-in-out infinite alternate;
}

/* Leaf 2: Mid-right close foreground */
.gc-hero__leaf--2 {
	top: 48%;
	right: 4%;
	width: 64px;
	height: 64px;
	filter: blur(2.5px);
	opacity: 0.70;
	animation: gc-leaf-float-2 11s ease-in-out infinite alternate;
}

/* Leaf 3: Lower left ambient leaf */
.gc-hero__leaf--3 {
	bottom: 22%;
	left: 36%;
	width: 38px;
	height: 38px;
	filter: blur(0.8px);
	opacity: 0.65;
	animation: gc-leaf-float-3 8s ease-in-out infinite alternate;
}

@keyframes gc-leaf-float-1 {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); }
	100% { transform: translate3d(14px, -18px, 0) rotate(14deg); }
}

@keyframes gc-leaf-float-2 {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); }
	100% { transform: translate3d(-18px, 15px, 0) rotate(-16deg); }
}

@keyframes gc-leaf-float-3 {
	0% { transform: translate3d(0, 0, 0) rotate(0deg); }
	100% { transform: translate3d(10px, -10px, 0) rotate(10deg); }
}

/* ==========================================================================
   5. Hero Content Layout
   ========================================================================== */
.gc-hero__content {
	position: relative;
	z-index: 4;
	max-width: var(--gc-container);
	margin: 0 auto;
	width: 100%;
	flex: 1;
	padding: calc(var(--gc-header-height) + 24px) 32px 115px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.gc-hero__main {
	max-width: 580px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

/* Headline Reveal by Lines */
.gc-hero__title {
	font-family: var(--gc-font-family);
	font-size: clamp(2.4rem, 2.2rem + 1.8vw, 3.85rem);
	font-weight: 900;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: #073f4d;
	margin: 0;
}

.gc-hero__title-line {
	display: block;
	overflow: hidden;
}

.gc-hero__title-inner {
	display: inline-block;
	transform: translateY(100%);
	opacity: 0;
	animation: gc-line-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gc-hero__title-line:nth-child(1) .gc-hero__title-inner { animation-delay: 0.15s; }
.gc-hero__title-line:nth-child(2) .gc-hero__title-inner { animation-delay: 0.25s; }
.gc-hero__title-line:nth-child(3) .gc-hero__title-inner { animation-delay: 0.35s; }
.gc-hero__title-line:nth-child(4) .gc-hero__title-inner { animation-delay: 0.45s; }

@keyframes gc-line-reveal {
	0% {
		transform: translateY(100%);
		opacity: 0;
	}
	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Green Dot Activation Wave */
.gc-dot-green {
	display: inline-block;
	color: #3fae6a;
	position: relative;
}

.gc-dot-green::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid #3fae6a;
	opacity: 0;
	transform: scale(0.6);
	animation: gc-dot-wave 1.6s ease-out 1.2s forwards;
}

@keyframes gc-dot-wave {
	0% {
		opacity: 0.9;
		transform: scale(0.6);
	}
	100% {
		opacity: 0;
		transform: scale(2.4);
	}
}

/* Subtitle */
.gc-hero__subtitle {
	font-family: var(--gc-font-family);
	font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
	font-weight: 500;
	line-height: 1.5;
	color: #435b62;
	margin: 0;
	max-width: 520px;
	opacity: 0;
	animation: gc-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes gc-fade-in-up {
	0% {
		opacity: 0;
		transform: translateY(14px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   6. Call To Action Buttons
   ========================================================================== */
.gc-hero__cta-group {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 4px;
	flex-wrap: wrap;
	opacity: 0;
	animation: gc-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.75s forwards;
}

.gc-btn--hero-primary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(135deg, #035877 0%, #06605C 100%);
	color: #ffffff;
	font-family: var(--gc-font-family);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	padding: 13px 26px;
	border-radius: 9999px;
	box-shadow: 0 8px 24px -4px rgba(3, 88, 119, 0.30);
	transition: all var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-btn--hero-primary:hover {
	background: #3FAE6A;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -4px rgba(63, 174, 106, 0.40);
}

.gc-sparkle-icon {
	color: #3fae6a;
	transition: transform var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-btn--hero-primary:hover .gc-sparkle-icon {
	transform: rotate(20deg) scale(1.2);
	color: #FFFFFF;
}

.gc-btn--hero-secondary {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	color: #073F4D;
	font-family: var(--gc-font-family);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	padding: 13px 26px;
	border-radius: 9999px;
	box-shadow: 0 8px 24px -4px rgba(3, 88, 119, 0.08);
	transition: all var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-btn--hero-secondary:hover {
	background: rgba(63, 174, 106, 0.08);
	border-color: #3FAE6A;
	color: #073F4D;
	transform: translateY(-2px);
	box-shadow: 0 14px 32px -4px rgba(63, 174, 106, 0.22);
}

.gc-truck-icon {
	color: #3FAE6A;
	transition: transform var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-btn--hero-secondary:hover .gc-truck-icon {
	transform: translateX(3px);
}

/* ==========================================================================
   7. Trust Badges
   ========================================================================== */
.gc-hero__trust-badges {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 6px;
	flex-wrap: wrap;
	opacity: 0;
	animation: gc-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.gc-trust-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--gc-font-family);
	font-size: 12.5px;
	font-weight: 600;
	color: #435b62;
}

.gc-trust-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(63, 174, 106, 0.15);
	color: #2e9656;
	font-size: 11px;
	font-weight: 800;
	flex-shrink: 0;
}

/* ==========================================================================
   8. Repositioned Floating Glass Card: "Ciclo en movimiento"
   ========================================================================== */
.gc-hero__video-pill-wrap {
	position: absolute;
	top: calc(var(--gc-header-height) + 38px);
	right: 48px;
	z-index: 5;
	opacity: 0;
	animation: gc-fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.gc-hero__video-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.80);
	border-radius: 9999px;
	padding: 8px 18px 8px 12px;
	color: #073f4d;
	font-family: var(--gc-font-family);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(3, 88, 119, 0.06);
	transition: all var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-hero__video-pill:hover {
	background: rgba(255, 255, 255, 0.90);
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 14px 30px rgba(3, 88, 119, 0.12);
}

.gc-live-badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3fae6a;
	box-shadow: 0 0 8px #3fae6a;
	animation: gc-pulse-live 2s infinite;
}

@keyframes gc-pulse-live {
	0%, 100% { transform: scale(1); opacity: 0.9; }
	50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #3fae6a; }
}

/* ==========================================================================
   9. GEOCIKLO Action Dock (50% Overlapping Bottom Position)
   ========================================================================== */
.gc-hero__dock-wrapper {
	position: absolute;
	left: 50%;
	bottom: -36px; /* 50% overhangs onto the following section */
	transform: translateX(-50%);
	width: calc(100% - 64px);
	max-width: var(--gc-container);
	z-index: 10;
}

.gc-hero__dock {
	background: rgba(7, 63, 77, 0.94);
	border-radius: 24px;
	padding: 16px 32px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
	box-shadow: 0 20px 48px -8px rgba(3, 88, 119, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.gc-dock__item {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 14px;
	position: relative;
	transition: background var(--gc-motion-fast) var(--gc-ease-smooth),
	            transform var(--gc-motion-fast) var(--gc-ease-spring);
}

.gc-dock__item:not(:last-child) {
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.gc-dock__item:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-2px);
}

.gc-dock__icon {
	color: #3fae6a;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform var(--gc-motion-fast) var(--gc-ease-spring),
	            color var(--gc-motion-fast) var(--gc-ease-smooth);
}

.gc-dock__item:hover .gc-dock__icon {
	transform: scale(1.18);
	color: #ffffff;
}

.gc-dock__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gc-dock__title {
	font-family: var(--gc-font-family);
	font-size: 13.5px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.gc-dock__desc {
	font-family: var(--gc-font-family);
	font-size: 11.5px;
	font-weight: 500;
	color: #8da6ad;
	line-height: 1.2;
	transition: color var(--gc-motion-fast) var(--gc-ease-smooth);
}

.gc-dock__item:hover .gc-dock__desc {
	color: #c0d8dd;
}

/* ==========================================================================
   10. Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
	.gc-hero {
		min-height: 870px;
	}

	.gc-hero__content {
		padding-bottom: 160px;
	}

	.gc-hero__dock {
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
		padding: 14px 20px;
	}

	.gc-dock__item:nth-child(3) {
		border-right: none;
	}
}

@media (max-width: 980px) {
	.gc-hero {
		height: auto;
		min-height: auto;
		max-height: none;
		overflow: visible;
		padding-bottom: 40px;
	}

	.gc-hero__video {
		object-position: 70% 50%;
	}

	.gc-hero__content {
		padding: calc(var(--gc-header-height) + 20px) 20px 24px 20px;
		gap: 24px;
	}

	.gc-hero__video-pill-wrap {
		display: none;
	}

	.gc-hero__leaf--2,
	.gc-hero__leaf--3 {
		display: none; /* Reduce 70% of decorative layers on mobile for maximum battery & GPU performance */
	}

	.gc-hero__dock-wrapper {
		position: relative;
		left: 0;
		bottom: 0;
		transform: none;
		width: 100%;
		max-width: 100%;
		margin-top: 32px;
	}

	.gc-hero__dock {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 16px;
		border-radius: 18px;
	}

	.gc-dock__item:not(:last-child) {
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		padding-bottom: 10px;
	}
}
