/* Design System & Variables */
:root {
	--primary: #001668;
	--primary-light: #0022a1;
	--white: #ffffff;
	--bg-alt: #ffffff;
	--text-main: #1a1a1a;
	--text-muted: #4a4a4a;
	--dark: #000c3b;
	--gold: #d4af37;
	
	--container-width: 1200px;
	--transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
	
	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;
}

/* Base reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
}

body {
	font-family: var(--font-body);
	color: var(--text-main);
	line-height: 1.6;
	background-color: var(--white);
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
}

ul {
	list-style: none;
}

img {
	max-width: 100%;
	display: block;
}

h1, h2, h3, h4, .eyebrow {
	font-family: var(--font-heading);
	color: var(--primary);
	font-weight: 700;
}

.text-white { color: var(--white); }
.text-center { text-align: center; }
.full-width { width: 100%; }
.bg-alt { background-color: var(--bg-alt); }
.bg-dark { background-color: var(--dark); color: var(--white); }
.bg-primary { background-color: var(--primary); color: var(--white); }
.no-padding-bottom { padding-bottom: 0; }

section {
	padding: 100px 0;
	position: relative;
	overflow: hidden;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.grid-two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
}

/* Header */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	padding: 24px 0;
	transition: var(--transition);
}

.header.scrolled {
	background-color: var(--white);
	padding: 16px 0;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo img {
	height: 48px;
	width: auto;
	transition: var(--transition);
}

.header.scrolled #header-logo {
	filter: none;
}

.header:not(.scrolled) .nav-links a {
	color: var(--white);
}

.nav-links {
	display: flex;
	gap: 32px;
}

.nav-links a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--primary);
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--gold);
	transition: var(--transition);
}

.nav-links a:hover::after {
	width: 100%;
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--primary);
}

/* Botón blanco sobre el hero, igual que los enlaces del menú */
.header:not(.scrolled) .mobile-menu-btn {
	color: var(--white);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: var(--transition);
	border: none;
}

.btn-primary {
	background-color: var(--primary);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
	background-color: var(--primary-light);
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 22, 104, 0.3);
}

/* Glass button override — only inside hero slides */
.hero-slide .btn-primary {
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1.5px solid rgba(255, 255, 255, 0.75);
	color: var(--white);
	letter-spacing: 0.5px;
}

.hero-slide .btn-primary:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: var(--white);
	box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
	transform: translateY(-3px);
}

/* Hero Section */
.hero {
	height: 900px;
	padding: 0;
	background-color: var(--primary);
	display: flex;
	align-items: center;
}

.hero-slider {
	width: 100%;
	height: 100%;
	position: relative;
}

.hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease-in-out;
	display: flex;
	align-items: center;
	overflow: hidden;
}

/* Color sweep panel — hidden by default */
.hero-slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(120deg, rgba(5, 140, 232, 0.82) 0%, rgba(5, 140, 232, 0.72) 60%, rgba(5, 140, 232, 0.55) 100%);
	z-index: 1;
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}

.hero-slide.active {
	opacity: 1;
	visibility: visible;
}

