:root {
    /* Brand Colors */
    --ya-orange: #E8360B;
    --ya-blue: #0B2C3F;
    --white: #FFFFFF;
    --bg-dark-base: #0F172A;
    
    /* Neutral Colors */
    --neutral-600: #475569;
    --neutral-400: #94A3B8;
    --neutral-200: #E2E8F0;
    --neutral-100: #F8FAFC;
    
    /* Semantic Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444; /* Standard red */
    --info: #3B82F6; /* Standard blue */

    /* Typography Scale */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Mulish', sans-serif;
    
    --size-h1: 44px;
    --size-h2: 36px;
    --size-h3: 28px;
    --size-h4: 24px;
    --size-h5: 20px;
    --size-display-1: 48px;
    --size-display-2: 40px;
    
    --body-lg: 20px;
    --body-normal: 16px;
    --body-sm: 14px;
    
    --weight-headings: 700;
    --weight-buttons: 600;
    --weight-icons: 400;
    --weight-displays: 200;
    
    --lh-headings: 1.3;
    --lh-body: 1.7;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

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

body {
    background-color: var(--bg-dark-base);
    font-family: var(--font-body);
    font-size: var(--body-normal);
    color: var(--white);
    line-height: var(--lh-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: var(--weight-headings);
    line-height: var(--lh-headings);
    color: var(--white);
}

/* Helper for Light Pages */
.light-theme {
    color: var(--ya-blue);
}

.light-theme h1, 
.light-theme h2, 
.light-theme h3, 
.light-theme h4, 
.light-theme h5 {
    color: var(--ya-blue);
}

/* Specific Override for Dark Sections inside Light Pages */
.light-theme .section-dark h1,
.light-theme .section-dark h2,
.light-theme .section-dark h3,
.light-theme .section-dark h4,
.light-theme .section-dark h5,
.light-theme [style*="background: var(--blue-ya)"] h1,
.light-theme [style*="background: var(--blue-ya)"] h2,
.light-theme [style*="background: var(--blue-ya)"] h3,
.light-theme [style*="background: var(--blue-ya)"] h4,
.light-theme [style*="background: var(--blue-ya)"] h5,
.light-theme [style*="background: var(--ya-blue)"] h1,
.light-theme [style*="background: var(--ya-blue)"] h2,
.light-theme [style*="background: var(--ya-blue)"] h3,
.light-theme [style*="background: var(--ya-blue)"] h4,
.light-theme [style*="background: var(--ya-blue)"] h5 {
    color: var(--white) !important;
}

/* Dropdown overrides for Light Themes */
.light-theme .dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

.light-theme .dropdown-item:hover {
    background: #F8FAFC !important;
}

.light-theme .dropdown-title {
    color: var(--ya-blue) !important;
}

.light-theme .dropdown-desc {
    color: #64748b !important;
}

.light-theme .dropdown-item i {
    color: var(--ya-orange) !important;
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }
h5 { font-size: var(--size-h5); }

p {
    font-size: 16px;
    font-family: var(--font-body);
    color: var(--text-dark-sec);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 3rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Light Theme Components Override --- */
.price-card,
.detail-card,
.details-section,
.info-grid,
[style*="background: var(--white)"],
[style*="background: #fff"] {
    color: var(--bg-dark-sec);
}

.price-card h1,
.price-card h2,
.price-card h3,
.price-card h4,
.detail-card h1,
.detail-card h2,
.detail-card h3,
.detail-card h4,
.details-section h1,
.details-section h2,
.details-section h3,
.details-section h4,
.info-grid h1,
.info-grid h2,
.info-grid h3,
.info-grid h4,
[style*="background: var(--white)"] h1,
[style*="background: var(--white)"] h2,
[style*="background: var(--white)"] h3,
[style*="background: var(--white)"] h4,
[style*="background: #fff"] h1,
[style*="background: #fff"] h2,
[style*="background: #fff"] h3,
[style*="background: #fff"] h4 {
    color: var(--bg-dark-main) !important;
}

.price-card p,
.detail-card p,
.details-section p,
.info-grid p,
.info-grid li,
[style*="background: var(--white)"] p,
[style*="background: var(--white)"] li,
[style*="background: #fff"] p,
[style*="background: #fff"] li {
    color: #475569 !important;
}

.price-card .btn-outline,
.detail-card .btn-outline,
.details-section .btn-outline,
.info-grid .btn-outline,
[style*="background: var(--white)"] .btn-outline,
[style*="background: #fff"] .btn-outline {
    color: var(--ya-orange);
    border-color: var(--ya-orange);
}

.price-card .btn-outline:hover,
.detail-card .btn-outline:hover,
.details-section .btn-outline:hover,
.info-grid .btn-outline:hover,
[style*="background: var(--white)"] .btn-outline:hover,
[style*="background: #fff"] .btn-outline:hover {
    color: var(--white);
    background: var(--ya-orange);
}

/* --- Global Footer & Nav fixes --- */
footer {
    padding: 8rem 0 4rem;
    text-align: center;
    background: #0B0F1E !important;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #fff !important;
}

footer a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover { color: var(--cyan-ya) !important; }

footer p {
    opacity: 0.3;
    font-size: 0.8rem;
    color: #fff !important;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .footer-nav { gap: 1.5rem; margin-bottom: 3rem; }
    footer { padding: 5rem 0 3rem; }
}

/* Nav Fixes */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    color: var(--blue-ya);
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s;
}

.mobile-toggle i {
    display: block;
}

.show-mobile-flex {
    display: none;
}

@media (max-width: 768px) {
    /* Mobile-only Flex Utility for Drawer */
    .nav-menu.active .nav-menu-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100%;
        text-align: center;
    }
    
    .logo-center {
        display: none !important; /* Hide YA in mobile header as requested */
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5rem;
    list-style: none;
    width: 100%;
    justify-content: space-between;
}

.nav-menu-group {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark-main);
    font-family: var(--font-display);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    color: var(--ya-orange-dark);
}

/* --- Dropdown --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-dark-sec);
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 12px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-title {
    display: block;
    color: var(--text-dark-main);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.dropdown-desc {
    display: block;
    color: var(--text-dark-sec);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
}

.dropdown-menu a {
    padding: 0 !important;
}

.logo-center {
    height: 55px;
    width: auto;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    height: auto;
    width: 100vw;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/static/assets/img/Home_Hero_BG.png') center / cover no-repeat;
    padding-top: 15vh;
    padding-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient starts bright orange and completely horizontal at top, then fades out softly downwards */
    background: linear-gradient(180deg, #ff5500 0%, rgba(255, 85, 0, 0.6) 15%, rgba(255, 85, 0, 0) 45%),
        rgba(10, 15, 30, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 2rem;
    margin-top: 2vh;
}

.pos-mockup {
    max-width: 650px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 56px;
    font-weight: 400;
    /* Quitado el formato negrita (bold) según petición */
    margin-bottom: 2rem;
    max-width: 950px;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
}
/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: var(--weight-buttons);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 100px; /* Pill branding */
    cursor: pointer;
    gap: 10px;
}

.btn-solid {
    background: var(--ya-orange);
    color: var(--white);
    border: none;
}

.btn-solid:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--ya-orange);
}

