/* - - - - - Imágenes responsive - - - - */

img {
    max-width: 100%;
    height: auto;
}

/* - - - - - Estilo de los separadores - - - - - */

.linea {
    width: 86px;
    height: 3px;
    margin: 3% 0;
}

#morada {
    background-color: #AB80BA;
}

#verde {
    background-color: #7CC77E;
}

#naranja {
    background: #FEA455;
}

#rojo {
    background: #cd002f;
}

/* - - - - - Estilos secciones - - - - - */

main section {
    display: flex;
    padding: 70px 30px;
}

/* Modificación estilo predeterminados */

#columns {
    margin: 0;
    max-width: 100%;
}

p {
    font-size: 16px !important;
    line-height: 1.5em !important;
}

/* - - - - - - - - - - Sección 1. Devenez distributeur des étagères Jomasi! - - - - - - - - - - */

.section-1 {
    background-color: #F7F9FB;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-top: 90px;
}

.section-1 h1 {
    text-align: center;
}

.section-1 p {
    /* Centrar párrafo y disminuir el tamaño del párrafo*/
    text-align: center;
    font-size: 20px !important;
    max-width: 500px;
}

/* - - - - - - - - - - Sección 2. Imagen + Texto - - - - - - - - - - */

.section-2 {
    /* Centrar el texto en el centro vertical del contenedor */
    align-items: center;
    /* Encajar el contenedor en el tamaño de la web */
    max-width: 1170px;
    margin: auto;
}

/* COLUMNA DE LA IZQUIERA dentro de la sección 2 */

.section-2 .col-izq {
    float: left;
}

.section-2 .col-izq img {
    /* Añadir el borde inferior a la imagen */
    border-bottom: 10px solid #A8CDF0;
}

.section-2 .col-derch {
    /* Añadir márgen a la izquierda para que respire la imagen con el texto */
    margin-left: 50px;
}


/* - - - - - - - - - - Sección 3. Nous vous proposons également - - - - - - - - - - */

.section-3 {
    background-color: #F7F9FB;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Contenedor con las VENTAJAS */

.section-3 .advantages {
    display: grid;
    /* Dos columnas que ocupen la mitad cada una del contenedor*/
    grid-template-columns: 40% 40%;
    grid-template-rows: repeat(auto-fill);
    justify-content: center;
    /* Encajar el contenedor en el tamaño de la web */
    max-width: 1170px;
    margin: auto;
}

.section-3 .advantages .item {
    /* Contenedores con el icono y el texto */
    display: flex;
    align-items: center;
    margin: 2%;
}

.section-3 .advantages .item p {
    /* Contenedores con el icono y el texto */
    text-align: left;
    margin-left: 25px;
}

.section-3 .advantages .item img {
    /* Tamaño del icono.SVG */
    max-width: 84px;
}

/* - - - - - - - - - - Sección 4. Devenez distributeur - - - - - - - - - - */

.section-4 {
    /* Encajar el contenedor en el tamaño de la web */
    max-width: 1170px;
    margin: auto;
}

/* COLUMNA DE LA IZQUIERA dentro de la sección 4 */

.section-4 .col-izq {
    float: left;
    display: flex;
    align-items: center;
    width: 45%;
}

.section-4 .col-izq img {
    /* Añadir el borde inferior a la imagen */
    border-bottom: 10px solid #FEA455;
}

/* COLUMNA DE LA DERECHA dentro de la sección 4 */

.section-4 .col-derch {
    margin-left: 50px;
    max-width: 100%;
}

/* - - - - - FORMULARIO - - - - - */

#formulario {
    margin-top: 5%;
}

/* FILAS del formulario */

#formulario .row {
    margin: 1% 0;
    display: flex;
}

/* COLUMNAS del formulario que incluyen el label y el input de cada campo */

#formulario .champ {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 2%;
}

#formulario input {
    /* Campo del formulario a rellenar */
    margin: 10px 0;
    border: 1px solid #5C616C;
    padding: 5px 10px;
}

#formulario label {
    /* Estilo del label */
    margin-bottom: 0;
    font-weight: 300;
    color: #5c616c;
    font-size: 16px;
}

/* COLUMNA con los campos de código postal y provincia */

