:root {
    /* Color Palette - Premium Business */
    --primary: #1a2a4a;
    /* Deep Navy */
    --primary-light: #D5C8B0;
    /* Deeper Beige */
    --secondary: #e63946;
    /* Premium Red */
    --secondary-hover: #c1121f;
    --text-primary: #1a2a4a;
    --text-secondary: #4a5568;
    --background: #E5D8C0;
    /* Deeper Premium Beige */
    --white: #ffffff;
    /* Pure White */
    --black: #1a2a4a;
    /* Dark contrast */
    --glass: rgba(26, 42, 74, 0.05);
    --glass-border: rgba(26, 42, 74, 0.1);
    --accent: #64ffda;
    /* Teal accent for highlights */

    /* Spacing & Sizes */
    --section-padding: 100px 20px;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.2);
}

.btn-primary-alt {
    background-color: var(--primary);
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.btn-primary-alt:hover {
    background-color: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 42, 74, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: rgba(230, 57, 70, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.1);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(251, 250, 245, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(26, 42, 74, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between image and text */
}

.logo-text {
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}

.logo-img {
    height: 30px !important;
    width: auto;
    filter: brightness(0) saturate(100%) invert(32%) sepia(87%) saturate(3015%) hue-rotate(345deg) brightness(97%) contrast(92%);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--secondary);
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-right: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--glass);
    border-color: var(--secondary);
}

.lang-btn.active {
    background: rgba(230, 57, 70, 0.2);
    border-color: var(--secondary);
}

.lang-btn img {
    border-radius: 2px;
    object-fit: cover;
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    z-index: 2000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    text-align: center;
}

.close-mobile-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
}

.mobile-nav-links a:hover {
    color: var(--secondary);
}

/* Hero Section */
.hero {
    min-height: 60vh;
    padding: 100px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #EFE6D6;
    /* Solid Lighter Beige */
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* Services Grid */
.services {
    padding: 40px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 60px 20px 0px 20px;
    background: var(--primary-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 0px 20px 10px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Floating Buttons */
.whatsapp-float,
.wechat-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-float {
    background-color: #12b2a2;
    display: flex;
}

.wechat-float {
    background-color: #12b2a2;
    display: none;
}

.whatsapp-float:hover,
.wechat-float:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-float:hover {
    background-color: #0e8a7d;
}

.wechat-float:hover {
    background-color: #0e8a7d;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 42, 74, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 10% auto;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    background: var(--background);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--secondary);
}

.contact-item-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-primary);
    transition: var(--transition);
    padding: 10px 15px;
    border-radius: 6px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    width: fit-content;
}

.contact-item-btn:hover {
    border-color: var(--secondary);
    background: rgba(230, 57, 70, 0.1);
    transform: translateX(10px);
}

.contact-item-btn i {
    color: var(--secondary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 20px;
        order: 3;
    }

    .lang-switcher {
        margin-right: 0;
        width: 100%;
        justify-content: center;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: flex;
        position: absolute;
        top: 5px;
        right: 0;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 35px;
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns a {
        margin-left: 0 !important;
        width: 80%;
        text-align: center;
        font-size: 0.8rem;
        padding: 10px 20px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
        text-align: center;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Contact */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .social-links-container {
        justify-content: center !important;
    }

    /* Floating buttons */
    .whatsapp-float,
    .wechat-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    /* Logo */
    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 24px !important;
    }
}

.footer-brand-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 0px;
    filter: brightness(1.1);
}

/* Pricing Cards & Advisory Page */
.pricing-grid {
    margin-bottom: 50px;
}

.price-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    position: relative;
    overflow: visible;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.price-tag {
    background: rgba(212, 175, 55, 0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed rgba(212, 175, 55, 0.3);
}

.asesoria-page .section-header h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.asesoria-page .section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .asesoria-page .section-header h1 {
        font-size: 2.2rem;
    }

    .price-card {
        min-height: auto;
        padding: 30px !important;
    }
}