html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* Reset para REMS - 62.5% = 10px de 16px*/
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

:root {
    --fondo: #5ec9e4;
    /* rgb(218, 201, 164);*/
    --azul: #3f82c0;
}

body {
    font-family: 'Mulish', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
}


/* Globales */

.contenedor {
    width: 95%;
    max-width: 120rem;
    /*120rem = 1200px*/
    margin: 0 auto 0 auto;
    /* Arriba, derecha, abajo, izq*/
}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 2.6rem;
}

h4 {
    font-size: 2.2rem;
}

p {
    font-size: 1.8rem;
}

img {
    max-width: 100%;
}

span {
    font-weight: bold;
}

li {
    font-size: 1.75rem;
}


/* Utilidades */

.seccion {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding-top: .6rem;
}

.font_w300 {
    font-weight: 300;
}

.centrar_text {
    text-align: center;
}

.d-block {
    display: block!important;
}

.contenido-centrado {
    max-width: 980px;
}

.texto-descripcion {
    text-align: justify;
}


/* Botones */

.boton {
    color: white;
    font-weight: 500;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 1rem 3rem;
    margin-top: 3rem;
    display: inline-block;
    text-align: center;
    border: none;
}

.boton:hover {
    cursor: pointer;
}

.boton_anuncio {
    background-color: #E08709;
}

.boton_contacto {
    background-color: #E08709;
}

@media (max-width: 767px) {
    .boton_contacto {
        width: 40%;
        display: flex;
        justify-content: center;
        margin-left: calc(35% - 1rem);
    }
}

.boton_azul {
    background-color: var(--azul);
}

.ver_todas {
    display: flex;
    justify-content: flex-end;
}


/* Header*/

.logo {
    max-width: 60%;
}

.info-principal {
    text-align: center;
    color: white;
    margin-top: 3rem;
    width: 90%;
    margin: 0 auto;
}

.info-principal p {
    font-size: 3.2rem;
}

.info-principal h1 {
    font-size: 4.5rem
}

@media (min-width: 768px) {
    .info-principal {
        text-align: left;
    }
    .logo {
        max-width: 45%;
    }
}

.titulo {
    font-weight: lighter;
}

.site-header {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#e4f5fc+19,86cae8+67,8fcfe8+97 */
    background: rgb(228, 245, 252);
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#e4f5fc', endColorstr='#8fcfe8', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    padding: 0 0 1.5rem 0;
}

.site-header.inicio {
    background-image: url(../img/header.jpg);
    background-position: center center;
    background-size: cover;
    height: 105vh;
    min-height: 60rem;
}

@media (min-width: 769px) {
    .site-header.inicio {
        background-position: 78% 80%;
        height: 100vh;
    }
}

