/* =====================================================
   MÓDULO PROYECTOS CASA GREEN
   🔒 TOTALMENTE ENCAPSULADO
   No afecta ningún otro PHP
===================================================== */

/* ===============================
   CONTENEDOR GENERAL
=============================== */

section.cg-proyectos{
    padding:110px 6%;
    background:#fff;
}

section.cg-proyectos .cg-container{
    max-width:1400px;
    margin:auto;
}


/* ===============================
   TÍTULO PRINCIPAL
=============================== */

section.cg-proyectos .cg-titulo{
    text-align:center;
    font-size:38px; /* PC */
    font-weight:800;
    color:#0f5132;
    margin-bottom:50px;
}


/* ===============================
   BUSCADOR
=============================== */

section.cg-proyectos .cg-buscador{
    display:flex;
    gap:18px;
    justify-content:center;
    flex-wrap:wrap;
    margin-bottom:70px;
}

section.cg-proyectos .cg-buscador input{
    width:360px; /* puedes aumentar aquí */
    padding:16px 20px;
    border-radius:12px;
    border:1px solid #ddd;
    font-size:14px;
}

section.cg-proyectos .cg-buscador select{
    padding:16px 20px;
    border-radius:12px;
    border:1px solid #ddd;
    min-width:200px;
}

section.cg-proyectos .cg-btn-filtrar{
    background:#0f5132;
    color:#fff;
    border:none;
    padding:16px 28px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

section.cg-proyectos .cg-btn-reset{
    background:#6b7280;
    color:#fff;
    padding:16px 28px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
}


/* ===============================
   SLIDER
=============================== */

section.cg-proyectos .cg-slider-wrapper{
    position:relative;
}

section.cg-proyectos .cg-slider{
    display:flex;
    gap:35px;
    overflow-x:auto;
    scroll-behavior:smooth;
}

section.cg-proyectos .cg-slider::-webkit-scrollbar{
    display:none;
}


/* ===============================
   CARD
=============================== */

section.cg-proyectos .cg-card{
    flex:0 0 calc(33.333% - 25px); /* 3 en PC */
    background:#fff;
    border-radius:22px;
    box-shadow:0 18px 50px rgba(0,0,0,.08);
    overflow:hidden;
    transition:.3s ease;
    border:1px solid #eee;
}

section.cg-proyectos .cg-card:hover{
    transform:translateY(-8px);
    box-shadow:0 30px 70px rgba(0,0,0,.15);
}


/* ===============================
   IMAGEN
=============================== */

section.cg-proyectos .cg-img{
    position:relative;
    height:240px;
    overflow:hidden;
}

section.cg-proyectos .cg-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}


/* ===============================
   ESTADO
=============================== */

section.cg-proyectos .cg-estado{
    position:absolute;
    top:18px;
    left:18px;
    color:#fff;
    padding:7px 16px;
    border-radius:25px;
    font-size:12px;
    font-weight:700;
}


/* ===============================
   CONTENIDO
=============================== */

section.cg-proyectos .cg-body{
    padding:28px;
}

section.cg-proyectos .cg-fecha{
    font-size:12px;
    color:#9ca3af;
    margin-bottom:12px;
}

section.cg-proyectos .cg-etiquetas{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:15px;
}

section.cg-proyectos .cg-etiquetas span{
    color:#fff;
    padding:6px 14px;
    border-radius:25px;
    font-size:11px;
    font-weight:600;
}

section.cg-proyectos .cg-ubicacion{
    font-size:14px;
    color:#6b7280;
    margin-bottom:18px;
}


/* ===============================
   PRECIO
=============================== */

section.cg-proyectos .cg-precio{
    margin-bottom:20px;
}

section.cg-proyectos .cg-precio span{
    display:block;
    font-size:11px;
    color:#6b7280;
    text-transform:uppercase;
    letter-spacing:.6px;
}

/* PRECIO PRINCIPAL */
section.cg-proyectos .cg-precio strong{
    font-size:18px; /* un poco más pequeño */
    font-weight:800;
    color:#0f5132;
}


/* ===============================
   INFO
=============================== */

section.cg-proyectos .cg-info{
    font-size:14px;
    color:#374151;
    margin-bottom:25px;
}


/* ===============================
   BOTÓN
=============================== */

section.cg-proyectos .cg-btn-ver{
    display:block;
    text-align:center;
    background:#0f5132;
    color:#fff;
    padding:14px;
    border-radius:12px;
    text-decoration:none;
    font-weight:600;
}


/* ===============================
   FLECHAS
=============================== */

section.cg-proyectos .cg-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#0f5132;
    color:#fff;
    cursor:pointer;
    z-index:10;
}

section.cg-proyectos .cg-prev{ left:-30px; }
section.cg-proyectos .cg-next{ right:-30px; }


/* =====================================================
   TABLET (2 columnas reales)
===================================================== */

@media(max-width:992px){

    section.cg-proyectos .cg-card{
        flex:0 0 calc(50% - 25px);
    }

}


/* =====================================================
   CELULAR REAL (no tablet grande)
===================================================== */

@media(max-width:576px){

    section.cg-proyectos .cg-card{
        flex:0 0 100%;
    }

    section.cg-proyectos .cg-img{
        height:210px;
    }

    section.cg-proyectos .cg-precio strong{
        font-size:20px;
    }

    section.cg-proyectos .cg-nav{
        display:none;
    }

}


/* =====================================================
   CELULAR PEQUEÑO
===================================================== */

@media(max-width:420px){

    section.cg-proyectos .cg-precio strong{
        font-size:18px;
    }

    section.cg-proyectos .cg-titulo{
        font-size:26px;
    }

}