:root {
    /* Color Palette */
    --primary: #f1c40f;
    --primary-dark: #d4ac0d;
    --primary-glow: rgba(241, 196, 15, 0.3);
    --bg-dark: #0f172a;
    --surface-dark: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .premium-font {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-main);
}

/* Glassmorphism */
.glass {
    background: var(--surface-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white); /* Always white at the top because hero is dark */
    z-index: 1001;
}

.menu-close {
    display: none;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.8rem 5%;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

nav.scrolled .nav-links a {
    color: #0f172a;
}

nav.scrolled .logo {
    color: #0f172a;
}

nav.scrolled .lang-btn {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
    border: 1px solid rgba(0,0,0,0.1);
}

nav.scrolled #theme-toggle {
    color: #0f172a;
    border: 1px solid rgba(0,0,0,0.1);
}

nav.scrolled .menu-toggle {
    color: #0f172a;
}

.logo {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('../../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-tagline {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1.2s ease;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--white);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow), inset 0 0 10px rgba(255,255,255,0.2);
    background: var(--white);
    color: #0f172a !important;
}

/* Premium Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Image Hover Effects */
.img-hover {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
}
.img-hover:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}


/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid Layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Footer */
footer {
    background: #070b14;
    padding: 80px 5% 20px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

body.light-mode footer {
    background: #f1f5f9;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 60px;
}

/* Custom Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--surface-dark);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-top: 10px;
    display: none;
    flex-direction: column;
    min-width: 140px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 10px 15px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-option:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

body.light-mode .lang-dropdown {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.light-mode .lang-option {
    color: #0f172a;
}

/* Hide Google Branding */
.goog-te-banner-frame, 
.goog-te-gadget span, 
.goog-logo-link,
.goog-te-gadget-icon {
    display: none !important;
}

.goog-te-gadget {
    color: transparent !important;
    font-size: 0 !important;
}

#google_translate_element {
    position: absolute;
    top: -9999px;
    left: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Floating Icons Animation */
.bg-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

body.light-mode #cronograma {
    background: #0f172a !important;
}

body.light-mode .bg-icons {
    opacity: 0.08;
}

body.light-mode .timeline::before {
    background: var(--glass-border);
}

body.light-mode #cronograma h2 {
    color: var(--white);
}

.floating-icon {
    position: absolute;
    color: var(--primary);
    animation: float 15s linear infinite;
    font-size: 2rem;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Dark Mode persistence via body class */
body.light-mode {
    --bg-dark: #f8fafc;
    --surface-dark: rgba(255, 255, 255, 0.8);
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-border: rgba(0, 0, 0, 0.1);
}

body.light-mode nav.scrolled {
    background: rgba(255, 255, 255, 0.9);
}

/* Ensure icons are dark on scrolled light header even on mobile */
body.light-mode nav.scrolled .menu-toggle,
body.light-mode nav.scrolled .lang-btn,
body.light-mode nav.scrolled #theme-toggle {
    color: #0f172a !important;
}


/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 5%;
    }
    .menu-toggle {
        display: block;
    }
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0f172a; /* Always dark for mobile menu */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-container.active {
        right: 0;
    }
    .nav-container.active ~ #mobile-menu-toggle {
        display: none;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .nav-actions {
        flex-direction: column;
        gap: 1.5rem !important;
    }
    .support-section div {
        gap: 25px !important;
        padding: 1.5rem !important;
    }
    .support-section img {
        height: 30px !important;
    }
    .cta-main {
        padding: 1.2rem 2rem !important;
        font-size: 1rem !important;
        margin-top: 2rem;
    }
    .nav-container .nav-links a,
    .nav-container .lang-btn,
    .nav-container #theme-toggle {
        color: var(--white) !important;
    }
    .nav-container .lang-dropdown .lang-option {
        color: var(--text-main);
    }
    .menu-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 1.8rem;
        color: var(--white);
        cursor: pointer;
    }
    .hero {
        padding-top: 100px; /* Push hero text down on mobile */
    }
    .hero-content {
        margin-top: 2rem;
    }
    .hero h1 { font-size: 2.5rem; }
    .timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-content { width: calc(100% - 60px); margin-left: 60px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
}
