/* gallery-showcase.css */
/* Last updated: 2025-02-07 21:48:57 by Yurena16 */

:root {
    --filter-height: 60px;
    --card-width: 400px;
    --card-height: 500px;
    --modal-width: 90%;
    --timeline-color: var(--secondary-color);
    --stat-bg: rgba(255, 255, 255, 0.1);
}

/* Hero Section con Parallax */
.gallery-hero {
    height: 40vh;
    position: relative;
    background: url('../img/hero-bg.jpg') center/cover fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.7)
    );
    z-index: 1;
}

/* Filtros Minimalistas */
.filters-section {
    padding: 2rem 0;
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1rem;
}

.filter-btn {
    min-width: 150px;
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 8px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.filter-btn.active {
    color: var(--text-light);
    background: var(--primary-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filter-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Showcase 3D */
.projects-showcase {
    padding: 8rem 100px; /* Incrementar el padding superior para evitar solapamiento */
    background: var(--bg-light);
    position: relative;
}

.category-showcase {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    position: absolute;
}

.category-showcase.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Navegación del Showcase */
.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.nav-btn i {
    color: white;
    font-size: 24px;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Tarjetas de Proyecto */
.project-card {
    width: var(--card-width);
    height: var(--card-height);
    position: relative;
    perspective: 1000px;
    overflow: hidden; /* Asegura que el contenido no sobrepase la tarjeta */
}

.project-preview {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    overflow: hidden;
    border-radius: 12px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3),
        rgba(0, 0, 0, 0.8)
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.project-info {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.view-project-btn {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-project-btn:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* Hover Effects */
.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

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

/* Modal Detallado */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    width: var(--modal-width);
    max-width: 1400px;
    margin: 2rem auto;
    background: var(--bg-light);
    border-radius: 12px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contenido del Proyecto */
.project-header {
    padding: 3rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 12px 12px 0 0;
}

.project-meta {
    max-width: 800px;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-content {
    padding: 3rem;
}

/* Galería del Proyecto */
.project-gallery {
    margin: 2rem 0;
}

.gallery-main {
    margin-bottom: 1rem;
}

.gallery-top {
    height: 400px;
}

.gallery-thumbs {
    height: 100px;
}

/* Timeline del Proceso */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.timeline-content {
    flex: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --card-width: 350px;
        --card-height: 450px;
    }

    .projects-showcase {
        padding: 8rem 60px; /* Incrementar el padding superior para evitar solapamiento */
    }
}

@media (max-width: 768px) {
    .filter-btn {
        min-width: auto;
        padding: 0.8rem;
    }

    .filter-text {
        display: none;
    }

    .filter-icon {
        margin-right: 0;
        font-size: 1.4rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .nav-btn i {
        font-size: 18px;
    }

    .projects-showcase {
        padding: 8rem 40px; /* Incrementar el padding superior para evitar solapamiento */
    }

    .project-header {
        padding: 2rem;
    }

    .project-content {
        padding: 2rem;
    }

    .gallery-top {
        height: 300px;
    }

    .projects-swiper {
        touch-action: pan-y; /* Permitir que solo las imágenes se muevan lateralmente */
    }
}

@media (max-width: 480px) {
    :root {
        --card-width: 280px;
        --card-height: 380px;
        --modal-width: 95%;
    }

    .projects-showcase {
        padding: 8rem 30px; /* Incrementar el padding superior para evitar solapamiento */
    }

    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
    }

    .nav-btn i {
        font-size: 16px;
    }

    .projects-swiper {
        touch-action: pan-y; /* Permitir que solo las imágenes se muevan lateralmente */
    }
}