/* ============================================================
   AEROVIA INDEX - CINEMATIC EXPERIENCE
   ============================================================ */
:root {
    --navy: #06111F;
    --deep-blue: #0B1F35;
    --white: #FFFFFF;
    --gold: #C9A227;
    --light-gold: #E8D28A;
    --glass-bg: rgba(11, 31, 53, 0.6);
    --glass-border: rgba(201, 162, 39, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--navy);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* LOADING STATE */
body.loading-state { overflow: hidden; }
.experience-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--navy); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}
.experience-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.brand-preload { font-size: 2rem; font-weight: 800; letter-spacing: 4px; color: var(--gold); margin-bottom: 1rem; }
.preload-text { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; letter-spacing: 2px; }
.progress-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); margin: 0 auto 2rem; border-radius: 2px; overflow: hidden; }
.progress-fill { width: 0%; height: 100%; background: var(--gold); transition: width 2s ease; }
.experience-loader.loaded .progress-fill { width: 100%; }
.experience-loader.loaded .preload-text { display: none; }
.experience-loader.loaded #start-experience-btn { display: inline-flex; }

.btn-gold-cinematic {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--navy); border: none; padding: 1rem 2rem;
    font-weight: 700; font-size: 0.9rem; letter-spacing: 2px;
    cursor: pointer; border-radius: 4px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-gold-cinematic:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(201, 162, 39, 0.4); }

/* NAVBAR */
.aero-navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1.5rem 0; transition: background 0.3s ease, padding 0.3s ease;
}
.aero-navbar.scrolled { background: rgba(6, 17, 31, 0.95); backdrop-filter: blur(10px); padding: 1rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: 2px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--gold); }
.nav-link-ghost { border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1.2rem; border-radius: 4px; }
.btn-nav-primary { background: var(--gold); color: var(--navy) !important; padding: 0.6rem 1.5rem; border-radius: 4px; font-weight: 700 !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 25px; height: 2px; background: var(--white); transition: 0.3s; }

/* HERO CINEMATIC */
.hero-cinematic {
    height: 100vh; position: relative; display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.cinematic-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, var(--deep-blue), var(--navy)); }
.vignette { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, transparent 40%, var(--navy) 100%); }
.particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.5; }

.cinematic-content { position: relative; z-index: 10; text-align: center; opacity: 0; transform: translateY(30px); transition: all 1.5s ease; }
.cinematic-content.active { opacity: 1; transform: translateY(0); }

.plane-flyby {
    position: absolute; top: 40%; left: -20%; width: 150px;
    opacity: 0; pointer-events: none;
}
.plane-flyby.animate { animation: flyAcross 4s ease-in-out forwards; }
@keyframes flyAcross {
    0% { left: -20%; top: 50%; opacity: 0; transform: scale(0.5) rotate(5deg); }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { left: 120%; top: 30%; opacity: 0; transform: scale(1.2) rotate(-5deg); }
}
.plane-svg { width: 100%; filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.6)); }
.plane-trail {
    position: absolute; top: 50%; right: 100%; width: 300px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--light-gold));
    transform: translateY(-50%); opacity: 0.6;
}

.brand-title { font-size: 4rem; font-weight: 800; letter-spacing: 8px; color: var(--white); margin-bottom: 0.5rem; text-shadow: 0 0 40px rgba(201, 162, 39, 0.3); }
.brand-subtitle { font-size: 1.2rem; font-weight: 300; letter-spacing: 6px; color: var(--gold); margin-bottom: 1rem; }
.brand-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.6); letter-spacing: 3px; }

.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; opacity: 0; animation: fadeInUp 1s 3s forwards; }
.scroll-indicator span { font-size: 0.7rem; letter-spacing: 2px; color: rgba(255,255,255,0.5); display: block; margin-bottom: 0.5rem; }
.mouse { width: 20px; height: 30px; border: 2px solid rgba(255,255,255,0.3); border-radius: 10px; margin: 0 auto; position: relative; }
.mouse::after { content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); width: 2px; height: 6px; background: var(--gold); border-radius: 2px; animation: scrollMouse 1.5s infinite; }
@keyframes scrollMouse { 0% { opacity: 1; top: 5px; } 100% { opacity: 0; top: 15px; } }
@keyframes fadeInUp { to { opacity: 1; } }

/* SECTIONS GENERAL */
section { padding: 6rem 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 3rem; letter-spacing: 2px; }
.text-gold { color: var(--gold); }