/* Trigger the sweep only when slide is active */
.hero-slide.active::before {
	animation: heroColorSweep 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes heroColorSweep {
	0%   { clip-path: inset(0 100% 0 0); }
	45%  { clip-path: inset(0 0%   0 0); }
	60%  { clip-path: inset(0 0%   0 0); }
	100% { clip-path: inset(0 0% 0 100%); }
}

/* ── Slide 1 variant: solid left panel that slides in and stays ── */
.hero-slide--panel::before {
	background: #058ce8; /* Slide 1 default — Rays Corporate */
}

/* Per-slide colors */
.hero-slider .hero-slide:nth-child(1)::before { background: #058ce8; } /* Rays Corporate  */
.hero-slider .hero-slide:nth-child(2)::before { background: #ff6b06; } /* Rays Agencias   */
.hero-slider .hero-slide:nth-child(3)::before { background: #f8655e; } /* Rays Travel     */
.hero-slider .hero-slide:nth-child(4)::before { background: #d2c6ba; } /* Rays DMC        */

.hero-slide--panel.active::before {
	animation: heroPanelIn 0.9s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes heroPanelIn {
	/* Panel enters from left and stops at ~34% width (covers logo area, stops before nav) */
	0%   { clip-path: inset(0 100% 0 0); }
	100% { clip-path: inset(0 66%  0 0); }
}

.hero-content {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
	color: var(--white);
	position: relative;
	z-index: 3; /* above the sweep panel */
}

.hero-slide h1,
.hero-slide h2 {
	font-size: 4rem;
	color: var(--white);
	line-height: 1.1;
	margin: 16px 0 24px;
	max-width: 800px; /* Limit headline width specifically */
}

.hero-slide p {
	font-size: 1.25rem;
	color: var(--white);
	margin-bottom: 40px;
	max-width: 600px; /* Limit description width specifically */
	opacity: 1;
}

.eyebrow {
	display: block;
	font-size: 0.85rem;
	letter-spacing: 3px;
	color: var(--gold);
	text-transform: uppercase;
}

/* Eyebrow blanco dentro del hero para mayor visibilidad */
.hero-slide .eyebrow {
	color: var(--white);
}

/* Sombra para que el texto blanco contraste sobre los paneles claros (Agencias, Travel, DMC) */
.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide h2,
.hero-slide p {
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 16px rgba(0, 0, 0, 0.3);
}

.hero-controls {
	position: absolute;
	bottom: 48px;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 24px;
	z-index: 10;
}

.slider-btn {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--white);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: var(--transition);
}

.slider-btn:hover {
	background: var(--white);
	color: var(--primary);
}

.slider-dots {
	display: flex;
	gap: 12px;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	cursor: pointer;
	transition: var(--transition);
}

.dot.active {
	background: var(--white);
	width: 24px;
	border-radius: 5px;
}

/* Sections General */
.section-tag {
	display: inline-block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--gold);
	margin-bottom: 16px;
	font-weight: 600;
}

.section-tag.light { color: var(--gold); }

h2 {
	font-size: 2.8rem;
	line-height: 1.2;
	margin-bottom: 24px;
}

p {
	margin-bottom: 24px;
	color: var(--text-muted);
}

.about-image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
	min-height: 480px;
}

.about-gallery {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.gallery-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.5s ease-in-out;
}

.gallery-img.active {
	opacity: 1;
}

.gallery-img.stack-1 {
	opacity: 0.8;
	visibility: visible;
	z-index: 8;
	transform: translate3d(20px, -20px, -100px) scale(1) rotateY(-5deg);
	filter: brightness(0.8);
}

.gallery-img.stack-2 {
	opacity: 0.6;
	visibility: visible;
	z-index: 6;
	transform: translate3d(40px, -40px, -200px) scale(1) rotateY(-10deg);
	filter: brightness(0.6);
}

/* Shuffle Out Animation */
.gallery-img.shuffle-out {
	animation: shuffleOut 0.8s cubic-bezier(0.45, 0, 0.55, 1) forwards;
	pointer-events: none;
	z-index: 11;
}

@keyframes shuffleOut {
	0% { transform: translate3d(0, 0, 0) rotateY(0); opacity: 1; filter: blur(0); }
	40% { transform: translate3d(120%, -30px, 100px) rotateY(20deg); opacity: 1; filter: blur(0); }
	100% { transform: translate3d(40px, -40px, -200px); opacity: 0.6; filter: brightness(0.6); }
}

.stats-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 40px;
}

.stat-item .stat-number {
	display: block;
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary);
	line-height: 1;
}

.stat-item .stat-label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-muted);
}

.section-verticals .container {
	max-width: 1500px;
}

/* Verticals Grid & Core Lines Highlight */
.verticals-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 60px;
}

.vertical-card {
	background: var(--white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.vertical-card.core {
	border-bottom: 4px solid transparent;
}

.vertical-card.core:hover {
	border-bottom-color: var(--gold);
	transform: translateY(-12px);
	box-shadow: 0 30px 60px rgba(0, 22, 104, 0.1);
}

.core-icon {
	width: auto;
	max-height: 55px; /* Increased height for the vertical logos */
	margin-bottom: 20px;
	display: block;
}

.vertical-card.core h3 {
	font-size: 1.1rem;
	letter-spacing: 1px;
	margin-bottom: 12px;
	color: var(--primary);
}

.card-img {
	height: 220px;
	overflow: hidden;
	position: relative;
}

.card-img::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, transparent 60%, rgba(0, 22, 104, 0.1));
}

.card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.vertical-card:hover .card-img img {
	transform: scale(1.08);
}

.card-body {
	padding: 32px 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.card-body p {
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 24px;
}

.arrow-link {
	margin-top: auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--bg-alt);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	transition: var(--transition);
}

