/* ================================
   ESTILOS ESPECÍFICOS DE PROYECTOS.HTML
   ================================ */

/* ================================
   FILTROS DE PROYECTOS
   ================================ */
.filter-section {
    position: relative;
    padding: 2rem 0;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: rgba(255, 122, 42, 0.1);
    border-color: rgba(255, 122, 42, 0.3);
    color: #ff7a2a;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff7a2a 0%, #ff6a00 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 122, 42, 0.4);
}

/* ================================
   GALERÍA DE PROYECTOS
   ================================ */
.projects-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .projects-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.project-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #0a0a0a;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-wrapper:hover {
    box-shadow: 0 20px 40px rgba(255, 122, 42, 0.3);
    transform: translateY(-10px);
}

.project-img-gallery {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.project-img-gallery.object-top {
    object-position: top;
}

.project-image-wrapper:hover .project-img-gallery {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.project-overlay-gallery {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 80%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-image-wrapper:hover .project-overlay-gallery {
    opacity: 1;
}

.project-info-gallery {
    width: 100%;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-wrapper:hover .project-info-gallery {
    transform: translateY(0);
}

.project-title-gallery {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-tags-gallery {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tag-gallery {
    background: rgba(255, 122, 42, 0.2);
    color: #ff7a2a;
    padding: 0.4rem 0.9rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 122, 42, 0.4);
}

.project-desc-gallery {
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* ================================
   CTA SECTION
   ================================ */
.cta-section {
    position: relative;
    padding: 4rem 2rem;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #ff7a2a,
        transparent
    );
}

.cta-section::before {
    left: 10%;
    animation: line-glow 3s ease-in-out infinite;
}

.cta-section::after {
    right: 10%;
    animation: line-glow 3s ease-in-out infinite reverse;
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 10px rgba(255, 122, 42, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(255, 122, 42, 0.8);
    }
}

.cta-section h2,
.cta-section p,
.cta-section a {
    position: relative;
    z-index: 1;
}

/* ================================
   ANIMACIONES
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }
.project-item:nth-child(7) { animation-delay: 0.7s; }

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .projects-gallery {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .project-image-wrapper {
        height: 350px;
    }

    .project-title-gallery {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
    .project-image-wrapper {
        height: 300px;
    }

    .project-info-gallery {
        padding: 0.5rem;
    }

    .project-title-gallery {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .project-desc-gallery {
        font-size: 0.9rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }
}
