/* =====================================================
   SECCIÓN PROYECTOS
===================================================== */

.proyectos-section {
    position: relative;
    padding: 110px 7%;
    background-image: url("../recurses/fondo-proyectos.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.proyectos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 18, 0.86);
}

.proyectos-container {
    position: relative;
    z-index: 2;
    max-width: 1250px;
    margin: auto;
}


/* TITULO */

.proyectos-heading {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: white;
}

.proyectos-heading > span {
    display: inline-block;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 12px;
    opacity: .8;
}

.proyectos-heading h2 {
    margin: 0;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    font-weight: 500;
}

.proyectos-heading h2 strong {
    font-weight: 700;
}

.proyectos-heading p {
    margin: 25px auto 0;
    max-width: 720px;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,.78);
}


/* LISTA */

.proyectos-lista {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* TARJETA */

.proyecto-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 280px;
    background: rgba(255,255,255,.97);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transition: transform .3s ease, box-shadow .3s ease;
}

.proyecto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}


/* INFORMACIÓN */

.proyecto-info {
    padding: 45px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.proyecto-info h3 {
    margin: 12px 0 12px;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 38px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
    color: #171717;
}

.proyecto-estado {
    width: fit-content;
    padding: 7px 13px;
    border-radius: 30px;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.estado-construccion {
    background: #fff2d6;
    color: #9a6500;
}

.estado-terminado {
    background: #e1f4e8;
    color: #247044;
}

.proyecto-ubicacion {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.proyecto-resumen {
    margin: 0;
    max-width: 650px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}


/* IMAGEN */

.proyecto-imagen {
    min-height: 280px;
    overflow: hidden;
    background: #ddd;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.proyecto-card:hover .proyecto-imagen img {
    transform: scale(1.06);
}

.proyecto-sin-imagen {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
}


/* SIN PROYECTOS */

.proyectos-vacio {
    padding: 60px 30px;
    background: rgba(255,255,255,.95);
    text-align: center;
}

.proyectos-vacio h3 {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 34px;
    margin: 0 0 10px;
}

.proyectos-vacio p {
    font-family: "Montserrat", sans-serif;
    color: #666;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .proyectos-section {
        padding: 80px 5%;
    }

    .proyecto-card {
        grid-template-columns: 1fr;
    }

    .proyecto-imagen {
        order: -1;
        min-height: 300px;
    }

    .proyecto-imagen img {
        min-height: 300px;
    }

    .proyecto-info {
        padding: 35px;
    }

}


@media (max-width: 600px) {

    .proyectos-heading h2 {
        font-size: 48px;
    }

    .proyecto-info {
        padding: 28px 24px;
    }

    .proyecto-info h3 {
        font-size: 32px;
    }

    .proyecto-imagen,
    .proyecto-imagen img {
        min-height: 240px;
    }

}