/* MAP VISION */
.section-map-vision { background: var(--navy); text-align: center; padding: 4rem 0; }
.map-container { max-width: 300px; margin: 0 auto 2rem; position: relative; }
.latam-map { width: 100%; height: auto; }
.map-land { fill: var(--deep-blue); stroke: var(--glass-border); stroke-width: 1; }
.map-dot { fill: var(--gold); opacity: 0; animation: pulseDot 2s infinite; }
.dot-1 { animation-delay: 0s; } .dot-2 { animation-delay: 0.5s; } .dot-3 { animation-delay: 1s; }
@keyframes pulseDot { 0%, 100% { opacity: 0.3; r: 3; } 50% { opacity: 1; r: 5; } }
.route-line { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 5; opacity: 0.5; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -100; } }
.vision-text h3 { font-size: 1.5rem; font-weight: 300; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; line-height: 1.8; }

/* FEATURES GLASSMORPHISM */
.section-features { background: linear-gradient(180deg, var(--navy), var(--deep-blue)); }
.section-features .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--glass-bg); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); border-radius: 16px;
    padding: 2rem; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: var(--gold); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 1px; }
.feature-card p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.feature-highlight {
    display: inline-block; background: rgba(201, 162, 39, 0.1);
    color: var(--light-gold); padding: 0.5rem 1rem; border-radius: 50px;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; border: 1px solid rgba(201, 162, 39, 0.3);
}

/* HOW IT WORKS */
.section-how-it-works { background: var(--navy); }
.steps-container { display: flex; flex-direction: column; gap: 2rem; max-width: 600px; margin: 0 auto; position: relative; }
.steps-container::before {
    content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, var(--gold), transparent);
}
.step-item { display: flex; gap: 1.5rem; align-items: flex-start; position: relative; z-index: 2; }
.step-number {
    width: 50px; height: 50px; background: var(--deep-blue); border: 2px solid var(--gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--gold); flex-shrink: 0;
}
.step-content h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: var(--white); }
.step-content p { font-size: 0.9rem; color: rgba(255,255,255,0.6); }

/* PROJECT */
.section-project { background: var(--deep-blue); text-align: center; padding: 8rem 0; }
.project-content h3 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
.project-content p { font-size: 1.1rem; color: rgba(255,255,255,0.7); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* NUMBERS */
.section-numbers { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.05); }
.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.number-value { display: block; font-size: 2.5rem; font-weight: 800; color: var(--gold); margin-bottom: 0.5rem; }
.number-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 1px; }
.highlight-number .number-value { color: var(--white); text-shadow: 0 0 20px rgba(201, 162, 39, 0.5); }

/* FINAL CTA */
.section-final-cta { background: radial-gradient(circle at center, var(--deep-blue), var(--navy)); padding: 8rem 0; text-align: center; }
.cta-box h3 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; }
.cta-box p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: 3rem; }
.cta-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.btn-gold-large {
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    color: var(--navy); padding: 1.2rem 3rem; border-radius: 8px;
    font-weight: 800; font-size: 1rem; text-decoration: none; letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-gold-large:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3); }
.btn-outline-large {
    background: transparent; color: var(--white); padding: 1.2rem 3rem; border-radius: 8px;
    font-weight: 700; font-size: 1rem; text-decoration: none; letter-spacing: 1px;
    border: 2px solid rgba(255,255,255,0.2); transition: all 0.3s;
}
.btn-outline-large:hover { border-color: var(--gold); color: var(--gold); }

/* FOOTER */
.aero-footer { background: #040a12; padding: 3rem 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-brand { font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 1rem; }
.footer-brand span { font-weight: 300; color: var(--gold); font-size: 0.9rem; display: block; margin-top: 0.25rem; letter-spacing: 3px; }
.footer-disclaimer { font-size: 0.8rem; color: rgba(255,255,255,0.4); max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.5; }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }

/* SCROLL REVEAL ANIMATION */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* MOBILE FIRST ADJUSTMENTS */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: var(--deep-blue); flex-direction: column; justify-content: center;
        transition: right 0.4s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active { right: 0; }
    .nav-toggle { display: flex; z-index: 1001; }
    .brand-title { font-size: 2.5rem; letter-spacing: 4px; }
    .brand-subtitle { font-size: 0.9rem; letter-spacing: 3px; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .btn-gold-large, .btn-outline-large { width: 100%; text-align: center; }
    .project-content h3 { font-size: 1.8rem; }
    .number-value { font-size: 2rem; }
}

/* ACCESSIBILITY: REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
}