 :root {
            --color-dorado: #d4af37;
            --color-dorado-claro: #f7ef8a;
            --color-negro: #191919;
            --color-blanco: #ffffff;
            --color-gris: #f5f5f5;
            --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
            --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Montserrat', sans-serif;
        }

        body {
            background-color: var(--color-gris);
            color: var(--color-negro);
            line-height: 1.6;
            overflow-x: hidden;
            padding-top: 80px;
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 15px 20px;
            transition: var(--transition);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(25, 25, 25, 0.95);
        }

        header.scrolled {
            background: rgba(25, 25, 25, 0.98);
            padding: 12px 20px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            z-index: 1002;
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-size: 50px;
            letter-spacing: 1px;
            color: var(--color-blanco);
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            object-fit: contain;
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-menu li {
            margin: 0 12px;
        }

        .nav-menu a {
            color: var(--color-blanco);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            letter-spacing: 0.5px;
        }

        .nav-menu a:after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            background: var(--color-dorado);
            bottom: -5px;
            left: 0;
            transition: width 0.3s ease;
        }

        .nav-menu a:hover:after {
            width: 100%;
        }

        .mobile-toggle {
            display: none;
            color: var(--color-blanco);
            font-size: 24px;
            cursor: pointer;
            z-index: 1002;
        }

        /* Hero Section */
        .projects-hero {
            background: linear-gradient(135deg, var(--color-negro) 0%, #2d2d2d 100%);
            padding: 140px 20px 40px;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-top: -80px;
        }

        .hero-content {
            max-width: 800px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .hero-title {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--color-blanco);
            line-height: 1.2;
            font-family: 'Playfair Display', serif;
            opacity: 0;
            transform: translateY(30px);
        }

        .hero-subtitle {
            font-size: 16px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 30px;
            opacity: 0;
            transform: translateY(30px);
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            gap: 30px;
            flex-wrap: wrap;
            margin-top: 40px;
        }

        .stat-item {
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
        }

        .stat-number {
            font-size: 32px;
            font-weight: 700;
            color: var(--color-dorado);
            display: block;
            font-family: 'Playfair Display', serif;
        }

        .stat-label {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.7);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

 

        .filters-container {
             padding: 20px 20px 40px 20px;
            background: var(--color-gris);
            border-bottom: 1px solid #eee;
            max-width: 1200px;
            margin: 0 auto;
        }

        .category-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .filter-btn {
            padding: 8px 16px;
            background: var(--color-gris);
            border: none;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 500;
            font-size: 14px;
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--color-dorado);
            color: var(--color-negro);
        }

        /* Carrusel de proyectos destacados */
        .featured-projects {
            padding: 60px 20px;
            background: var(--color-blanco);
        }

        .section-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-pre-title {
            font-size: 14px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--color-dorado);
            margin-bottom: 12px;
            font-weight: 600;
        }

        .section-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--color-negro);
            line-height: 1.2;
            font-family: 'Playfair Display', serif;
        }

        .section-subtitle {
            font-size: 16px;
            line-height: 1.6;
            color: #666;
            max-width: 700px;
            margin: 0 auto;
        }

        .featured-carousel {
            position: relative;
            max-width: 1200px;
            margin: 0 auto;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: var(--shadow-medium);
        }

        .carousel-track {
            display: flex;
            transition: transform 0.5s ease;
        }

        .carousel-slide {
            flex: 0 0 100%;
            position: relative;
            height: 400px;
        }

        .carousel-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .carousel-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: var(--color-blanco);
            padding: 30px;
            transform: translateY(20px);
            opacity: 0;
            transition: var(--transition);
        }

        .carousel-slide.active .carousel-content {
            transform: translateY(0);
            opacity: 1;
        }

        .carousel-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 10px;
            font-family: 'Playfair Display', serif;
        }

        .carousel-category {
            display: inline-block;
            background: var(--color-dorado);
            color: var(--color-negro);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .carousel-description {
            font-size: 15px;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .carousel-link {
            display: inline-flex;
            align-items: center;
            color: var(--color-dorado);
            text-decoration: none;
            font-weight: 600;
            gap: 8px;
            transition: var(--transition);
            cursor: pointer;
        }

        .carousel-link:hover {
            gap: 12px;
        }

        .carousel-controls {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
            z-index: 10;
        }

        .carousel-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: var(--transition);
        }

        .carousel-dot.active {
            background: var(--color-dorado);
            transform: scale(1.2);
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            z-index: 10;
            opacity: 0;
        }

        .featured-carousel:hover .carousel-nav {
            opacity: 1;
        }

        .carousel-nav.prev {
            left: 15px;
        }

        .carousel-nav.next {
            right: 15px;
        }

        .carousel-nav:hover {
            background: var(--color-dorado);
            color: var(--color-negro);
        }

        /* Grid de proyectos */
        .projects-grid-section {
            padding: 60px 20px;
            background: var(--color-gris);
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .project-card {
            background: var(--color-blanco);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-soft);
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
            cursor: pointer;
        }

        .project-card.animate {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-medium);
        }

        .project-image {
            position: relative;
            height: 200px;
            overflow: hidden;
        }

        .project-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .project-card:hover .project-img {
            transform: scale(1.05);
        }

        .project-category {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--color-dorado);
            color: var(--color-negro);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

        .project-content {
            padding: 20px;
        }

        .project-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--color-negro);
            font-family: 'Playfair Display', serif;
        }

        .project-description {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .project-meta {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #888;
            margin-bottom: 15px;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            color: var(--color-dorado);
            text-decoration: none;
            font-weight: 600;
            gap: 8px;
            transition: var(--transition);
            cursor: pointer;
        }

        .project-link:hover {
            gap: 12px;
        }

        /* Load More */
        .load-more-section {
            text-align: center;
            padding: 40px 20px;
        }

        .load-more-btn {
            background: var(--color-negro);
            color: var(--color-blanco);
            border: none;
            border-radius: 30px;
            padding: 12px 30px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .load-more-btn:hover {
            background: var(--color-dorado);
            color: var(--color-negro);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        /* Modal de proyecto */
        .project-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            padding: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .project-modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-container {
            background: var(--color-blanco);
            border-radius: 16px;
            width: 100%;
            max-width: 1200px;
            max-height: 90vh;
            overflow: hidden;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        .project-modal.active .modal-container {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 28px;
            color: var(--color-negro);
            background: var(--color-blanco);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: var(--transition);
            box-shadow: var(--shadow-soft);
        }

        .modal-close:hover {
            background: var(--color-dorado);
            transform: rotate(90deg);
        }

        .modal-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            height: 100%;
            max-height: 80vh;
        }

        /* Carrusel del modal */
        .modal-carousel {
            position: relative;
            overflow: hidden;
            background: var(--color-negro);
        }

        .modal-carousel-track {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease;
        }

        .modal-carousel-slide {
            flex: 0 0 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-carousel-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .modal-carousel-controls {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            transform: translateY(-50%);
            pointer-events: none;
        }

        .modal-carousel-prev,
        .modal-carousel-next {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            pointer-events: all;
            color: var(--color-negro);
        }

        .modal-carousel-prev:hover,
        .modal-carousel-next:hover {
            background: var(--color-dorado);
            transform: scale(1.1);
        }

        .modal-carousel-dots {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
        }

        .modal-carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: var(--transition);
        }

        .modal-carousel-dot.active {
            background: var(--color-dorado);
            transform: scale(1.2);
        }

        /* Información del modal */
        .modal-info {
            padding: 40px;
            overflow-y: auto;
        }

        .modal-header {
            margin-bottom: 30px;
        }

        .modal-category {
            display: inline-block;
            background: var(--color-dorado);
            color: var(--color-negro);
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .modal-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--color-negro);
            line-height: 1.3;
            font-family: 'Playfair Display', serif;
        }

        .modal-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 30px;
            padding: 20px 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }

        .detail-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #666;
        }

        .detail-item i {
            color: var(--color-dorado);
            width: 16px;
        }

        .modal-description h3 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--color-negro);
            font-family: 'Playfair Display', serif;
        }

        .modal-description p {
            line-height: 1.7;
            color: #666;
        }

        /* Footer */
        .projects-footer {
            background: var(--color-negro);
            color: var(--color-blanco);
            padding: 40px 20px;
            text-align: center;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }
        /* Loader */
