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

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  line-height: 2;
}

/** Globales**/
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  margin: 0 0 2rem 0;
}

h1 {
  font-size: 4rem;
}

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

h2 {
  font-size: 3.2rem;
}

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

h3 {
  font-size: 2.4rem;
}

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


a {
  text-decoration: none;
  color: #000;
}

.contenedor {
  max-width: 120rem;
  margin: 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

.btn {
  background-color: #8cbc00;
  display: block;
  color: #FFFFFF;
  text-transform: uppercase;
  font-weight: 900;
  padding: 1rem;
  transition: background-color .3s ease-out;
  text-align: center;
  border: none;
  width: 100%;
}

@media (min-width: 768px) {
  .btn {
    width: auto;
  }
}

.btn:hover {
  background-color: #769602;
  cursor: pointer;
}


/** Utilidades**/

.text-center {
  text-align: center;
}

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


/** Header y Navegacion**/

.nombre-sitio {
  margin-top: 5rem;
  text-align: center;
}

.nombre-sitio span {
  color: #037bc0;
}

.contenedor-navegacion {
  border-top: 1px solid #e1e1e1;
}

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

.nav-principal a {
  transition: background-color 0.3s ease-out;
  border-radius: 10%;
  padding: 0.5rem;
}

.nav-principal a:hover {
  background-color: #e1e1e1;
}

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

.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;
  }
}

/** Categorias**/
.categorias {
  padding: 5rem 0;
}

.categoria {
  margin-bottom: 2rem;
}

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

.categoria img {
  width: 100%;
}

.categorias h2 {
  text-align: center;
}

.categoria a {
  display: block;
  text-align: center;
  padding: 2rem;
  font-size: 2rem;
}

.categoria a:hover {
  background-color: #037bc0;
  color: #FFFFFF;
  border-bottom-right-radius: 1rem;
}

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


/** Bloque Nosotros**/

.sobre-nosotros {
  background-image: linear-gradient(to bottom, transparent 50%,
      #037bc0 50%, #037bc0 100%), url(../img/nosotros.jpg);
  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 100%), url(../img/nosotros.jpg);
    background-position: left center;
    padding: 10rem 0;
    background-size: 100%, 160rem;
  }
}

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

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

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

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

.video-nosotros {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  /* Se ajusta al ancho del contenedor */
  max-width: 100%;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.video-nosotros iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding-bottom: 0;
}

.encuentranos {
  text-align: center;
}

.mapa-ubicacion {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto 2rem auto;
}

.mapa-ubicacion iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/** Listado de Productos**/

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

@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;
}

.texto-producto {
  text-align: center;
  color: #FFFFFF;
  padding: 2rem;
}

.texto-producto h3 {
  margin: 0;
}

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

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

.producto img {
  transition: transform 0.3s ease-out;
}

.producto img:hover {
  transform: scale(.8);
}

 .swiper {
    width: 90%;
    max-width: 70rem;
    height: 49rem;
    margin: 5rem auto;
  }

  .swiper-slide {
    background-color: #ddd;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    box-shadow: 0px .5rem 1.5rem rgba(0, 0, 0, 0.2);
    width: 25rem; /* Tamaño fijo para efecto coverflow */
  }

  /* Ajustes para pantallas pequeñas */

  @media (max-width: 768px) {
    .swiper {
      max-width: 60rem;
      height: 40rem;
    }

    .swiper-slide {
      width: 20rem;
      font-size: 1.2rem;
    }
  }

    @media (max-width: 480px) {
    .swiper {
      height: 23rem;
    }

    .swiper-slide {
      font-size: 1rem;
    }
  }

/** footer **/

.site-footer {
  border-top: 1px solid #e1e1e1;
  margin-top: 5rem;
  padding: 5rem;
}

.site-footer h3 {
  margin-bottom: .5rem;
  text-align: center;
}

@media (min-width: 768px) {

  .site-footer h3 {
    text-align: left;
  }

  .grid-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;

  }
}

.grid-footer>div {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .grid-footer>div {
    margin-bottom: 0;
  }
}

.footer-menu a {
  display: block;
  transition: background-color 0.3s ease-out;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-menu a {
    text-align: left;
  }
}

.footer-menu a:hover {
  background-color: #e1e1e1;
}

.copyright {
  text-align: center;
  margin-top: 5rem;
}

/** Nosotros **/

.contenido-nosotros {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
}

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

@media (min-width: 768px) {
  .informacion-nosotros {
    padding: 0;
  }
}

/** Blog **/


@media (min-width: 768px) {
  .contenedor-blog {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}

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

.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: px) {
  .entrada-meta {
    display: flex;
    justify-content: space-between;
  }
}


.entrada-meta p {
  font-weight: 700;
}

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

.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;
}

.galeria li:last-of-type {
  grid-column: 1 / 3;
}

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

  .galeria li:last-of-type {
    grid-column: unset;
  }
}

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

/** Formulario **/

.formulario {
  max-width: 60rem;
  margin: 0 auto;
}

.formulario fieldset {
  border: 1px solid #000;
  margin-bottom: 2rem;
}

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

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

.campo label {
  flex-basis: 10rem;
}

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