/* Proyectos Page - Gallery */
body {
    background-color: #ffffff;
    color: var(--text-main);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.clients-header {
    margin-top: 6rem;
    margin-bottom: 4rem;
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #fee2e2;
    background-color: #fef2f2;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.clients-header h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.clients-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.gallery-grid .img-frame {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-grid .img-frame img {
    transition: transform 0.4s ease;
}

.gallery-grid .img-frame {
    cursor: pointer;
    position: relative;
}

.gallery-grid .img-frame::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: calc(-10px + 1rem);
    bottom: calc(-10px + 1rem);
    background: rgba(0,0,0,0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E") center center no-repeat;
    background-size: 40px;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    pointer-events: none;
}

.gallery-grid .img-frame:hover::after {
    background-color: rgba(0,0,0,0.4);
    opacity: 1;
}

.gallery-grid .img-frame:hover img {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .clients-header h1 {
        font-size: 2.5rem;
    }
}