.vertical-card:hover .arrow-link {
	background: var(--primary);
	color: var(--white);
	transform: rotate(-45deg);
}

/* Vision Parallax */
.parallax-container {
	height: 580px;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	background-color: var(--primary); /* Fallback */
}

.parallax-bg {
	position: absolute;
	top: -60%;
	left: 0;
	width: 100%;
	height: 250%;
	background-size: cover;
	background-position: center;
	opacity: 0.75;
	z-index: 0;
	filter: brightness(0.65);
}

/* Video background for vision section */
.vision-video-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 0;
	filter: brightness(0.55);
}

/* Dark overlay — no blur, keeps text readable */
.parallax-frost {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: rgba(0, 22, 104, 0.30);
}

.vision-content {
	position: relative;
	z-index: 10; /* Definitely above the background */
	color: var(--white);
	text-align: center;
	width: 100%;
}

.vision-content h2 {
	color: var(--white);
	margin-bottom: 60px;
}

.vision-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}

.vision-item h4 {
	color: var(--gold);
	font-size: 1.5rem;
	margin-bottom: 16px;
}

.vision-item p {
	color: var(--white);
	opacity: 0.8;
}

.vision-icon {
	color: var(--gold);
	width: 56px;
	height: 56px;
	margin-bottom: 24px;
	filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
	transition: var(--transition);
}

.vision-item:hover .vision-icon {
	transform: scale(1.1) translateY(-5px);
	filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.5));
}

/* Vertical Timeline */
.section-timeline {
	padding: 80px 0 90px;
	position: relative;
	background-color: var(--bg-alt);
	overflow: hidden;
}

