:root {
    --primary-color: #FFFFFF;
    --secondary-color: #fff;
    --accent-color: #606060;
}

main {
    margin: 0;
}

main section {
    margin: 3rem 10vw;
}

main .grid-layout{
    margin:0rem 10vw;
}

main section h2 {
    margin: 15px 0;
}

main .grid-layout div{
    /* margin:3rem 0px; */
    margin-bottom: 3rem;
}

main .grid-layout img {
    display: block;
    width:40%;
    min-width: 200px;
    max-width: 500px;
    margin: auto;
    /* margin-top:-50px ; */
    /* max-width: 300px; */
}

/* main section .centered {
    text-align: center;
    margin: 20px auto;
} */

main section img.rounded {
    border-radius: 15%;
}

.materiales-flex {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap; /* Para que los elementos se ajusten en pantallas pequeñas */
    gap: 20px;
    justify-content:space-evenly;
    align-items: center; /* Centro los elementos horizontalmente */
    align-content: center;
}

.materiales-flex div {
    flex: 1 1 50%; /* Los elementos ocuparán un 30% del contenedor y se ajustarán */
    max-width: 350px; /* Máximo ancho para los elementos */
    box-sizing: border-box; /* Incluye padding y border en el tamaño total */
}

.materiales-flex figure {
    margin: 0; /* Elimina margen por defecto */
    padding: 0;
}

.materiales-flex img {
    width: 100%;
    height: auto; /* Mantiene la proporción de la imagen */
    display: block;
}

.materiales-flex figcaption {
    text-align: center;
    margin-top: 10px;
}

.banner {
    width: 100%;
    height: 100vh;
    position: relative;
}

.banner img {
    overflow: hidden;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner p {
    position: absolute;
    text-align: center;
    top: 0;
    bottom: 0;
    align-content: center;
    align-items:center;
    left: 10%;
    right: 10%;
    margin: auto;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 -1px var(--accent-color);
    pointer-events: none;
    font-family:Boreal;
    text-transform: uppercase;
    letter-spacing: 10px;
    z-index: 2; 
    font-size: max(1em, 5vw);
}

section ul{
    margin: 0;
    padding:0px 1.2rem;
}

section ul li{
    margin: 10px 0px;
}

@media screen and (min-width: 760px) {

    main .grid-layout div{
        margin:3rem 0px;
    }
    
    .materiales-flex {
        display: flex;
        flex-direction: row;
        margin: auto;
        text-align: center;
        /* gap: 20px; */
    }

    .banner p {
        font-size: 2.5rem; 
        /* top: 40%;*/
    }

    .materiales-flex img {
        width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    /* main section.grid-layout {
        display: grid;
        grid-template-columns: 2fr 4fr;
        gap: 20px;
        align-items: center;
    } */

    .grid-layout{
        display: grid;
        grid-template-columns: 2fr 3fr;
    }

    .grid-layout img{
       max-width: 400px;
    }

    main section:nth-child(1){
        margin-top: 3rem;
    }

}