/* ========================================
   BANNER RESPONSIVE REAL (SIN RECORTE)
======================================== */

.banner-container {
    width: 100%;
    overflow: hidden;
}

.banner {
    width: 100%;
    height: auto; /* mantiene proporción real */
    display: block;
}


/* ========================================
   SECCIÓN
======================================== */

.proyectos-section {
    padding: 60px 8%;
    background-color: #f5f6f8;
}

.container-proyectos {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}


/* ========================================
   GRID
======================================== */

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Tablet y móvil */
@media (max-width: 900px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* ========================================
   TARJETAS
======================================== */

.proyecto-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.proyecto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* Imagen */

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .card-image img {
    transform: scale(1.04);
}

/* Contenido */

.card-content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.97rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
    flex: 1;
}

.btn-ver-mas {
    display: inline-block;
    color: #dc2626;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.btn-ver-mas:hover {
    color: #991b1b;
    text-decoration: underline;
}

.card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}


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

@media (max-width: 768px) {

    .proyectos-section {
        padding: 40px 6%;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 100px;
    }
    .proyectos-section {
        padding: 30px 5%;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 28px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 14px 16px 16px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-meta {
        font-size: 0.7rem;
    }

    
}