.contenido-header {
    height: 100%;
    /*Para que tome todo el espacio disponible del header*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

@media (min-width: 768px) {
    .contenido-header {
        text-align: left;
    }
}

.contenido-header h1 {
    color: white;
    padding-bottom: 2rem;
    max-width: 70rem;
    line-height: 2;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 2rem;
    }
}


/* Navegación */

.navegacion a {
    color: rgb(2, 0, 0);
    text-decoration: none;
    font-size: 1.8rem;
    /*1.8 rem = 18px*/
    display: block;
}

@media (min-width: 768px) {
    .navegacion a {
        display: inline-block;
        margin-right: 2rem;
        font-size: 2rem;
    }
    .navegacion a:last-of-type {
        margin-right: 0;
    }
}

.navegacion a:hover {
    color: rgb(117, 85, 204);
}


/* Mobile Menu*/

.mobile-menu img {
    width: 5rem;
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

.navegacion:target {
    display: block;
}

.navegacion {
    display: none;
}

@media (min-width: 768px) {
    .navegacion {
        display: block;
    }
}


/* Iconos nosotros */

.iconos-nosotros {
    padding-top: 5rem;
}

@media (min-width: 768px) {
    .iconos-nosotros {
        display: flex;
        justify-content: space-evenly;
    }
}

.icono {
    text-align: center;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .icono {
        flex-basis: calc(48% - 4rem);
    }
}

.icono h3 {
    text-transform: uppercase;
}

.icono img {
    max-width: 30%;
}


/* Anuncios */

@media (min-width: 768px) {
    .contenedor_anuncios {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;
        flex-wrap: wrap;
    }
    .ajuste-contenedor {
        max-width: 80%;
        margin: 0 auto;
    }
}

.ajuste-img img {
    max-width: 63%!important;
}

.anuncios {
    border: 1px solid #b5b5b5;
    background-color: #f5f5f5;
    margin-bottom: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .anuncios {
        flex: 0 0 calc(50% - 2rem);
        /* flex: grow shrink basis*/
    }
    .index-servicios {
        flex: 0 0 calc(33.3% - 1rem);
    }
}

.contenido_anuncio {
    padding: 2rem;
}

.contenido_anuncio h3,
.contenido_anuncio p {
    margin: 0;
}


/* Servicios */

@media (min-width: 768px) {
    .info-servicios {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .info-servicios img {
        display: block;
        margin: 0 auto;
    }
    .datos-servicios {
        max-width: 70%;
    }
    .diagrama {
        max-width: 40%;
    }
}

.contenido-servicio::after {
    content: '';
    display: block;
    width: 95%;
    height: .5rem;
    background-color: var(--azul);
    margin: 5rem 0;
}

@media (min-width: 768px) {
    .contenido-servicio::after {
        width: 100%;
    }
}


/* Galeria */

.galeria-imagenes {
    padding: 0;
    list-style: none;
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.galeria-imagenes img:hover {
    cursor: pointer;
    transform: scale(1.06);
    box-shadow: 0 0 10px #666;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .galeria-imagenes {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

.galeria-img-acero {
    padding: 0;
    list-style: none;
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.galeria-img-acero img:hover {
    cursor: pointer;
    transform: scale(1.06);
    box-shadow: 0 0 10px #666;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .galeria-img-acero {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.galeria-automotriz {
    padding: 0;
    list-style: none;
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.galeria-automotriz img:hover {
    cursor: pointer;
    transform: scale(1.06);
    box-shadow: 0 0 10px #666;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .galeria-automotriz {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.overlay {
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    top: 0;
    display: grid;
    place-items: center;
}

.overlay img {
    width: 80%;
}

@media (min-width: 768px) {
    .overlay img {
        width: 38%;
    }
}

.btn-cerrar {
    width: 4rem;
    height: 4rem;
    background-color: #FFFF;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border-radius: 50%;
    position: absolute;
    top: 51rem;
}

.btn-cerrar:hover {
    cursor: pointer;
}

@media (min-width: 768px) {
    .btn-cerrar {
        top: 80rem;
    }
}

@media (min-width: 1200px) {
    .btn-cerrar {
        position: initial;
    }
}

.fijar-body {
    overflow: hidden;
}


/* Clientes*/

@media (min-width: 768px) {
    .contenedor-clientes {
        max-width: 50%;
    }
    .info-cliente {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
    .info-cliente p {
        text-align: center;
    }
    .nombre-cliente {
        text-align: right;
    }
    .nombre-cliente h2 {
        font-size: 2.2rem;
    }
    .nombre-cliente li {
        font-size: 1.5rem;
    }
    .contenido-clientes {
        display: flex;
        justify-content: space-between;
        padding-top: 1.5rem;
        flex-wrap: wrap;
    }
    .seccion-cliente {
        flex-basis: calc(50% - 1rem);
    }
    .img-polioles {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    .ajuste-cliente img {
        max-width: 30%!important;
    }
}

.info-cliente img {
    max-width: 75%;
}

#img-polioles {
    max-width: 65%;
}

.seccion-cliente {
    border: solid 3px gray;
    border-radius: 2rem;
    padding: 2rem;
    margin-bottom: 4rem;
}

.img-polioles img {
    display: block;
    margin: 0 auto;
    padding: 1rem;
}


/* Contacto Home*/

.imagen-contacto {
    background-image: url("../img/maquinaria.jpg");
    position: center center;
    height: 40rem;
    display: flex;
    align-items: center;
}

.contenido-contacto {
    flex: 0 0 95%;
    color: white;
}

.contenido-contacto p {
    font-size: 1.8rem;
}


/* Sección inferior*/

.clientes img {
    display: block;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .clientes {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
    }
}

.cliente {
    max-width: 80%;
    margin: 1rem auto;
}

.truper {
    padding: 2rem;
}

.bosch {
    padding: 1rem;
}

@media (min-width: 768px) {
    .truper {
        padding: 0;
    }
    .bosch {
        padding: 0;
    }
}


/* Footer */

.footer {
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#e4f5fc+19,86cae8+67,8fcfe8+97 */
    background: rgb(228, 245, 252);
    /* Old browsers */
    background: -moz-linear-gradient(-45deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* FF3.6-15 */
    background: -webkit-linear-gradient(-45deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(135deg, rgba(228, 245, 252, 1) 19%, rgba(134, 202, 232, 1) 67%, rgba(143, 207, 232, 1) 97%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#e4f5fc', endColorstr='#8fcfe8', GradientType=1);
    /* IE6-9 fallback on horizontal gradient */
    margin: 0;
    margin-top: 5rem;
}

.copyright {
    margin: 0;
    color: white;
}

.contenedor-footer {
    padding: 3rem 0;
    text-align: center;
    margin-right: 0;
}

@media (min-width: 768px) {
    .contenedor-footer {
        display: flex;
        justify-content: space-between;
    }
}

.footer nav {
    display: none;
}

@media (min-width: 768px) {
    .footer nav {
        display: block;
    }
}


/* Pagina Nosotros*/

@media (min-width: 769px) {
    .contenido-nosotros {
        display: grid;
        grid-template-columns: 50% 50%;
        grid-column-gap: 2rem;
    }
}

.texto-nosotros blockquote {
    font-weight: 800;
    font-size: 2rem;
    margin: 1rem;
    padding: 4rem 0;
    text-align: center;
    align-items: center;
}

.texto-nosotros p {
    text-align: justify;
    margin: 1rem;
}

.imagen-nosotros img {
    border-radius: 2rem;
    max-width: 68%;
    display: block;
    margin: 1rem auto;
}


/* Equipos */

.equipos img {
    display: block;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 768px) {
    .equipos {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
    }
}

.img-equipos {
    max-width: 70%;
}

.medidor img {
    padding: 2.5rem;
    display: block;
    margin: auto;
}

.titulo-equipo {
    margin-top: 6rem;
}

@media (min-width: 768px) {
    .medidor {
        display: grid;
        gap: 2rem;
        grid-template-columns: 55% 45%;
        align-items: center;
    }
    .instrumento img {
        height: 20rem;
    }
}

.img-equipo img {
    max-width: 80%;
    display: block;
    margin: 0 auto;
    padding: 1.5rem;
}

.instrumento img {
    display: block;
    margin: 1rem auto;
}

.img-equipo {
    border-bottom: solid 4px orange;
}


/* Página Contacto */

.img-contacto {
    background-image: url(../img/contacto.png);
    background-position: center center;
    background-size: cover;
    height: 40vh;
}

.icono-contacto {
    display: flex;
    justify-content: left;
    align-items: center;
    margin: 2rem 0;
}

.icono-contacto img {
    max-width: 10%;
    margin: 0 2rem;
}

@media (min-width: 768px) {
    .icono-contacto img {
        max-width: 22%;
    }
    .icono-ubicacion img {
        max-width: 8%;
    }
}

.qr {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.codigo-qr p {
    text-align: center;
}

.codigo-qr img {
    max-width: 85%;
    display: block;
    margin: 2rem auto;
}

@media (min-width: 768px) {
    .qr img {
        max-width: 56%;
    }
}

@media (min-width: 768px) {
    .div-contacto {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    .div-contacto p {
        font-size: 1.4rem;
    }
}

@media (min-width: 1200px) {
    .div-contacto p {
        font-size: 1.8rem;
    }
}