.timeline-bg-decoration {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(0,22,104,0.06) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

/* Wrapper & vertical line */
.vt-wrapper {
	position: relative;
	max-width: 860px;
	margin: 40px auto 0;
	padding-bottom: 10px;
}

.vt-line-track {
	position: absolute;
	left: 50%;
	top: 0; bottom: 0;
	width: 3px;
	background: rgba(0,22,104,0.1);
	transform: translateX(-50%);
	border-radius: 2px;
	z-index: 0;
}

.vt-line-fill {
	width: 100%;
	height: 0%;
	background: linear-gradient(to bottom, var(--primary) 0%, #1a3fdb 50%, var(--gold) 100%);
	border-radius: 2px;
	transition: height 0.08s linear;
}

/* Each timeline row */
.vt-item {
	display: grid;
	grid-template-columns: 1fr 50px 1fr;
	align-items: center;
	margin-bottom: 32px;
	position: relative;
	z-index: 1;
}

/* Animation states */
.vt-hidden { opacity: 0; }

.vt-normal .vt-side:first-child  { transform: translateX(-60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.vt-normal .vt-side:last-child   { transform: translateX(60px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.vt-reversed .vt-side:first-child{ transform: translateX(-60px); transition: opacity 0.7s ease, transform 0.7s ease; }
.vt-reversed .vt-side:last-child { transform: translateX(60px);  transition: opacity 0.7s ease, transform 0.7s ease; }
.vt-center-col                   { transition: opacity 0.3s ease 0.1s; }

.vt-item.vt-visible { opacity: 1; }
.vt-item.vt-visible .vt-side       { opacity: 1; transform: translateX(0); }
.vt-item.vt-visible .vt-center-col { opacity: 1; }

/* Node pop/bounce animation on scroll reveal */
@keyframes vtNodePop {
	0%   { transform: scale(0);    opacity: 0; }
	55%  { transform: scale(1.35); opacity: 1; }
	75%  { transform: scale(0.88); }
	90%  { transform: scale(1.08); }
	100% { transform: scale(1);    opacity: 1; }
}


.vt-item.vt-visible .vt-node {
	opacity: 1;
	transform: scale(1);
	animation: vtNodePop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
	animation-delay: 0.35s;
}

/* Floating animation after reveal */
@keyframes vtFloat {
	0%, 100% { transform: translateY(0px); }
	50%       { transform: translateY(-6px); }
}

.vt-item.vt-visible .vt-card {
	animation: vtFloat 4s ease-in-out infinite;
	animation-delay: 0.9s;
	animation-fill-mode: both;
}

/* Stagger float per item so they don't all move in sync */
.vt-item:nth-child(2).vt-visible .vt-card { animation-delay: 1.1s; }
.vt-item:nth-child(3).vt-visible .vt-card { animation-delay: 1.3s; }
.vt-item:nth-child(4).vt-visible .vt-card { animation-delay: 0.7s; }
.vt-item:nth-child(5).vt-visible .vt-card { animation-delay: 1.5s; }
.vt-item:nth-child(6).vt-visible .vt-card { animation-delay: 0.5s; }
.vt-item:nth-child(7).vt-visible .vt-card { animation-delay: 1.0s; }
.vt-item:nth-child(8).vt-visible .vt-card { animation-delay: 1.2s; }

/* Pause float on hover so the hover lift doesn't conflict */
.vt-card:hover {
	animation-play-state: paused !important;
}


/* Center node column */
.vt-center-col {
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
}

.vt-node {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 5px rgba(0,22,104,0.08), 0 4px 12px rgba(0,22,104,0.18);
	flex-shrink: 0;
	z-index: 2;
	/* Start hidden for pop animation */
	transform: scale(0);
	opacity: 0;
}

.vt-node i {
	width: 14px;
	height: 14px;
	color: white;
}

.vt-node-gold {
	background: linear-gradient(135deg, var(--gold), #b8960e);
	box-shadow: 0 0 0 5px rgba(212,175,55,0.12), 0 4px 12px rgba(212,175,55,0.2);
}

/* Active state when line touches the node */
.vt-item.node-active .vt-node {
	background: var(--gold);
	box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 0 8px rgba(212, 175, 55, 0.2);
	transition: background 0.4s ease, box-shadow 0.4s ease;
	animation: nodeFlash 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
	opacity: 1;
	transform: scale(1);
}

@keyframes nodeFlash {
	0% { transform: scale(1); filter: brightness(1); }
	20% { transform: scale(1.15); filter: brightness(1.5); box-shadow: 0 0 30px var(--gold), 0 0 0 12px rgba(212, 175, 55, 0.3); }
	100% { transform: scale(1); filter: brightness(1); }
}

.vt-item:hover .vt-node {
	transform: scale(1.1);
	box-shadow: 0 0 0 8px rgba(0,22,104,0.1), 0 8px 20px rgba(0,22,104,0.25);
}

/* Side columns */
.vt-side {
	display: flex;
	align-items: center;
	opacity: 0;
}

.vt-normal .vt-side:first-child  { justify-content: flex-end;  padding-right: 28px; }
.vt-normal .vt-side:last-child   { justify-content: flex-start; padding-left: 28px; }
.vt-reversed .vt-side:first-child{ justify-content: flex-end;  padding-right: 28px; }
.vt-reversed .vt-side:last-child { justify-content: flex-start; padding-left: 28px; }

/* Year labels */
.vt-year {
	font-family: var(--font-heading);
	font-size: 2.4rem;
	font-weight: 300;
	color: var(--primary);
	line-height: 1;
	letter-spacing: -1px;
	opacity: 0.7;
}

.vt-year-gold { color: var(--gold); }

/* Cards */
.vt-card {
	background: white;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 4px 24px rgba(0,22,104,0.07);
	border: 1px solid rgba(0,22,104,0.07);
	max-width: 320px;
	position: relative;
	transition: var(--transition);
}

.vt-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0,22,104,0.12);
	border-color: rgba(0,22,104,0.15);
}

/* Arrow pointer from card toward node */
.vt-normal .vt-card::after {
	content: '';
	position: absolute;
	right: -10px;
	top: 50%;
	transform: translateY(-50%);
	border: 8px solid transparent;
	border-left-color: white;
}
.vt-reversed .vt-card::after {
	content: '';
	position: absolute;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	border: 8px solid transparent;
	border-right-color: white;
}

.vt-card-gold {
	border-color: rgba(212,175,55,0.3);
	background: linear-gradient(135deg, #fffdf0, white);
}
.vt-card-gold::after { border-right-color: #fffdf0 !important; }

.vt-card h4 {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 6px;
}

.vt-card-icon {
	width: 32px;
	height: 32px;
	background: rgba(0,22,104,0.06);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
}

.vt-card-icon i {
	width: 16px;
	height: 16px;
	color: var(--primary);
}

.vt-card-gold .vt-card-icon {
	background: rgba(212,175,55,0.12);
}
.vt-card-gold .vt-card-icon i { color: var(--gold); }

.vt-card p {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-bottom: 0;
	line-height: 1.5;
}

/* Mobile */
@media (max-width: 768px) {
	.vt-wrapper { padding: 0 16px; }
	.vt-line-track { left: 28px; }
	.vt-item {
		grid-template-columns: 56px 1fr;
		grid-template-rows: auto auto;
		gap: 0 16px;
		margin-bottom: 48px;
	}
	.vt-center-col { grid-column: 1; grid-row: 1 / span 2; }
	/* Año arriba y tarjeta abajo, en la columna derecha (el orden del HTML cambia entre normal y reversed) */
	.vt-normal .vt-side:first-child,
	.vt-reversed .vt-side:last-child {
		grid-column: 2;
		grid-row: 1;
		padding: 0 0 8px;
		justify-content: flex-start;
	}
	.vt-normal .vt-side:last-child,
	.vt-reversed .vt-side:first-child {
		grid-column: 2;
		grid-row: 2;
		padding: 0;
		justify-content: flex-start;
	}
	/* Hitos sin año: no dejar espacio vacío */
	.vt-side:not(:has(*)) { display: none; }
	.vt-year { font-size: 2rem; }
	.vt-node { width: 44px; height: 44px; }
	.vt-normal .vt-card::after, .vt-reversed .vt-card::after { display: none; }
}




/* Values section */
.values-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-top: 60px;
}

.value-card {
	background: rgba(255, 255, 255, 0.05);
	padding: 48px;
	border-radius: 8px;
	transition: var(--transition);
}

.value-card:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-5px);
}

.value-card i {
	color: var(--gold);
	width: 40px;
	height: 40px;
	margin-bottom: 24px;
}

.value-card h3 {
	color: var(--white);
	margin-bottom: 16px;
}

.value-card p {
	color: #999;
}

/* Partners Slider */
.partners-slider-container {
	padding: 20px 0 60px;
	overflow: hidden;
	mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
	max-width: 1150px;
	margin: 0 auto;
}

.partners-track {
	display: flex;
	width: max-content;
	animation: scroll 40s linear infinite;
}

.partner-logo {
	width: 250px;
	padding: 0 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.partner-logo img {
	max-height: 80px;
	filter: grayscale(1);
	opacity: 0.5;
	transition: var(--transition);
}

.partner-logo:hover img {
	filter: none;
	opacity: 1;
}

@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Contact */
.contact-info h2 {
	margin-bottom: 32px;
}

.contact-list {
	margin-top: 48px;
}

.contact-list li {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	font-weight: 500;
}

.contact-list i {
	color: var(--gold);
	width: 20px;
}

.modern-form {
	background: var(--white);
	padding: 48px;
	border-radius: 8px;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
}

.form-group {
	margin-bottom: 24px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
	width: 100%;
	padding: 16px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(0, 22, 104, 0.05);
}

/* Footer */
.footer {
	padding: 80px 0 0; /* Remove bottom padding to let footer-bottom sit at the end */
	background-color: #111b3c;
	color: var(--white);
}

.footer-top {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 60px;
	padding-bottom: 60px;
}

.footer-brand .footer-logo {
	height: 40px;
	margin-bottom: 30px;
}

.footer-contact-info {
	margin-top: 20px;
}

.footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.4;
}

.footer-contact-item i {
	width: 16px;
	height: 16px;
	color: var(--gold);
	flex-shrink: 0;
	margin-top: 2px;
}

.footer-heading {
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: var(--white);
	margin-bottom: 25px;
	font-family: var(--font-heading);
}

.footer-links-list li {
	margin-bottom: 12px;
}

.footer-links-list a {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	transition: var(--transition);
}

.footer-links-list a:hover {
	color: var(--white);
	padding-left: 5px;
}

.footer-social-icons {
	display: flex;
	gap: 20px;
}

.footer-social-icons a {
	color: var(--white); /* Bright white for social icons */
	opacity: 0.7;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-social-icons i,
.footer-social-icons svg {
	width: 24px;
	height: 24px;
	display: block;
}

.footer-social-icons a:hover {
	opacity: 1;
	transform: translateY(-3px);
}

.footer-bottom {
	background-color: #e9eefa; /* Very light bluish background */
	padding: 30px 0;
	margin-top: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px; /* Reduced gap */
}

.footer-copyright {
	font-size: 0.8rem; /* Slightly smaller font */
	color: var(--text-muted);
	flex-shrink: 0;
}

.footer-partners {
	display: flex;
	align-items: center;
	gap: 8px; /* Reduced gap between logos */
	flex-wrap: nowrap; /* Force single line */
}

.footer-partners img {
	height: 40px; /* Adjusted to fit better in one line */
	width: auto;
	filter: none;
	opacity: 1;
	transition: var(--transition);
}

.footer-partners img:hover {
	opacity: 1;
}

/* Reveal Animations */
.reveal-up {
	opacity: 0;
	transform: translateY(40px);
	transition: all 1s ease-out;
}

.reveal-left {
	opacity: 0;
	transform: translateX(-40px);
	transition: all 1s ease-out;
}

.reveal-right {
	opacity: 0;
	transform: translateX(40px);
	transition: all 1s ease-out;
}

.reveal-up.active, 
.reveal-left.active, 
.reveal-right.active {
	opacity: 1;
	transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
	h2 { font-size: 2.2rem; }
	.hero-slide h1, .hero-slide h2 { font-size: 3rem; }
	.grid-two { gap: 40px; }
	.verticals-grid { grid-template-columns: repeat(2, 1fr); }
	.vision-grid { gap: 24px; }
}

@media (max-width: 768px) {
	.nav-links { display: none; }
	.mobile-menu-btn { display: block; }

	/* Menú móvil desplegado */
	.header.menu-desplegado {
		background-color: var(--white);
		box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
	}
	.header.menu-desplegado .mobile-menu-btn { color: var(--primary); }
	.nav-links.menu-abierto {
		display: flex;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background-color: var(--white);
		padding: 8px 24px 16px;
		box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
	}
	.header .nav-links.menu-abierto a {
		display: block;
		padding: 12px 0;
		color: var(--primary);
		border-bottom: 1px solid rgba(0, 22, 104, 0.08);
	}
	.header .nav-links.menu-abierto li:last-child a { border-bottom: none; }
	.header .nav-links.menu-abierto a::after { display: none; }
	.grid-two { grid-template-columns: 1fr; }
	.hero { height: 600px; }
	.hero-slide h1, .hero-slide h2 { font-size: 2.5rem; }
	.vision-grid { grid-template-columns: 1fr; }
	.values-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 40px; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.verticals-grid { grid-template-columns: 1fr; }
	.footer-bottom .container { flex-direction: column; text-align: center; gap: 20px; }
	.footer-partners { justify-content: center; }
}

/* Privacy Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	align-items: center;
	justify-content: center;
}

.modal.show {
	display: flex;
}

.modal-content {
	background-color: var(--white);
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 5px 25px rgba(0,0,0,0.2);
	max-width: 600px;
	width: 90%;
	position: relative;
	animation: modalFadeIn 0.3s ease-out;
}

.close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
	color: var(--text-muted);
	transition: var(--transition);
}

.close-btn:hover {
	color: var(--primary);
}

.modal-body {
	margin-top: 20px;
	max-height: 60vh;
	overflow-y: auto;
	color: var(--text-main);
	font-size: 0.95rem;
	line-height: 1.6;
}

.modal-body p {
	margin-bottom: 15px;
}

@keyframes modalFadeIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Footer Bottom Responsiveness */
@media (max-width: 992px) {
	.footer-bottom .container {
		flex-direction: column;
		text-align: center;
		gap: 20px;
	}

	.footer-partners {
		justify-content: center;
		flex-wrap: wrap;
	}
}

/* Cyber Popup */
.cyber-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 99999;
	width: 320px;
	max-width: 90vw;
	transform: translateY(150%);
	opacity: 0;
	transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
	border-radius: 0;
	overflow: visible;
}

.cyber-popup.show {
	transform: translateY(0);
	opacity: 1;
}

.cyber-popup-link {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cyber-popup img {
	width: 100%;
	height: auto;
	display: block;
}

.cyber-popup-close {
	position: absolute;
	top: -12px;
	right: -12px;
	background: #ffffff;
	color: #333;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.2s ease;
	border: 1px solid #eaeaea;
}

.cyber-popup-close:hover {
	background: #f8f9fa;
	color: #000;
	transform: scale(1.1);
}

.cyber-popup-close svg {
	width: 14px;
	height: 14px;
}

@media (max-width: 768px) {
	.cyber-popup {
		left: 50%;
		bottom: 20px;
		transform: translate(-50%, 150%);
		width: 90%;
		max-width: 400px;
	}
	
	.cyber-popup.show {
		transform: translate(-50%, 0);
	}
}