.btn-outline {
    background: transparent;
    color: var(--ya-orange);
    border: 2px solid var(--ya-orange);
}

.btn-outline:hover {
    background: var(--ya-orange);
    color: var(--white);
}

/* Button Sizes */
.btn-sm { font-size: 14px; padding: 12px 24px; }
.btn-md { font-size: 16px; padding: 14px 32px; }
.btn-lg { font-size: 18px; padding: 16px 48px; }

/* --- Glassmorphism & Tonal Layering --- */
.glass-container {
    background: rgba(11, 44, 63, 0.4); /* Azul marca semi-transparente */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05); /* Ghost border */
    border-radius: 16px;
}

.tonal-card {
    background: var(--ya-blue);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.tonal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ya-orange);
}

/* --- Hero Section (STAY UNCHANGED STRUCTURE) --- */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/static/assets/img/Home_Hero_BG.png') center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--ya-orange) 0%, rgba(232, 54, 11, 0.6) 15%, rgba(15, 23, 42, 0.5) 45%),
        rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 0 2rem;
}
/* --- Buttons --- */
.hero-btns {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .hero h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .nav-menu {
        gap: 1rem;
    }

    .nav-menu a {
        font-size: 0.8rem;
    }

    .hero-content {
        margin-top: -10vh;
    }
}

/* --- Product Page Navigation --- */
nav.scrolled {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    position: fixed;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-dark-main);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s;
}

/* --- Utilities --- */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(232, 54, 11, 0.1);
    color: var(--ya-orange);
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Cookie Banner Premium --- */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 480px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2rem;
    z-index: 10000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    color: white;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cookie-header i {
    font-size: 2rem;
    color: var(--ya-orange);
}

.cookie-header h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.cookie-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Mulish', sans-serif;
}

.cookie-footer {
    display: flex;
    gap: 15px;
}

