.section-1 {
    position: relative;
    background-color: rgba(255, 255, 255, 0.5);
    background-image: url("data:image/svg+xml,%3Csvg width='42' height='44' viewBox='0 0 42 44' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Page-1' fill='none' fill-rule='evenodd'%3E%3Cg id='brick-wall' fill='%239C92AC' fill-opacity='0.4'%3E%3Cpath d='M0 0h42v44H0V0zm1 1h40v20H1V1zM0 23h20v20H0V23zm22 0h20v20H22V23z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    overflow: hidden;
    border-bottom: 12px solid transparent;
    border-image: linear-gradient(to right, green, yellow, blue);
    border-image-slice: 1;
}

.section-2 {
    position: relative;
    padding: 150px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
    background: #fffef0;
    background-image: url('../images/repeating-paper-texture.jpg');
    background-repeat: repeat;
}

.section-3 {
    position: relative;
    padding: 150px 50px 300px 50px;
    background: #ffffff;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.76) 0%, rgba(53, 89, 150, 0.76) 100%);
}

.section-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: repeat;
    background-image: url('../images/farm-pattern.jpg');
    z-index: -1;
}

.section-2 .texto {
    font-size: 1.5rem;
}

.section-4 {
    position: relative;
    padding: 150px 50px 50px 50px;
    background: #12234f;
    background: radial-gradient(circle, rgba(18, 35, 79, 0.68) 0%, rgba(18, 35, 79, 1) 94%);
    border-bottom: #c7b776 solid 8px;
}


.section-4::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: url("../images/ciudad.jpg");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.section-4 h1 {
    text-align: left;
    margin: 0;
    font-family: "Times New Roman", Times, serif;
    color: #c7b776;
}

.section-4 h2 {
    text-align: left;
    color: #fffef0;
}

