* {
    box-sizing: border-box;
    margin: 10px 10px;
}

body {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

img {
    width: 20%;
}

h1 {
    width: 100%;
    color: white;
    background-color: red;
}

h2 {
    color: grey;
}

h3 {
    color: red;
}

div {
    width: 60%;
    border-bottom: grey 2px dotted;
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    padding-bottom: 40px;
}

p {
    color: rgb(150, 142, 142);
    font-size: 18px;
}

section {
    width: 70%;
    padding-top: 15px;
    margin: 10px 5px;
}

div:nth-of-type(2){
    flex-direction: row-reverse;
}

@media screen and (max-width: 768px) {
    body{ /* Se ponen cajas flexibles aquí */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }   

    div{
        width: 50%;
       
    }

    img{
        width: 100%;
    }

    section {
        width: 100%;
    }
    div:last-of-type{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    img[alt=foto3]{
        width: 50%;
    }
    div:last-of-type > section {
        width: 40%;
    }
}

@media screen and (max-width: 425px){
    body{ /* Se ponen cajas flexibles aquí */
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    div{
        width: 100%;
        margin:10px auto;
    }
    img{
        width: 100%;
    }

    img[alt = foto2]{
        width: 100%;
    }
}