.loader-container {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    flex-direction: column;
    gap: 20px;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-gris);
    border-top: 3px solid var(--color-dorado);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: #666;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Manejo de errores */
.error-container {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.error-message {
    background: var(--color-blanco);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    max-width: 500px;
    margin: 0 auto;
}

.error-message i {
    font-size: 48px;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.error-message h3 {
    color: var(--color-negro);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.error-message p {
    color: #666;
    margin-bottom: 25px;
}

.retry-btn {
    background: var(--color-negro);
    color: var(--color-blanco);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.retry-btn:hover {
    background: var(--color-dorado);
    color: var(--color-negro);
}

/* Estados para lazy loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Estados vacíos */
.no-projects-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #666;
}

.no-projects-carousel i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.no-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
}

.no-images i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.5);
}

        /* Responsive */
        @media (max-width: 991px) {
            .nav-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 100%;
                height: 100vh;
                background: rgba(25, 25, 25, 0.98);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                padding: 80px 20px;
                transition: all 0.5s ease;
                z-index: 1001;
            }
            
            .nav-menu.active {
                right: 0;
            }
            
            .nav-menu li {
                margin: 20px 0;
            }
            
            .nav-menu a {
                font-size: 20px;
            }
            
            .mobile-toggle {
                display: block;
            }

            .hero-stats {
                gap: 20px;
            }

            .stat-item {
                flex: 1;
                min-width: 120px;
            }

            .carousel-nav {
                opacity: 1;
                background: rgba(255, 255, 255, 0.7);
            }

            /* Ocultar texto en carrusel para móviles */
            @media (max-width: 767px) {
                .carousel-content {
                    display: none;
                }
            }

            .modal-content {
                grid-template-columns: 1fr;
                max-height: 95vh;
            }

            .modal-carousel {
                height: 300px;
            }
        }

        @media (max-width: 767px) {
            .projects-grid {
                grid-template-columns: 1fr;
            }

            .carousel-slide {
                height: 350px;
            }

            .hero-title {
                font-size: 28px;
            }

            .modal-info {
                padding: 25px;
            }

            .modal-details {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 575px) {
            .hero-title {
                font-size: 24px;
            }

            .section-title {
                font-size: 24px;
            }

            .carousel-slide {
                height: 300px;
            }

            .carousel-title {
                font-size: 20px;
            }

            .category-filters {
                justify-content: flex-start;
                overflow-x: auto;
                padding-bottom: 10px;
            }
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeInUp 0.8s ease forwards;
        }