#formulario .champs {
    display: flex;
    margin: 0 1%;
    width: 50%;
}

#formulario .champs .champ-form {
    /* Contenedores con el código postal y provincia */
    display: flex;
    flex-direction: column;
    margin-left: 2%;
    width: 45%
}

#formulario .champs .champ-form input {
    /* Disminuir el tamaño del campo a rellenar, así conseguimos que los tres se ajusten al resto */
  
}

#formulario>div:nth-child(4)>div.champ {
    /* Campo de persona de contacto */
    max-width: 46%;
    margin: 0;
}

/* COMENTARIOS */

#formulario .row:nth-child(6) {
    /* Contenedor con el textarea */
    flex-direction: column;
    margin: 0 2%;
}

#formulario textarea {
    min-height: 100px;
    margin-top: 2%;
}

/* BOTÓN de enviar */

#formulario button {
    float: right;
    font-size: 17px;
    line-height: 21px;
    color: #fff;
    padding: 5px 20px;
    font-weight: bold;
    background-color: #cd002f;
    border: 0;
    margin: 4% 2% 0 0;
    max-width: 130px;
}

#formulario button i {
    /* Icono del botón */
    margin-left: 10px;
}

/* - - - - - TEXTOS DE PRIVACIDAD - - - - - */

.privacidad {
    margin-top: 10%;
    margin-left: 2%;
}

.privacidad p {
    font-size: 12px !important;
}

.privacidad .check-privacidad {
    margin-bottom: 15px;
}

.privacidad .check-privacidad label a {
    border-bottom: 1px solid black;
}

/* - - - - - - - - - - OPINIONES - - - - - - - - - - */

#opiniones {
    padding: 0px 70px 30px;
}

/* - - - - - - - - - - AQUI COMIENZA EL RESPONSIVE - - - - - - - - - - */

@media screen and (max-width: 768px) {

    #center_column {
        /* Quita los huecos que aparecían a los lados */
        padding: 0;
    }

    main section {
        padding: 70px 35px;
    }

    /* - - - - - SECCIÓN 2 - - - - - */

    .section-2 .col-derch {
        margin-left: 25px;
    }

    /* - - - - - SECCIÓN 3 - - - - - */

    .section-3 .advantages {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

    /* - - - - - SECCIÓN 4 - - - - - */

    .section-4 {        
        flex-direction: column;
        align-items: center;
        padding-bottom: 0px !important;
    }

    .section-4 .col-derch {
        margin-left: 0px;
        margin-top: 5%;        
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* - - - - - FORMULARIO - - - - - */

    #formulario {
        margin-top: 0px;
    }
    
    #formulario .row {
        margin: 0;
        display: block;
    }

    #formulario .champs {        
        margin: 0;
        flex-direction: column;
    }

    #formulario .champs .champ-form input, 
    #formulario>div:nth-child(4)>div.champ {
        max-width: 100%;
    }

    #formulario .champs .champ-form {
        width: 100%;
    }

    #formulario .row:nth-child(6) {
        display: flex;
        width: 100%;
    }
}

@media screen and (max-width: 376px) {

    main section {
        padding: 35px 10px;
    }

    /* - - - - - SECCIÓN 2 - - - - - */

    .section-2 {
        flex-direction: column;
    }

    .section-2 .col-izq {
        margin-bottom: 30px;
    }

    /* - - - - - SECCIÓN 3 - - - - - */

    .section-3 .advantages {
        grid-template-columns: 1fr 1fr;
    }

    /* - - - - - SECCIÓN 4 - - - - - */

    .section-4 {        
        flex-direction: column;
        align-items: center;
        padding-bottom: 0px !important;
    }

    .section-4 .col-derch {
        margin-left: 0px;
        margin-top: 5%;        
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* - - - - - FORMULARIO - - - - - */

    #formulario {
        margin-top: 0px;
    }
    
    #formulario .row {
        margin: 0;
        display: block;
    }

    #formulario .champs {        
        margin: 0;
        flex-direction: column;
    }

    #formulario .champs .champ-form input, 
    #formulario>div:nth-child(4)>div.champ {
        max-width: 100%;
    }

    #formulario .champs .champ-form {
        width: 100%;
    }

    #formulario .row:nth-child(6) {
        display: flex;
        width: 100%;
    }
}