        /* Font Imports */
        @font-face {
            font-family: 'MiSans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Regular.ttf') format('truetype');
            font-weight: 400;
            font-style: normal;
        }
        @font-face {
            font-family: 'MiSans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Medium.ttf') format('truetype');
            font-weight: 500;
            font-style: normal;
        }
        @font-face {
            font-family: 'MiSans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/MiSans-Bold.ttf') format('truetype');
            font-weight: 700;
            font-style: normal;
        }

        /* Reset & Base Styles */
        :root {
            --primary-bg: #FFFFFF;
            --secondary-bg: #F8F9FA;
             --primary-color: #03a3d7;
            --secondary-color: #1f7fc2;
            --text-color: #1A1A1A;
            --text-light: #666666;
            --accent-color: #0066FF;
            --accent-hover: #0052CC;
            --border-color: #E5E5E5;
            --max-width: 1200px;
            --transition: all 0.3s ease;
            --header-height: 80px;
             --spacing-sm: 0.5rem;  
            --spacing-md: 1rem;
            --spacing-lg: 2rem;
            --spacing-xl: 4rem;
        }

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

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }
        
        /* Mobile Viewport Fix */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

@media (max-width: 768px) {
    * {
        max-width: 100vw;
    }
    
    .container {
        overflow-x: hidden;
    }
}

        body {
            font-family: 'MiSans', sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-color);
            line-height: 1.6;
            width: 1920px;
            max-width: 100%;
            margin: 0 auto;
            overflow-x: hidden;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        img {
            display: block;
            width: 100%;
            height: auto;
            object-fit: cover;
        }

        /* Typography */
        h1, h2, h3, h4 {
            font-weight: 700;
            line-height: 1.2;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            text-align: center;
        }

        .section-desc {
            max-width: 800px;
            margin: 0 auto 3rem;
            text-align: center;
            color: var(--text-light);
            font-size: 1.1rem;
        }

        /* Components */
        .btn {
            display: inline-block;
            padding: 0.8rem 1.5rem;
            background-color: var(--accent-color);
            color: white;
            border-radius: 6px;
            font-weight: 500;
            transition: var(--transition);
            text-align: center;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background-color: var(--accent-hover);
            transform: translateY(-2px);
        }

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

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

        .container {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Header / Navigation */
        header {
            position: sticky;
            top: 0;
            background-color: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            z-index: 1000;
            height: 80px;
            display: flex;
            align-items: center;
        }

        .nav-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 2rem;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--accent-color);
        }

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

        .nav-links a {
            font-weight: 500;
            transition: var(--transition);
        }

        .nav-links a:hover, .nav-links a.active {
            color: var(--accent-color);
        }

        .hamburger {
            display: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Section (Home) */
        .hero {
            height: 70vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: radial-gradient(circle at center, #f0f7ff 0%, #ffffff 70%);
            padding: 0 1rem;
        }

        .hero-content h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            letter-spacing: -1px;
        }

        .hero-content p {
            font-size: 1.25rem;
            color: var(--text-light);
            max-width: 600px;
            margin: 0 auto 2rem;
        }

        /* Specialties Section */
        .specialties {
            padding: 5rem 0;
        }

        .cards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-top: 3rem;
        }

        .card {
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 2.5rem;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
            border-color: var(--accent-color);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            background-color: rgba(0, 102, 255, 0.1);
            color: var(--accent-color);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
        }

        .card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .card p {
            color: var(--text-light);
            margin-bottom: 2rem;
            flex-grow: 1;
        }

        .card .btn {
            width: auto;
        }

        /* Individual Page Sections (Simulated as scroll sections) */
        .page-section {
            padding: 6rem 0;
            border-top: 1px solid var(--border-color);
        }

        .page-hero {
            text-align: center;
            margin-bottom: 4rem;
        }

        .page-hero h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        .page-hero p {
            font-size: 1.2rem;
            color: var(--text-light);
            max-width: 800px;
            margin: 0 auto;
        }

        .skills-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 4rem;
        }

        .skill-item {
            background: var(--secondary-bg);
            padding: 1rem 1.5rem;
            border-radius: 8px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .skill-item i {
            color: var(--accent-color);
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 4rem;
        }

        .gallery-item {
            aspect-ratio: 4/3;
            background-color: #eee;
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            cursor: pointer;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.05);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.5rem;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            opacity: 0;
            transition: var(--transition);
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
        }

        .process-section {
            background-color: var(--secondary-bg);
            padding: 3rem;
            border-radius: 12px;
            margin-bottom: 3rem;
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .step {
            position: relative;
        }

        .step-number {
            font-size: 3rem;
            font-weight: 700;
            color: rgba(0, 102, 255, 0.1);
            margin-bottom: 0.5rem;
        }

        .step h4 {
            margin-bottom: 0.5rem;
        }

        .step p {
            font-size: 0.9rem;
            color: var(--text-light);
        }

        /* Contact Section */
        .contact-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .contact-info h3 {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }

        .info-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }

        .info-item i {
            width: 40px;
            height: 40px;
            background-color: rgba(0, 102, 255, 0.1);
            color: var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        form {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-family: inherit;
            transition: var(--transition);
        }

        .form-control:focus {
            outline: none;
            border-color: var(--accent-color);
            box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
        }

        textarea.form-control {
            height: 150px;
            resize: vertical;
        }

        footer {
            background-color: var(--text-color);
            color: white;
            padding: 4rem 0 2rem;
            
        }

        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 3rem;
            flex-wrap: wrap;
            gap: 2rem;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
        }

        .social-links {
            display: flex;
            gap: 1.5rem;
        }

        .social-links a {
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .social-links a:hover {
            background-color: var(--accent-color);
            transform: translateY(-3px);
        }

        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
        }

        /* Responsive Design */

        /* Tablet (768px - 1024px) */
        @media (max-width: 1024px) {
            .hero { height: 60vh; }
            .hero-content h1 { font-size: 3rem; }
            .section-title { font-size: 2.2rem; }
            
            .cards-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.5rem;
            }
            
            .skills-list { grid-template-columns: repeat(2, 1fr); }
            .gallery-grid { grid-template-columns: repeat(2, 1fr); }
            .process-steps { grid-template-columns: repeat(2, 1fr); }
            
            .contact-container {
                grid-template-columns: 1fr;
            }
            form { width: 80%; margin: 0 auto; }
        }

        /* Mobile (< 768px) */
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 80px;
                left: 0;
                width: 100%;
                height: calc(100vh - 80px);
                background-color: white;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 2rem;
                transform: translateX(100%);
                transition: transform 0.3s ease-in-out;
            }

            .nav-links.active {
                transform: translateX(0);
            }

            .hamburger {
                display: block;
            }

            .hero { height: 50vh; }
            .hero-content h1 { font-size: 2.5rem; }
            .hero-content p { font-size: 1rem; }

            .cards-grid {
                grid-template-columns: 1fr;
            }
            
            .card {
                padding: 2rem;
            }

            .card .btn {
                width: 100%;
            }

            .page-hero h2 { font-size: 2rem; }
            .skills-list { grid-template-columns: 1fr; }
            .gallery-grid { grid-template-columns: 1fr; }
            .process-steps { grid-template-columns: 1fr; }
            
            form { width: 100%; padding: 1.5rem; }
            
            .contact-container { gap: 2rem; }
            
            .footer-content {
                flex-direction: column;
                text-align: center;
            }
        }

