/* =========================================================
   ==== CARDS ====
   ========================================================= */

.grid-proyectos {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 24px 0;
}

.card-proyecto {
    width: 303px;
    height: 556px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-img {
    margin: 24px 16px 0 16px;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.card-body {
    padding: 16px 16px 0 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 1rem;
    color: #112244;
    margin-bottom: 8px;
    line-height: 1.2;
}

.card-body p {
    font-size: 0.9rem;
    color: #2a2a2a;
    margin-bottom: 4px;
    line-height: 1.4;
}

.card-body .descripcion-limitada {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   ==== RESPONSIVE ====
   ========================================================= */

@media (max-width: 1024px) {
    .card-proyecto {
        width: 47%;
    }
}

@media (max-width: 768px) {
    .card-proyecto {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .card-img {
        height: auto;
    }

    .card-img img {
        height: auto;
    }
}
