.principal {
    width: 1120px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;

}

.color-section1 {
    background-color: #01284f;
}

.color-section2 {
   background-color: #D3D3D3;
}

.color-section4 {
    background-color: #16324F;
 }

.section2 {
    color: #16324F;
}

.section2 p{
    color: #16324F;
}

.color-section3 {
    background-color: #F3A712;
}

.section3 {
    color: #16324F;
}

.principal h1 {
    width: 100%;
    font-size: 2.5em;
}

.content {
    max-width: 60%;
    text-align: justify;
}

.content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.content h2 {
    margin-bottom: 20px;
}

.content p {
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.content ul, 
.content ol {
    padding-left: 20px;
}

.content ul {
    list-style-type: disc;
}

.content li {
    line-height: 1.6;
    margin-bottom: 15px;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 60px;
    width: 35%;
}

.image-wrapper-right {
    max-width: 100%;
    border-radius: 50% 0 50% 0;
    background-color: #F3A712;
}

.image-wrapper-right img {
    position: relative;
    transform: translate(-7%, -7%); 
    max-width: 100%;
    border-radius: 50% 0 50% 0;
    
}

.image-wrapper-left {
    max-width: 100%;
    border-radius: 0 50% 0 50%;
    background-color: #F3A712;
}

.image-wrapper-left img {
    position: relative;
    transform: translate(7%, -7%); 
    width: 100%;
    border-radius: 0 50% 0 50%; 
}

.content-values {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.values {
    list-style-type: decimal;
    text-align: justify;
    padding-left: 20px;
    width: 75%;
}

.values li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.values strong {
    font-weight: bold;
    flex-grow: 1;
}

.image-section {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    width: 20%;
}
.image-values {
    overflow: hidden;
    height: calc(100% /4);
}

.image-values img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.payments_container {
    height: auto;
}

#quienes-somos, #nuestra-historia, #nuestra-mision-y-vision, #nuestros-valores, #nuestro-equipo, #pagos-y-donaciones, #nuestros-objetivos {
    scroll-margin-top: 120px;
}

.payments { 
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    grid-template-rows: auto;
    gap: 20px;
}

.donations, .reconciliation_payments {
    width: 100%;
    border: 2px solid white;
    padding: 20px;
    background-color: #16324F;
}


.donations h2, .reconciliation_payments h2{
    border-bottom: 2px solid #e1b12c;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.donations p, .reconciliation_payments p {
    text-align: justify;
    margin-top: 0.5em;
    margin-bottom: 0.7em;
}

.donations ul, .reconciliation_payments ul, 
.donations ol, .reconciliation_payments ol {
    margin-bottom: 1em;
    padding-left: 20px;
    text-align: justify;
}

.donations ul, .reconciliation_payments ul {
    list-style-type: disc;
}

.donations li, .reconciliation_payments li {
    margin-bottom: 0.3em;
}

.donations_images {
    width: 100%;
    height: auto;
}

.donations_images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;

}

@media screen and (max-width: 1124px) {
    .principal {
        width: 100%;
        padding: 20px;
    }

}

/* Mobile */
@media screen and (max-width: 800px) {
    .principal {
        width: 100%;
        padding: 20px;
        flex-direction: column;
    }

    .content {
       max-width: 100%;
    }

    .content h1 {
        font-size: 2em;
    }

    .content p {
        font-size: 1em;
        width: 100%;
    }

    .image-container {
        width: 100%;
    }

    .image-wrapper-left, .image-wrapper-right {
        width: 60%;
    }

    .content-values {
        display: block;
    }

    .image-section {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .image-values {
        width: 45%;
        height: auto;
        margin-bottom: 10px;
    }

    .values {
        width: 100%;
        padding-left: 18px;
    }

    .payments {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "donations"
            "ima1"
            "reconciliation_payments"
            "ima2";
      }
    .donations { grid-area: donations; }
    .reconciliation_payments { grid-area: reconciliation_payments; }
    .ima1 { grid-area: ima1; }
    .ima2 { grid-area: ima2; }

    .text_left {
        text-align: left;
    }
}