/* ==========================================================================
   SERVICE PAGES STYLES (Diseño 3D, UX/UI, Motion Graphics, Video Editing)
   ========================================================================== */

/* Service Hero */
.service-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
}

.service-hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
}

/* Service About */
.service-about {
    padding: var(--spacing-xl) 0;
    background: var(--primary-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Service Skills Grid */
.service-skills {
    padding: var(--spacing-xl) 0;
    background: var(--secondary-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    font-weight: 500;
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.skill-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Service Projects Grid */
.service-projects {
    padding: var(--spacing-xl) 0;
    background: var(--primary-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-tag {
    display: inline-block;
    background: rgba(0, 102, 255, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Methodology Section */
.service-methodology {
    padding: var(--spacing-xl) 0;
    background: var(--secondary-bg);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.method-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.method-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 102, 255, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.method-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.method-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.method-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.service-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content h2::after {
    background: rgba(255, 255, 255, 0.3);
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid white;
}

.btn-cta:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* No Projects Message */
.no-projects {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==========================================================================
   RESPONSIVE FOR SERVICE PAGES
   ========================================================================== */

@media screen and (max-width: 968px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .skills-grid,
    .projects-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .method-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 640px) {
    .service-hero {
        min-height: 50vh;
    }
    
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .service-hero p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   SINGLE PROJECT PAGE STYLES
   Based on single-post.html design
   ========================================================================== */

/* Proyecto Hero */
.proyecto-hero {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.proyecto-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2rem;
}

.proyecto-badge {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Breadcrumb */
.breadcrumb-container {
    background: var(--secondary-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--accent-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

/* Proyecto Container */
.proyecto-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Proyecto Header */
.proyecto-header {
    margin-bottom: 3rem;
}

.proyecto-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: center;
}

/* Meta Grid */
.proyecto-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.meta-card {
    background: var(--secondary-bg);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    min-height: 100px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.meta-value {
    display: block;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
}

.meta-value a {
    color: var(--accent-color);
}

/* Content Sections */
.proyecto-intro,
.proyecto-process,
.proyecto-results,
.proyecto-learnings {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: calc(50% - 30px);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.intro-content,
.process-content,
.results-content,
.learnings-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.intro-content p,
.process-content p,
.results-content p,
.learnings-content p {
    margin-bottom: 1.5rem;
}

/* Project Navigation */
.proyecto-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nav-btn i {
    font-size: 1.5rem;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.nav-btn:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

.nav-prev div,
.nav-next div {
    flex: 1;
}

/* CTA Section */
.proyecto-cta {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid white;
}

.cta-btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Related Projects Section */
.related-projects {
    padding: var(--spacing-xl) 0;
    background: var(--secondary-bg);
}

/* ==========================================================================
   RESPONSIVE FOR SINGLE PROJECT
   ========================================================================== */

@media screen and (max-width: 968px) {
    .proyecto-hero {
        height: 35vh;
        min-height: 300px;
    }
    
    .proyecto-title {
        font-size: 2.5rem;
    }
    
    .proyecto-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .proyecto-navigation {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media screen and (max-width: 640px) {
    .proyecto-hero {
        height: 30vh;
        min-height: 250px;
    }
    
    .proyecto-container {
        padding: 2rem 1rem;
    }
    
    .proyecto-title {
        font-size: 2rem;
    }
    
    .proyecto-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .intro-content,
    .process-content,
    .results-content,
    .learnings-content {
        font-size: 1rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

/* ==========================================================================
   HEADER & NAVIGATION - UPDATED
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 10000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

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

.main-navigation ul {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
    position: relative;
}

.main-navigation a {
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation a.current-menu-item,
.main-navigation a.current_page_item {
    color: var(--accent-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current-menu-item::after,
.main-navigation a.current_page_item::after {
    width: 100%;
}

/* Language Switcher - Improved */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher a {
    padding: 0.5rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.language-switcher a .lang-code {
    display: inline-block;
}

.language-switcher a .lang-name {
    display: none;
}

.language-switcher a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.language-switcher a.current-lang {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.language-switcher a.current-lang:hover {
    background-color: var(--accent-color);
    transform: translateY(0);
    cursor: default;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}

.menu-icon span {
    display: block;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active .menu-icon span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==========================================================================
   FOOTER - UPDATED
   ========================================================================== */

.site-footer {
    background-color: #1A1A1A;
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Footer About */
.footer-about .footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-description {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

/* Newsletter */
.footer-newsletter p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
 padding: 0.75rem 1rem !important;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
   color: rgb(48, 48, 48);
    font-family: var(--font-main);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-newsletter {
    padding: 0.75rem 1.25rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-newsletter:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-newsletter i {
    font-size: 1.25rem;
}

/* Footer Social */
.footer-social .social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social .social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    transition: var(--transition);
}

.footer-social .social-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: var(--accent-color);
}

/* ==========================================================================
   RESPONSIVE - HEADER & FOOTER
   ========================================================================== */

@media screen and (max-width: 968px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-right {
        position: relative;
    }
    
    .main-navigation {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        min-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .language-switcher {
        padding: 1rem 2rem;
        border-top: 2px solid var(--border-color);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .site-logo a {
        font-size: 1.25rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-social .social-links {
        justify-content: center;
    }
}

/* ==========================================================================
   PROJECT GALLERY & LAYOUT FIXES
   ========================================================================== */

/* Project Gallery */
.proyecto-gallery {
    margin: 3rem 0;
}

.proyecto-gallery h2 {
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--secondary-bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* WordPress Gallery Support */
.wp-block-gallery,
.blocks-gallery-grid,
.gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 2rem 0 !important;
}

.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .blocks-gallery-item figure,
.gallery .gallery-item {
    margin: 0 !important;
}

.wp-block-gallery img,
.gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Fix Overlapping Text in Project Page */
.proyecto-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

.proyecto-intro,
.proyecto-process,
.proyecto-results,
.proyecto-learnings {
    margin-bottom: 4rem;
    clear: both;
}

.intro-content,
.process-content,
.results-content,
.learnings-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure proper spacing between sections */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 0;
    position: relative;
    padding-bottom: 1rem;
    clear: both;
}

/* Meta Grid - Fix Layout */
.proyecto-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0 3rem;
    padding: 0;
}

.meta-card {
    background: var(--secondary-bg);
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.meta-value {
    display: block;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Project Title - Better Spacing */
.proyecto-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: center;
    word-wrap: break-word;
    padding: 0 1rem;
}

/* Content Images */
.proyecto-container img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}

/* Lists */
.intro-content ul,
.intro-content ol,
.process-content ul,
.process-content ol,
.results-content ul,
.results-content ol,
.learnings-content ul,
.learnings-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.intro-content ul li,
.process-content ul li,
.results-content ul li,
.learnings-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.intro-content ol li,
.process-content ol li,
.results-content ol li,
.learnings-content ol li {
    list-style: decimal;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE - PROJECT PAGE FIXES
   ========================================================================== */

@media screen and (max-width: 968px) {
    .proyecto-title {
        font-size: 2rem;
        padding: 0;
    }
    
    .proyecto-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .meta-card {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .intro-content,
    .process-content,
    .results-content,
    .learnings-content {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 640px) {
    .proyecto-container {
        padding: 2rem 1rem;
    }
    
    .proyecto-title {
        font-size: 1.75rem;
    }
    
    .proyecto-meta-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   BLOG PAGE STYLES
   ========================================================================== */

.blog-hero {
    background: linear-gradient(135deg, #3983b4 0%, #0a1e2c 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
}

.blog-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.blog-grid-section {
    padding: var(--spacing-xl) 0;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-article-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

.tag.blue {
    background: #EAF4FF;
    color: #0056FF;
}

.tag.green {
    background: #E8F7F0;
    color: #00875A;
}

.tag.purple {
    background: #F3EFFF;
    color: #6E40C9;
}

.tag.red {
    background: #FFF0F0;
    color: #D93025;
}

.date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.read-more-btn:hover {
    gap: 0.75rem;
}

.no-posts {
    text-align: center;
    padding: 5rem 2rem;
}

.no-posts h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-posts p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    transition: var(--transition);
}

.blog-pagination a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.blog-pagination .current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ==========================================================================
   404 PAGE STYLES
   ========================================================================== */

.error-404-section {
    padding: 6rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-404-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.error-icon {
    font-size: 6rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.error-404-title {
    font-size: 8rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-404-subtitle {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.error-404-text {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.error-404-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.error-404-search {
    margin-bottom: 3rem;
}

.search-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.search-form-404 {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 0.5rem;
}

.search-field {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    font-family: var(--font-main);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-submit {
    padding: 1rem 1.5rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--accent-hover);
}

.error-404-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.useful-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.useful-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.useful-links a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-hero p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
}

.contact-page-container {
    padding: 4rem 0;
}

.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.sticky-wrapper {
    position: sticky;
    top: 100px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    letter-spacing: 1px;
}

.info-text p {
    font-size: 1.1rem;
    color: var(--text-color);
}

.info-text a {
    color: var(--text-color);
    transition: var(--transition);
}

.info-text a:hover {
    color: var(--accent-color);
}

.social-title {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-color);
}

.social-card:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.social-card i {
    font-size: 1.5rem;
}

.social-card span {
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE - BLOG, 404, CONTACT
   ========================================================================== */

@media screen and (max-width: 968px) {
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .error-404-title {
        font-size: 6rem;
    }
    
    .error-404-subtitle {
        font-size: 2rem;
    }
    
    .error-404-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .useful-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sticky-wrapper {
        position: relative;
        top: 0;
    }
}

@media screen and (max-width: 640px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
    }
    
    .blog-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .error-404-title {
        font-size: 4rem;
    }
    
    .error-404-subtitle {
        font-size: 1.5rem;
    }
    
    .error-404-text {
        font-size: 1rem;
    }
    
    .search-form-404 {
        flex-direction: column;
    }
    
    .search-submit {
        width: 100%;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   MASONRY GALLERY WITH LIGHTBOX
   ========================================================================== */

/* Masonry Gallery Grid */
.proyecto-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 15px;
    margin-top: 2rem;
    min-height: 260px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--secondary-bg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    margin: 0 !important;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay on Hover */
.gallery-item::after {
    /*content: '\eb05'; 
    font-family: 'remixicon';*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-item:hover::before,
.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

/* Hide header when lightbox is active */
body.lightbox-open .site-header {
    z-index: 0;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000000;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000000;
}

/* Disable body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Responsive Masonry */
@media screen and (max-width: 968px) {
    .proyecto-gallery .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 10px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

@media screen and (max-width: 640px) {
    .proyecto-gallery .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   ARCHIVE PROYECTOS STYLES (tipo Blog)
   ========================================================================== */

.archive-hero,
.proyectos-hero {
    background: linear-gradient(135deg, #3983b4 0%, #0a1e2c 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
}

.proyectos-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.proyectos-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.proyectos-grid-section {
    padding: var(--spacing-xl) 0;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Projects Grid */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.proyecto-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.proyecto-card .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proyecto-card .card-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--secondary-bg);
    position: relative;
}

.proyecto-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.proyecto-card:hover .card-image {
    transform: scale(1.05);
}

.proyecto-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.proyecto-card:hover .card-overlay {
    opacity: 1;
}

.proyecto-card .card-overlay i {
    font-size: 3rem;
    color: white;
}

.proyecto-card .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.proyecto-card .card-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cliente-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.cliente-badge i {
    font-size: 1rem;
}

.proyecto-card .card-title {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.card-tools {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-tools i {
    font-size: 1rem;
}

.proyecto-card .card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex: 1;
}

.ver-proyecto-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.ver-proyecto-btn:hover {
    gap: 0.75rem;
}

.no-projects {
    text-align: center;
    padding: 5rem 2rem;
}

.no-projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.no-projects p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.proyectos-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.proyectos-pagination a,
.proyectos-pagination span {
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    transition: var(--transition);
}

.proyectos-pagination a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.proyectos-pagination .current {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ==========================================================================
   RESPONSIVE - ARCHIVE PROYECTOS
   ========================================================================== */

@media screen and (max-width: 968px) {
    .proyectos-hero h1 {
        font-size: 2.5rem;
    }
    
    .proyectos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .category-filter {
        gap: 0.75rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 640px) {
    .proyectos-hero {
        padding: 4rem 0 3rem;
    }
    
    .proyectos-hero h1 {
        font-size: 2rem;
    }
    
    .proyectos-hero p {
        font-size: 1rem;
    }
    
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
    
    .proyecto-card .card-title {
        font-size: 1.25rem;
    }
    
    .category-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* ==========================================================================
   CONTAINER FIX - IMPORTANTE
   ========================================================================== */

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

/* Hero Content Fix */
.blog-hero-content,
.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   SINGLE POST STYLES - DISEÑO PROFESIONAL
   ========================================================================== */

.single-post-hero {
    background: linear-gradient(135deg, #3983b4 0%, #0a1e2c 100%);
    padding: 8rem 0 4rem;
    color: white;
    text-align: center;
    position: relative;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-color));
}

.post-hero-content {
    position: relative;
    z-index: 1;
}

.post-category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.single-post-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.post-meta-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.meta-item i {
    font-size: 1.2rem;
}

/* Post Featured Image */
.post-featured-image {
    margin: -5rem auto 4rem;
    max-width: 1200px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Post Content Container */
.single-post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-color);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-color);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    font-size: 1.25rem;
}

.post-content code {
    background: var(--secondary-bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

/* Post Navigation */
.post-navigation {
    max-width: 1200px;
    margin: 5rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-post-card {
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.nav-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.nav-post-title {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Author Box */
.author-box {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 2rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   SINGLE PROYECTO MEJORADO - TIPO SERVICIO
   ========================================================================== */

/* Stats Grid - Reemplaza meta grid simple */
.proyecto-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    padding: 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, rgba(102, 126, 234, 0.05) 100%);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #764ba2);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.stat-value {
    display: block;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
    line-height: 1.4;
}

.stat-value a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.stat-value a:hover {
    text-decoration: underline;
}

/* Content Sections con diseño mejorado */
.content-section {
    margin: 4rem 0;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.section-title {
    font-size: 2rem;
    margin: 20px auto;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  justify-content: center;
}

.section-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.section-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.section-body ul,
.section-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.section-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.section-body strong {
    color: var(--accent-color);
    font-weight: 600;
}

.section-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
    font-size: 1.2rem;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* ==========================================================================
   RESPONSIVE - SINGLE POST & PROYECTO
   ========================================================================== */

@media screen and (max-width: 968px) {
    .single-post-hero h1 {
        font-size: 2.5rem;
    }
    
    .post-featured-image {
        margin: -3rem auto 3rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .proyecto-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
    }
}

@media screen and (max-width: 640px) {
    .single-post-hero {
        padding: 5rem 0 3rem;
    }
    
    .single-post-hero h1 {
        font-size: 2rem;
    }
    
    .post-meta-hero {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-featured-image {
        margin: -2rem auto 2rem;
    }
    
    .single-post-container {
        padding: 1rem 1rem 3rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .proyecto-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
        margin: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   HOME PAGE - MEJORAS DESPUÉS DE PROYECTOS
   ========================================================================== */

/* Blog Grid Mejorado */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--secondary-bg);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta i {
    font-size: 1rem;
}

.blog-card-content h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-card-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-content h3 a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.blog-card .read-more:hover {
    gap: 0.75rem;
}

.blog-categories {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.category-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--secondary-bg);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.category-badge:hover {
    background: var(--accent-color);
    color: white;
}

/* Services Grid Mejorado */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-top-color: var(--accent-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 5rem 0;
    text-align: center;
    color: white;
    margin-top: 5rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 3rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Alternating */
.section-alt {
    background: var(--secondary-bg);
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;  
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
/* Responsive - Blog & Services */
@media screen and (max-width: 968px) {
    .blog-grid,
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .service-card {
        padding: 2.5rem 1.5rem;
    }
}

@media screen and (max-width: 640px) {
    .blog-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}

/* ============================================================================
   SERVICE GALLERY - MASONRY LAYOUT
   ============================================================================ */

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 20px;
    margin: 3rem 0;
}

.gallery-masonry .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    height: fit-content;
    aspect-ratio: unset !important;
    background: transparent;
}

.gallery-masonry .gallery-item img,
.gallery-masonry .gallery-item .video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

.gallery-masonry .gallery-item .video-thumbnail {
    aspect-ratio: 16 / 9;
    min-height: 200px;
    background-size: cover;
    background-position: center;
}

.gallery-masonry .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-masonry .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    pointer-events: none;
}

.gallery-masonry .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-masonry .gallery-overlay i {
    font-size: 3rem;
    color: white;
    transition: transform 0.3s ease;
}

.gallery-masonry .gallery-item:hover .gallery-overlay i {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}


/* Language Switcher - Polylang Native Output */
.language-switcher ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.language-switcher li {
    margin: 0;
    padding: 0;
}

.language-switcher ul a {
    padding: 0.5rem 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    background: white;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

.language-switcher ul a:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.language-switcher ul li.current-lang a,
.language-switcher ul li.lang-item-first.current-lang a {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.language-switcher ul li.current-lang a:hover {
    background-color: var(--accent-color);
    transform: translateY(0);
    cursor: default;
}

/* ============================================================================
   BACK TO TOP BUTTON
   ============================================================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top i {
    font-size: 1.5rem;
    line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* ============================================================================
   HERO VIDEO BACKGROUND
   ============================================================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background iframe,
.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
        object-fit: cover;
    object-position: center;
}

/* Overlay oscuro sobre el video para mejor legibilidad del texto */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurecer 50% */
    z-index: 1;
}

/* Contenido del hero por encima del video */
.hero-content {
    position: relative;
    z-index: 2;
}

/* Asegurar que el texto se vea bien sobre el video */
.hero:has(.hero-video-background) h1,
.hero:has(.hero-video-background) p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Botón más visible sobre el video */
.hero:has(.hero-video-background) .btn {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero:has(.hero-video-background) .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* Ajustar altura del hero si hay video */
.hero:has(.hero-video-background) {
    min-height: 100vh; /* Pantalla completa */
}

/* Mobile */
@media (max-width: 768px) {
    .hero:has(.hero-video-background) {
        min-height: 70vh; /* Más pequeño en móvil */
    }
    
    .hero-video-overlay {
        background: rgba(0, 0, 0, 0.6); /* Más oscuro en móvil */
    }
}

/* ============================================================================
   CATEGORY FILTER ANIMATIONS
   ============================================================================ */

.proyecto-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

/* ============================================================================
   CONTACT FORM MESSAGES
   ============================================================================ */

.contact-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-message p {
    margin: 0;
}

/* ============================================================================
   NEWSLETTER MESSAGES
   ============================================================================ */

.newsletter-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.newsletter-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ============================================================================
   VIDEO THUMBNAILS IN GALLERY
   ============================================================================ */

.gallery-item[data-type="video"] {
    position: relative;
    cursor: pointer;
}

.gallery-item .video-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-item .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item .video-play-overlay i {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-item[data-type="video"]:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-item[data-type="video"]:hover .video-play-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

/* Lightbox video container */
.lightbox-video {
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video iframe,
.lightbox-video video {
    width: 100%;
    height: 80vh;
    max-width: 1200px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .lightbox-video iframe,
    .lightbox-video video {
        height: 60vh;
    }
    
    .gallery-item .video-play-overlay i {
        font-size: 3rem;
    }
}

/* ============================================================================
   SERVICE HERO WITH VIDEO BACKGROUND
   ============================================================================ */

.service-hero {
    position: relative;
}

.service-hero .hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.service-hero .hero-video-background iframe,
.service-hero .hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.service-hero .hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.service-hero:has(.hero-video-background) .hero-content {
    position: relative;
    z-index: 2;
}

.service-hero:has(.hero-video-background) h1,
.service-hero:has(.hero-video-background) p {
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .service-hero .hero-video-background iframe,
    .service-hero .hero-video-background video {
        min-width: 300%;
        width: 300%;
    }
}

/* ============================================================================
   VIDEO THUMBNAILS IN MASONRY GALLERY
   ============================================================================ */

.gallery-masonry .gallery-item .video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 12px;
}

.gallery-masonry .gallery-item .video-play-overlay i {
    font-size: 5rem;
    color: white;
    opacity: 0.9;
    transition: var(--transition);
}

.gallery-masonry .gallery-item:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-masonry .gallery-item:hover .video-play-overlay i {
    transform: scale(1.2);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-masonry .gallery-item .video-play-overlay i {
        font-size: 3rem;
    }
}

/* ============================================================================
   GALLERY MASONRY - LINK FIX
   ============================================================================ */

.gallery-masonry .gallery-item > a {
    display: block;
    width: 100%;
    line-height: 0;
}

.gallery-masonry .gallery-item > a img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* ============================================================================
   ABOUT PAGE STYLES
   ============================================================================ */

/* About Hero */
.about-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #667eea;
}

.about-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

.about-hero-image {
    position: relative;
}

.about-photo {
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-left: auto;
    display: block;
}

/* Stats Section */
.about-stats {
    padding: 4rem 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Bio Content */
.about-bio {
    padding: 4rem 0;
}

.bio-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.bio-content p {
    margin-bottom: 1.5rem;
}

/* Skills Section */
.about-skills {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.skill-icon {
    min-width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon i {
    font-size: 2.5rem;
    color: white;
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Timeline Section */
.about-timeline {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 45%;
}

.timeline-left {
    margin-right: auto;
    text-align: right;
}

.timeline-right {
    margin-left: auto;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-left .timeline-content::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.timeline-right .timeline-content::after {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-right: 15px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.timeline-desc {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.about-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn i {
    font-size: 1.25rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .about-hero-content,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-photo {
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        text-align: left !important;
    }
    
    .timeline-left .timeline-content::after,
    .timeline-right .timeline-content::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        justify-content: center;
    }
}

/* ============================================================================
   SERVICES OVERVIEW PAGE
   ============================================================================ */

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 6rem 0 4rem;
    text-align: center;
}

.services-hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.services-hero .hero-subtitle {
    font-size: 1.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  color: var(--secondary-bg);
}

/* Services Intro */
.services-intro {
    padding: 4rem 0;
    background: white;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    text-align: center;
}

/* Services Grid Section */
.services-grid-section {
    padding: 4rem 0;
    background: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-overlay i {
    font-size: 3rem;
    color: white;
}

.service-card-content {
    padding: 2rem;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: var(--transition);
}

.service-card-title a:hover {
    color: var(--primary-color);
}

.service-card-subtitle,
.service-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-card-link:hover {
    gap: 0.75rem;
}

.service-card-link i {
    font-size: 1.25rem;
}

.no-services {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    padding: 3rem;
}

/* Services CTA */
.services-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.services-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-cta h2 {
        font-size: 2rem;
    }
}

/* ============================================================================
   NAVIGATION DROPDOWN IMPROVEMENTS
   ============================================================================ */

/* Desktop Dropdown */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-navigation li:hover > ul {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
    padding: 0;
    position: relative;
}

.main-navigation ul ul a {
    padding: 0.75rem 1.5rem;
    display: block;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.main-navigation ul ul a:hover {
    background: rgba(102, 126, 234, 0.05);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
}

/* Parent menu item indicator */
.main-navigation .menu-item-has-children > a::after {
    content: '\ea4e';
    font-family: 'remixicon';
    margin-left: 0.35rem;
    font-size: 0.85rem;
    transition: var(--transition);
}

.main-navigation .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Mobile Dropdown */
@media (max-width: 768px) {
    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 0;
        padding: 0;
        transform: none;
        min-width: auto;
    }
    
    .main-navigation ul ul a {
        padding-left: 2rem;
        font-size: 0.9rem;
    }
    
    .main-navigation ul ul a:hover {
        padding-left: 2.25rem;
    }
    
    /* Toggle submenu on mobile */
    .main-navigation .menu-item-has-children > a::after {
        float: right;
    }
}