.cookie-footer .btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 14px;
    border-radius: 100px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.btn-accept {
    background: var(--ya-orange);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-accept:hover {
    background: var(--ya-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232, 54, 11, 0.3);
}

.btn-settings {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-settings:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 500px) {
    .cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        padding: 1.5rem;
    }
}
/* --- Animations for Forms & Interactions 2026 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* --- Responsive Utilities Extended --- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.responsive-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 1024px) {
    :root {
        --size-h1: 38px;
        --size-h2: 32px;
        --size-h3: 24px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    nav {
        padding: 1.5rem 0;
    }
}

@media (max-width: 768px) {
    :root {
        --size-h1: 32px;
        --size-h2: 28px;
        --size-h3: 22px;
    }

    section {
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Stack flex elements on mobile */
    .flex-stack {
        flex-direction: column;
        gap: 1rem;
    }

    h1 { font-size: clamp(2.2rem, 8vw, 3rem) !important; }
    h2 { font-size: clamp(1.8rem, 6vw, 2.5rem) !important; }
    h3 { font-size: clamp(1.5rem, 5vw, 2rem) !important; }
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--orange-ya);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
    background: var(--blue-ya);
}
/* Final CTA Responsive Fixes 2026 */
.final-cta-box {
    background: var(--blue-ya);
    border-radius: 48px;
    padding: 6rem 4rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 40px 100px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.85rem;
    }

    .glass-card,
    .price-card,
    .detail-card,
    .tonal-card,
    .faq-item {
        width: 100%;
        max-width: none;
    }

    .final-cta {
        padding: 4rem 1rem !important;
    }
    
    .final-cta-box {
        padding: 3rem 1.5rem !important;
        border-radius: 32px !important;
    }

    .final-cta-box h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .final-cta-box p {
        font-size: 1rem !important;
        margin-bottom: 2.5rem !important;
    }

    .final-cta-box .btn {
        width: 100%;
        padding: 14px 20px !important;
    }
    
    #contacto-final {
        margin-top: 4rem !important;
    }
    
    #contacto-final .glass-card {
        padding: 2rem !important;
        border-radius: 24px !important;
    }

    #contacto-final .form-group {
        margin-bottom: 1.5rem !important;
    }

    #contacto-final div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* Mobile Toggle & Menu Overlay 2026 */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ya-orange);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2000;
}

@media (max-width: 768px) {
    .mobile-toggle { 
        display: block; 
        background: none; 
        border: none; 
        color: var(--ya-orange); 
        font-size: 2.2rem; 
        cursor: pointer; 
        z-index: 2000; 
    }

    .nav-container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #080C18; /* Solid deep obsidian for maximum readability */
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 6000;
        padding: 6rem 1.5rem 100px; /* Large bottom padding for the bottom nav bar */
        box-shadow: -15px 0 50px rgba(0,0,0,0.6);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Elevate mobile toggle when menu is active */
    .nav-menu.active ~ .mobile-toggle,
    .mobile-toggle {
        z-index: 7000;
        position: relative;
    }

    .nav-menu.active {
        right: 0;
    }    .nav-menu a {
        color: white !important;
        display: flex;
        width: 100%;
        padding: 1.2rem 0; /* Clearer click targets */
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        opacity: 0.9;
    }

    /* Sub-menu styling inside drawer */
    .dropdown.active .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 12px;
        margin: 0.5rem 0 1rem;
        padding: 1rem !important;
        gap: 0.8rem;
        width: 100%;
    }

    .nav-menu .dropdown-item {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 0.8rem !important;
        border-left: 3px solid var(--ya-orange);
    }

    .nav-menu .dropdown-title {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.2rem;
    }

    .nav-menu .dropdown-desc {
        display: block !important;
        font-size: 0.75rem !important;
        opacity: 0.6;
    }
}

/* --- Modern Mobile Nav Bar (Fixed Bottom) --- */
.mobile-nav-bar {
    display: none;
    position: fixed;
    bottom: 0;
    top: auto !important;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: center;
    z-index: 5000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .mobile-nav-bar {
        display: flex;
    }
}

.mobile-nav-bar .menu__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    gap: 6px;
}

.mobile-nav-bar .menu__item b {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.mobile-nav-bar .menu__item.active {
    color: var(--ya-orange);
}

.mobile-nav-bar .menu__item.active i {
    animation: iconBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-bar .menu__item.active b {
    opacity: 1;
}

.mobile-nav-bar .menu__item i {
    font-size: 1.5rem;
}

/* Active indicator line */
.mobile-nav-bar .menu__item::after {
    content: '';
    position: absolute;
    top: -1rem; /* Aligned to the top border of the bar */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--ya-orange);
    border-radius: 0 0 4px 4px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-bar .menu__item.active::after {
    width: 40px;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    20% { transform: translateY(-0.4rem); }
    40% { transform: translateY(0); }
    60% { transform: translateY(-0.15rem); }
    80% { transform: translateY(0); }
}

/* Ensure content is not hidden behind the mobile nav bar */
@media (max-width: 768px) {
    body {
        padding-bottom: 80px; /* Space for the bottom nav bar */
    }
}
