/* Proyectos listing — page-scoped, doesn't touch style.css/custom.css (other pages
   depend on .project/.project-grid/.overlay classes as they already are). */
.proyectos-hero {
    padding: 160px 0 64px;
    text-align: center;
}

.proyectos-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.proyectos-hero__subtitle {
    font-size: 1.0625rem;
    color: #6b6b6b;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}

.proyectos-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    margin: 48px auto 0;
    padding-top: 40px;
    border-top: 1px solid rgba(19, 19, 19, 0.1);
    text-align: left;
}

.proyectos-hero__trust-stat {
    font-size: clamp(3rem, 7vw, 4.5rem);
    font-weight: 900;
    color: #FE5900;
    line-height: 1;
    letter-spacing: -0.05em;
    flex-shrink: 0;
}

.proyectos-hero__trust-body {
    border-left: 2px solid rgba(254, 89, 0, 0.25);
    padding-left: 22px;
    max-width: 210px;
    font-size: 1rem;
    color: #131313;
    line-height: 1.45;
}

.proyectos-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 56px;
    padding: 0 20px;
}

.proyectos-filter__pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid rgba(19, 19, 19, 0.15);
    font-size: 0.875rem;
    font-weight: 600;
    color: #131313;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.proyectos-filter__pill:hover {
    border-color: #FE5900;
    color: #FE5900;
    text-decoration: none;
}

.proyectos-filter__pill.active {
    background-color: #FE5900;
    border-color: #FE5900;
    color: #fff;
}

.proyectos-grid {
    display: grid;
    /* auto-fit (not auto-fill): empty column tracks collapse instead of reserving
       1fr-stretched space, so justify-content can center whatever cards actually exist --
       applies to a short filtered set (< 4 total) and to an incomplete last row alike. */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    justify-content: center;
    gap: 32px;
    padding: 0 20px 96px;
    max-width: 1440px;
    margin: 0 auto;
}

.proyectos-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}

.proyectos-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.proyectos-card__figure {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #ececec;
}

.proyectos-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proyectos-card:hover .proyectos-card__img {
    transform: scale(1.06);
}

.proyectos-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0) 65%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}


.proyectos-card__category {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    margin-bottom: 12px;
    background-color: #FE5900;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.proyectos-card__title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}


.proyectos-empty {
    text-align: center;
    padding: 64px 20px;
    color: #6b6b6b;
}

@media (max-width: 767px) {
    .proyectos-hero {
        padding: 120px 0 40px;
    }

    .proyectos-hero__title {
        font-size: 2.25rem;
    }

    .proyectos-hero__trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 32px;
        margin-top: 36px;
    }

    .proyectos-hero__trust-stat {
        font-size: 3.5rem;
    }

    .proyectos-hero__trust-body {
        max-width: 280px;
    }

    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
