: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);
}


.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/img/hero_main.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/img/hero_main.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 --- */
.container {
    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;
    }
}