/* ================================== */
/* === ESTILOS PÁGINA DE PROYECTO === */
/* ================================== */

/* Contenedor principal */
.proyecto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif; /* O la fuente que uses en tu proyecto */
}

/* Banner Superior */
.proyecto-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: #FCDD7C; /* Color amarillo del diseño */
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    color: #333;
}

.proyecto-banner__content {
    flex: 1 1 55%; /* Ocupa el 55% del espacio */
    padding: 2rem 3rem;
}

.proyecto-banner__title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.proyecto-banner__subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
}

.proyecto-banner__description {
    font-size: 1.1rem;
    line-height: 1.6;
}

.proyecto-banner__image-container {
    flex: 1 1 45%; /* Ocupa el 45% del espacio */
    min-height: 350px;
    background-image: url('../images/foto-proyecto-banner.jpg'); /* <-- CAMBIA ESTO por la ruta a tu imagen */
    background-size: cover;
    background-position: center;
    align-self: stretch;
}

/* Grid de las secciones */
.proyecto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de igual tamaño */
    gap: 2rem;
}

/* Estilos generales de las tarjetas */
.proyecto-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #2a9d8f; /* Verde principal */
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2a9d8f; /* Verde principal */
}

.card-body p, .card-body li {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    text-align: justify;
}

/* Modificadores de tarjeta */
.card-full {
    grid-column: span 2; /* Ocupa las dos columnas */
}

.card-half {
    grid-column: span 1; /* Ocupa una columna */
}

/* Líneas divisorias */
#problematica, #mision {
    border-right: 2px solid #e5e7eb;
}

#metodologia {
    border-top: 2px solid #e5e7eb;
}

/* Estilos específicos */
#objetivos-especificos .card-body--icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
}

.icon-box {
    background-color: lightgray;
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    text-align:center;
}

.icon-box__img {
    width: 80px;
    height: 80px;
}

.impact-list {
    list-style-position: inside;
    margin-top: 1.5rem;
    padding-left: 0.5rem;
}

.impact-list li {
    margin-bottom: 0.5rem;
}

/* === Media Queries para Responsividad === */
@media (max-width: 992px) {
    .proyecto-banner__content {
        padding: 2rem;
    }
    .proyecto-grid {
        grid-template-columns: 1fr; /* Una sola columna en tablets */
        gap: 1.5rem;
    }
    .card-half, .card-full {
        grid-column: span 1; /* Todas las tarjetas ocupan una columna */
    }
    #problematica, #mision {
        border-right: 2px solid #e5e7eb; /* Mantenemos el borde para consistencia */
    }
}

@media (max-width: 768px) {
    .proyecto-banner {
        flex-direction: column;
    }
    .proyecto-banner__content {
        width: 100%;
        flex-basis: auto;
    }
    .proyecto-banner__image-container {
        width: 100%;
        flex-basis: auto;
        min-height: 250px;
    }
    .card-body--icons {
        flex-direction: column;
    }
    .icon-box {
        width: 100%;
    }
}