.section-5 {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.section-5 .texto {
    margin: 20px 20px auto 50px;
    padding: 30px;
    background: #4d565e;
    background: linear-gradient(315deg, rgba(77, 86, 94, 1) 59%, rgba(98, 105, 112, 1) 71%);
    border-radius: 12px;
    color: #fffef0;
    font-size: 1.5rem;
}

.section-5 .images {
    position: relative;
    height: 500px;
}

.section-5 .img-1 {
    position: absolute;
    top: 0;
    left: 40%;
    transform: translateX(-50%);
    max-width: 700px;
}

.section-5 .img-2 {
    position: absolute;
    top: 250px;
    left: 40%;
    transform: translateX(-20%);
    max-width: 350px;
    z-index: 2;
}

.section-5 .foto::after {
    position: absolute;
    content: '';
    background-color: #12234f;
    top: -30px;
    left: -30px;
    bottom: -30px;
    right: -30px;
    border: #c7b776 solid 2px;
    outline: #12234f solid 5px;
    z-index: -1;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.section-6 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 100px;
}

.section-6 .images {
    position: relative;
}

.section-6 .img-1 {
    border-radius: 12px;
    overflow: hidden;
    position: absolute;
    top: -130px;
    right: 0;
    max-width: 700px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.section-6 .texto {
    margin: 20px 20px auto 50px;
    padding: 30px;
    background: #12234f;
    border-radius: 12px;
    color: #fffef0;
    font-size: 1.5rem;
    border-top: 12px solid #c7b776;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

.section-6 .texto h3 {
    color: #c7b776
}

.section-6 .texto i {
    float: right;
    font-size: 2rem;
    padding-right: 30px;
}

.section-3 .texto {
    width: 50%;
    font-size: 1.5rem;
    margin: auto;
    background: #ffffff;
    padding: 80px;
    text-align: center;
    border-radius: 25px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    color: rgb(33, 56, 96);
}

.section-3 h1 {
    font-weight: 400;
}

.section-3 .logo-chortizer {
    position: absolute;
    border-radius: 25px;
    overflow: hidden;
    top: 10px;
    transform: rotate(-10deg);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    max-width: 300px;
}

.section-3 .cooperativa {
    position: absolute;
    border-radius: 25px;
    overflow: hidden;
    bottom: 10px;
    right: 10%;
    transform: rotate(-5deg);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    z-index: 1;
}

.section-3 .cooperativa img {
    max-width: 500px;
}

.section-3 .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-2 .texto h1 {
    font-family: 'Times New Roman', Times, serif;
    text-align: left;
    font-weight: 700;
    font-size: 3rem;
}

.section-2 .images {
    min-height: 500px;
    display: grid;
    grid-template-columns: 1fr;
}

.section-2 .images .container {
    position: relative;
}

.section-2 .images .image-container {
    position: absolute;
}

.section-2 .images .image-container::after {
    content: '';
    position: absolute;
    background-color: none;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -30px;
    z-index: -1;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.section-2 .images .image-container::before {
    content: '';
    position: absolute;
    background-color: #fffef0;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -30px;
    z-index: -1;
    box-shadow: inset 1px 1px 50px #c7b776;
}

.section-2 .images .container:nth-child(1) .image-container {
    top: -100px;
    max-width: 300px;
    left: -40%;
    transform: rotateZ(10deg);
}

.section-2 .images .container:nth-child(2) .image-container {
    max-width: 450px;
    top: -150px;
    left: 50%;
    right: -50%;
    transform: rotateZ(-5deg) translateX(-50%);
}

.section-2 .images .container:nth-child(3) .image-container {
    max-width: 300px;
    top: 0;
    left: 50%;
    right: -50%;
    transform: rotateZ(5deg) translateX(-50%);
}

.foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portada {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 59%, rgba(255, 255, 255, 0) 100%);
    padding: 40px 20px;
}

.portada .image-container {
    width: 70%;
    height: auto;
    margin: auto;
    opacity: 1;
    animation: nowyouseeme .8s ease-in
}

@keyframes nowyouseeme {
    0% {
        opacity: 0;
    }
}

.logo-silueta {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    transform: translate(25%, -25%);
    z-index: -1;
}

.portada .image-container img {
    aspect-ratio: 1/1;
}

.portada .texto {
    display: relative;
    margin: auto;
    text-align: center;
}

.portada h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    font-family: "Times New Roman", Times, serif;
}

.portada h3 {
    font-weight: 300;
    font-size: 2.5rem;
    margin: 0;
}

.portada h4 {
    font-size: 1.5rem;
    margin: 0;
}

.intendencia {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: fit-content;
    gap: 30px;
    padding: 25px;
}

.intendencia h1 {
    font-size: 2.5rem;
    text-align: left;
    font-weight: 700;
    text-transform: capitalize;
}

.intendencia table {
    margin: auto;
    color: #000;
}

.intendencia td {
    padding: 5px;
}

.intendencia .cuadro,
.intendencia .descripcion,
.periodos {
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
}

.intendencia .cuadro,
.intendencia .descripcion {
    color: #4b4545;
    line-height: 2;
}

.periodos {
    font-weight: 700;
    border-left: #000 5px solid;
    padding-left: 10px;
}

.trayectoria {
    text-align: center;
    margin: auto;
    background-color: #12234f;
    border-radius: 12px;
    margin-top: 150px;
    border-top: 12px solid #c7b776;
}

.trayectoria h2 {
    color: #c7b776;
    padding: 6px 12px;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px;
}

.timeline .evento {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.timeline .cuadro {
    width: auto;
    padding: 15px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    border-radius: 12px;
}

.timeline h3 {
    font-size: 1.3rem;
}

.timeline p,
.timeline h4 {
    font-size: 1.2rem;
}

.timeline li::marker {
    font-weight: 700;
    font-size: 1.2rem;
}

.timeline .lugar {
    padding-top: 25px;
}

.timeline .album {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 25px;
}

.timeline .foto {
    max-width: 500px;
    overflow: hidden;
    border-radius: 12px;
}

.timeline .lugar:nth-child(odd) .foto {
    margin-left: auto;
}

.timeline .lugar:nth-child(odd) {
    border-right: 2px solid #12234f;
    padding-right: 16px;
}

.timeline .lugar:nth-child(odd) .cuadro {
    margin-left: auto;
}

.timeline .lugar:nth-child(even) {
    border-left: 2px solid #12234f;
    padding-left: 16px;
}

.timeline .lugar:nth-child(even) .cuadro {
    margin-right: auto;
}

@media (max-width: 952px) {

    .portada,
    .section-1,
    .section-2,
    .section-5,
    .section-6,
    .timeline .evento {
        grid-template-columns: 1fr;
    }

    .section-6 .img-1 {
        position: relative;
        top: 0;
        margin: auto;
    }

    .section-6 .texto,
    .section-3 .texto {
        margin: auto;
        margin-top: 30px;
        width: fit-content;
    }

    .section-3 {
        padding: 150px 10px 300px 10px;
    }

    .section-3 .logo-chortizer {
        max-width: 250px;
    }

    .intendencia {
        grid-template-columns: 1fr;
    }

    .intendencia img {
        border-radius: 50%;
    }

    .timeline .cuadro {
        width: auto;
    }

    .timeline .foto {
        margin: auto;
    }

    .timeline .lugar:nth-child(even) {
        border-left: none;
        border-right: 2px solid #000;
        padding-right: 16px;
    }

    .timeline .evento:nth-child(even) .lugar:nth-child(1) {
        order: 2;
    }

    .timeline .evento:nth-child(even) .lugar:nth-child(2) {
        order: 1;
    }

    .section-2 .images {
        margin-top: 50px;
        height: 600px;
    }

    .section-2 .images .container:nth-child(1) .image-container {
        top: 0;
        max-width: 300px;
        left: 50%;
        right: -50%;
        transform: rotateZ(10deg) translateX(-50%);
    }

    .section-2 .images .container:nth-child(2) .image-container {
        max-width: 450px;
        top: -40px;
        left: 50%;
        right: -50%;
        transform: rotateZ(-5deg) translateX(-50%);
    }

    .section-2 .images .container:nth-child(3) .image-container {
        max-width: 300px;
        top: 50px;
        left: 50%;
        right: -50%;
        transform: rotateZ(5deg) translateX(-50%);
    }

}