html {
  box-sizing: border-box;
  font-size: 62.5%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  font-family: "Raleway", sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
}
img {
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  margin: 0 0 2rem 0;
}
h1 {
  font-size: 3.7rem;
}
@media (min-width: 768px) {
  h1 {
    font-size: 5rem;
  }
}
h2 {
  font-size: 3rem;
}
@media (min-width: 768px) {
  h2 {
    font-size: 3.8rem;
  }
}
h3 {
  font-size: 2rem;
}
@media (min-width: 768px) {
  h3 {
    font-size: 2.8rem;
  }
}
/** Globales **/
a {
  text-decoration: none;
  color: #000;
}
/** Utilidades **/
.text-center {
  text-align: center;
}
.boton {
  background-color: #8cbc00;
  display: block;
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  padding: 1rem;;
  transition: background-color 0.2s ease;
  border-radius: 8px;
  text-align: center;
  border: none;
  width: 100%;
}
.boton:hover {
  background-color: #769c02;
  cursor: pointer;
}
@media (min-width: 768px) {
  .boton {
    padding: 0.7rem;
  }
}
.contenedor {
  max-width: 120rem;
  margin: 0 auto;
}
/** Header y Navegación **/
.contenedor-navegacion {
  border-top: 1px solid#e1e1e1;
}
.nav-principal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  height: 4rem;
  height: auto;
}
@media (min-width: 768px) {
  .nav-principal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    padding: -8rem 1rem;
  }
}
.hero {
  background-image: url(../img/principal.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  height: 25rem;
}
@media (min-width: 768px) {
  .hero {
    height: 55rem;
  }
}
.titulo {
  margin: 1rem 0;
  text-align: center;
}
.titulo span {
  color: #037bc0;
}
.enlace {
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .enlace {
    margin-top: 0;
  }
}
/** Categorías **/
.categorias {
  padding: 2rem 0;
}
.categoria img {
  width: 100%;
}
.categoria a {
  text-align: center;
  display: block;
  padding: 2rem;
  margin-bottom: 3rem;
  transition-property: transform background-size;
    transition: 0.3s;
}
.categoria:nth-child(3) {
  margin-bottom: -2rem;
}
.categoria a:hover {
  color: #fff;
  margin-top: 2px;
  background-color: #037bc0;
  border-radius: 0 0 8px 8px;
  font-size: 2.2rem;
  transform: scale(1.1);
  
}
@media (min-width: 768px) {
  .listado-categoria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .categoria a {
    margin-bottom: 0;
  }
  .categoria:nth-child(3) {
    margin-bottom: 0;
  }
}
/** Nosotros **/
.sobre-nosotros {
  background-image: linear-gradient(
      to bottom,
      transparent 50%,
      #037bc0 50%,
      #037bc0 00%
    ),
    url(../img/nosotros.jpg);
  padding: 5rem 0;
  background-position: center, top left;
  background-repeat: no-repeat;
  background-size: 100%, 70rem;
}
@media (min-width: 768px) {
  .sobre-nosotros {
    background-image: linear-gradient(
        to right,
        transparent 50%,
        #037bc0 50%,
        #037bc0 00%
      ),
      url(../img/nosotros.jpg);
    background-position: left center;
    background-size: 100%, 160rem;
  }
}
/** Acá realizamos el posicionamiento con Grid **/
.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;
  text-align: center;
  padding: 2rem 0;
}
@media (min-width: 768px) {
  .texto-nosotros {
    grid-column: 2 / 3;
  }
}
/** Acá realizamos el posicionamiento con Flex **/
/* .sobre-nosotros-grid {
    display: flex;
    justify-content: flex-end;
}

.texto-nosotros {
    flex-basis: 50%;
    padding-left: 4rem;
    color: #fff;
} */

