html {
    box-sizing: border-box;
    font-size: 62.5%; /*1rem=10px*/
  }
*, *:before, *:after {
    box-sizing: inherit;
  }

  a {
      text-decoration: none;
      color: #000;
      text-transform: uppercase;
  }
  .contenedor {
      max-width: 120rem;
      margin: 0 auto;
  }
img {
      max-width: 100%;
      display: block;
    }
body { 
        font: 100% "Work Sans", Helvetica, sans-serif;
        font-size: 1.6rem;
        line-height: 1.5;
    }

    @media (min-width: 768px) {
        .max-width-30 {
            max-width: 30rem;
        }
    }

h1, h2, h3 {
    margin: 0 0 2rem 0;}

    h1 {
       font-size: 3.8rem
    }

    @media (min-width: 768px) {
        h1{
            font-size: 5rem;
        }
    }

    h2 {font-size: 3.2rem;}
    @media (min-width:768px)
    {
        h2 {
            font-size: 4rem;
        }
    }

h3 {
font-size: 3rem;
}

@media (min-width: 768px) {
    h3 {
        font-size: 2.4rem;
    }
}

.nombre-sitio {
    padding-top: 3rem;
    text-align: center;
    font-size: 4rem;
}
.nombre-sitio span {
    color: #037bc0;
}
.contenedor-nav{
    border-top: .1rem solid #e1e1e1;
}

.navegacion {
padding: 2rem 0rem 2rem 0rem;
display: flex;
flex-direction: column;
align-items: center;
}

@media (min-width: 768px) {
    .navegacion {
        justify-content: space-between;
        flex-direction: row;
    }
}

.hero {
    background-image: url(../img/principal.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 25rem;
}

@media (min-width:768px) {
    .hero {
        height: 55rem;
    }
}

.categoria {
    padding: 2rem 0;
}

.categoria img {
    width: 100%;
}

.categorias h2 {
text-align: center;
padding-top: 4rem;
}
.categoria a{
    display: block;
    text-align: center;
    padding: 2rem;
    font-size: 1.7rem;
}
.categoria a:hover {
    background-color: #037bc0;
    color: #fff;
}

@media (min-width:768px) {
    .listado-categorias {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.sobre-nosotros {
    background-image: linear-gradient(to bottom, transparent 50%, #037bc0 50% ,#037bc0 100%), url(../img/nosotros.jpg);
    background-repeat: no-repeat;
    background-size: 100%, 70rem;
    background-position: center, top left;
    }

@media (min-width:768px) {
    .sobre-nosotros {
        background-image: linear-gradient(to right, transparent 50%, #037bc0 50% ,#037bc0 100%), url(../img/nosotros.jpg);
        padding: 10rem 0;
        background-repeat: no-repeat;
        background-size: 100%, 160rem;
        background-position: left center;
        }
}

.sobre-nosotros-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .sobre-nosotros-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
        column-gap: 8rem;
    }
}

.texto-nosotros {
    grid-row: 2/3;
    color: #fff;
    padding: 3rem;
}

@media (min-width: 768px) {
    .texto-nosotros {
        grid-column: 2/3;
    }
    }

.contenido-principal {
    padding-top: 5rem;
}

.contenido-principal h2 {
    text-align: center;
}

@media (min-width: 768px) {
    .listado-productos {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem
    
    }
    
    .producto:nth-child(1) {
        grid-column: 1 / 7;
        display: grid;
        grid-template-columns: 3fr 1fr;
    }
    
    .producto:nth-child(1) img {
        height: 43rem;
        width: 100%;
        object-fit: cover;
    }
    
    .producto:nth-child(2) {
        grid-column: 1 / 4;
    }
    
    .producto:nth-child(2) img,
    .producto:nth-child(3) img {
        height: 30rem;
        width: 100%;
        object-fit: cover;
    }
    
    .producto:nth-child(3) {
        grid-column: 4 / 7;
    }
    
    .producto:nth-child(4) {
        grid-column: 1 / 3;
    }
    .producto:nth-child(5) {
        grid-column: 3 / 5;
    }
    .producto:nth-child(6) {
        grid-column: 5 / 7;
    }
    }

.producto {
    background-color: #037bc0;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .producto {
        margin-bottom: 0;
    }
    }

.producto:last-of-type {
    margin-bottom: 0;
}

.info-producto {
    text-align: center;
    color: #fff;
    padding: 2rem;
}

 .info-producto .precio {
font-size: 2.8rem;
font-weight: 900;
 }

.info-producto h3 {
    margin: 0;
}

.info-producto p {
    margin: 0 0 0.5rem 0;
}

.info-producto a {
    background-color: #8cbc00;
    display: block;
    color: #fff;
    font-weight: 900;
    padding: 1rem;
    transition: background-color .3s ease-out;

}

.info-producto a:hover{
    background-color: #769602;
}

/**Footer**/

.sitio-footer {
    border-top: 1px solid #e1e1e1;
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
}

/**Nosotros**/
.contenido-nosotros {
    display: grid;
    column-gap: 4rem;}

.info-nosotros {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
}

@media (min-width: 900px) {
  .contenido-nosotros {
    grid-template-columns: 1fr 2fr;
    grid-template-columns: repeat(auto-fit, minmax (25rem, 1fr));
  }
  .info-nosotros {padding: 0};
}

.info-nosotros p {
    text-align: justify;
}

/**blog**/

@media (min-width: 768px) {
    .contenedor-blog {
        display: grid;
        column-gap: 4rem;
    }
    }

.entrada {
    border-bottom: 2px solid #e1e1e1;
    margin-bottom: 2rem;
    padding-bottom: 4rem;
}

.entrada h2 {
    text-align: center;
}

@media (min-width: 768px) {
    .entrada h2 {
        text-align: left;
    }
    }


.contenido-blog {  
    padding: 2rem;
}

.entrada:last-of-type {
    border: none;
}

@media (min-width: 768px) {
    .entrada-meta {
        display: flex;
        justify-content: space-between;
    }
    }

.entrada-meta p {
font-weight: 900;

}
.entrada-meta span {
    color: #037bc0;
}

.entrada li a {
    text-transform:initial;
}
.btn {
    background-color: #8cbc00;
    display: block;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 1rem;
    transition: background-color .3s ease-out;
    text-align: center;
    border: none;
    width: 100%;
}
.btn:hover {
    background-color: #769c02;
    cursor: pointer;
}

.contenido-entrada-blog {
    width: 60rem;
    margin: 0 auto;
}

/**galeria**/
.galeria {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .galeria {
        grid-template-columns: repeat(3, 1fr);
    }
    }

.galeria img {
    height: 40rem;
    width: 40rem;
    object-fit: cover;
}

/**Formulario**/
.formulario {
    max-width: 60rem;
    margin: 0 auto;

}

.formulario fieldset {
    border: 1px solid black;
    margin-bottom: 1.5rem;
}

.formulario legend {
    background-color: #005485 ;
    width: 100%;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    font-weight: 900;
    padding: 0.5rem;
    margin-bottom: 2rem;
}

.campo {
    display:flex;
    margin-bottom: 1.5rem;
}

.campo label {
    flex-basis: 10rem;

}

.campo input:not([type="radio"]),
textarea,
select, datalist{
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
}