/* HERO */
.projects-hero {
    position: relative;
    min-height: 430px;
    background-image: url("../assets/img/cta-bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.projects-overlay {
    position: absolute;
    inset: 0;
    background: rgba(36, 54, 66, 0.84);
    z-index: 1;
}

.projects-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.projects-hero-content span {
    display: block;
    color: var(--bege);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
}

.projects-hero-content h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 18px;
}

.projects-hero-content p {
    color: var(--bege-claro);
    font-size: 17px;
}

/* GALERIA */
.projects-gallery-section {
    background: #ffffff;
    padding: 95px 0;
}

.projects-title {
    text-align: center;
    margin-bottom: 55px;
}

.projects-title h2 {
    color: var(--azul);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
    font-weight: 800;
    margin-top: 14px;
}

/* GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #e9e6dd;
}

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

.project-item:hover img {
    transform: scale(1.06);
}

.project-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-item.wide {
    grid-column: span 2;
}

.project-item.tall {
    grid-row: span 2;
}

.project-item {
    cursor: pointer;
}

/* LIGHTBOX */
.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(36, 54, 66, 0.88);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    background: #ffffff;
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 38px;
    color: #ffffff;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--bege);
}

/* RESPONSIVO */
@media (max-width: 1000px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .projects-gallery-section {
        padding: 70px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }

    .project-item.large,
    .project-item.wide,
    .project-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}