/** Listado de  Nuestros Productos **/
.contenido-principal {
  padding-top: 2rem;
}
@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: 39.9rem;
    width: 100%;
    object-fit: cover;
  }

  .producto:nth-child(2) {
    grid-column: 1 / 4;
  }

  .producto:nth-child(2) img,
  .producto:nth-child(3) img {
    height: 28rem;
    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:nth-child(4) img,
  .producto:nth-child(5) img,
  .producto:nth-child(6) img {
    height: 25rem;
    width: 100%;
    object-fit: cover;
  }
}
.producto {
  background-color: #037bc0;
  border-radius: 8px;
  margin-top: 2rem;
}
@media (min-width: 768px) {
  .producto {
    margin-top: 0;
  }
}
/** first-of-type selecciona el primer elemento o hijo **/
.producto:first-of-type {
  margin-top: 0;
}
.texto-producto {
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.texto-producto h3 {
  margin: 0;
}
.texto-producto p {
  margin: 0 0 0.5rem 0;
}
.texto-producto .precio {
  font-size: 3rem;
  font-weight: 900;
}

/** Footer **/
.footer-linea {
  border-top: 1px solid #e1e1e1;
  margin: 4rem 0 2rem;
}
/** Uso de grid **/
@media (min-width: 768px) {
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .footer-categoria {
    grid-column: 1 / 2;
  }

  .footer-nosotros {
    grid-column: 2 / 3;
  }

  .footer-soportes {
    grid-column: 3 / 4;
  }
  .lista-footer:last-of-type {
    margin-bottom: 0;
  }
  .texto-footer {
    margin-top: 5rem;
  }
}
/** Uso de Flexbox **/
/* .footer-grid {
    display: flex;
    gap: 2rem;
}
.footer-grid div {
    flex: 1;
} */
.footer-grid > div {
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid > div {
    margin: 0;
  }
}
.site-footer {
  border-top: 1px solid #e1e1e1;
  margin-top: 5rem;
  padding-top: 5rem;
}
.footer-grid {
  text-align: center;
}
.site-footer h3 {
  margin-bottom: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer h3 {
    text-align: left;
  }
}
.lista-footer a {
  display: block;
  text-align: center;
}
@media (min-width: 768px) {
  .lista-footer a {
    text-align: left;
  }
}
.lista-footer {
  margin-bottom: 2rem;
}
.texto-footer {
  margin-top: 3rem;
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
}
/*** Sobre nosotros ***/
.contenido-nosotros,
.contenido-cocina,
.contenido-hogar,
.contenido-oficina {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  column-gap: 3rem;
}
.texto-sobre-nosotros {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
}
@media (min-width: 768px) {
  .texto-sobre-nosotros {
    padding: 0;
  }
}

/*** Blog de Nuestra Página ***/
@media (min-width: 768px) {
  .contendor-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 5rem;
  }
}
.contendor-grid:nth-child(4) {
  grid-column: 1 / 2;
}
@media (min-width: 768px) {
  .contenedor-imagen {
    display: flex;
    justify-content: space-between;
  }
}
.contenedor-imagen span {
  color: #037bc0;
}
.entrada {
  padding-bottom: 4rem;
}
.entrada img {
  width: 100%;
}
.parrafo-nosotros {
  padding: 2rem;
}
.text-p {
  padding: 0 2rem;
}
.boton-leer {
  max-width: 35rem;
}
.linea {
  border-top: 1px solid #e1e1e1;
  margin-top: 4rem;
}
.lista-blog {
  font-weight: bold;
}

/**** Entradas ****/
.contenido-entrada-blog {
  width: 60rem;
  margin: 0 auto;
}

/** Galeria **/
@media (min-width: 768px) {
  .galeria {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .galeria img {
    height: 40rem;
    width: 40rem;
    object-fit: cover;
  }
}
.galeria {
  list-style: none;
  max-width: 100%;
  padding-left: 0;
}

/*** Formulario ***/
.formulario {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2rem;
}

.formulario fieldset {
  border: 1px solid black;
  margin-bottom: 3rem;
  border-radius: 0.8rem;
}
.formulario legend {
  background-color: #005485;
  width: 100%;
  text-align: center;
  color: #fff;
  padding: 0.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: bold;
}
.campo {
  display: flex;
  margin-bottom: 1.3rem;
}
.campo label {
  flex-basis: 10rem;
}
.campo input:not([type="radio"]),
.campo select,
.campo textarea {
  flex: 1;
}
.campo select {
  text-align: center;
}
/** Cocina **/
.imagen-cocina img,
.imagen-hogar img,
.imagen-oficina img {
  width: 100%;
}
/** Cocina, Oficina y Hogar **/
.imagen-cocina img,
.imagen-hogar img,
.imagen-oficina img {
  width: 100%;
}
.texto-oficina,.texto-hogar,.texto-cocina {
  padding: 2rem;
}
@media (min-width: 768px) { 
     .texto-oficina,.texto-hogar,.texto-cocina {
      padding: 0;
     }
}