.cabecera {
  position: relative;
  background-image: url('../images/Pre-envasado/pre-envasado_fondo.jpg');
  background-size: cover;
  background-position: center;
  height: 380px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  padding-left: 150px;
  color: white;
}

.cabecera .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 25, 74, 0.8), rgba(0, 25, 74, 0.2), rgba(0, 25, 74, 0));
  z-index: 1;
}

.cabecera .contenido {
  position: relative;
  z-index: 2;
}

.cabecera h1 {
  font-size: 48px;
  font-family: "Oswald", sans-serif;
  color: #ffffff;
  font-weight: bold;

}

.title {
  color: #000;
  text-align: left;
  font-size: 60px;
  line-height: 1;
  font-family: "Oswald";
  font-weight: 700;
}

.ice-cream-name {
  text-align: center;
  font-family: Oswald;
  font-weight: 600;
  font-size: 25px;
}

.ice-cream-desc {
  font-size: 17px;
  line-height: 20px;
  font-family: "Jost";
  font-weight: 400;
}

.ice-cream-img {
  height: 297px;
  width: 407px;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.ice-cream-img:hover {
  transform: scale(1.1);
}


.ice-cream-item {
  text-align: center;
  margin-bottom: 3rem;
}

.contenido {
  padding-left: -50px;
}

.subnav-wrapper {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(250, 250, 248, 0.8);
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  padding-bottom: 5 0px;
}

.subnav-inner {
  max-width: 91.5%;
  display: flex;
  justify-content: flex-end;
  transition: all 0.3s ease;
  padding-top: 10px;
}
.subnav-inner a:last-child {
  border-right: none;
}
.flavor-item {
  text-align: center;
  transform: scale(1);
  transition: transform 0.3s ease;
  width: 250px;
}

.flavor-item img {
  width: auto;
  height: 125px;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 0 !important;
}

.flavor-item p {
  font-size: 19px;
  line-height: 20px;
  font-family: "Jost";
  font-weight: 400;
  color: #000000;
  margin-top: 10px;
  padding-bottom: 20px;
}

a {
  text-decoration: none;
  border-right: 1px solid #000000;
}

.spacer {
  height: 1500px;
}


/*para pantallas pequeñas*/
@media (max-width: 760px) {

  .subnav-wrapper .flavor-item {
    width: 100%;
  }

  .cabecera {
    height: 210px;
    padding-left: 60px;
    padding-bottom: 60px;
    background-position: center;
  }

  .cabecera h1 {
    font-size: 36px;
  }

  .subnav-wrapper img {
    width: 80px;
    height: 80px;
    padding: 10px;
    border-radius: 0;
  }

  .subnav-wrapper p {
    display: none;
  }

  .subnav-inner {
    max-width: 100%;
    justify-content: center;
  }

  .flavor-item {
    padding: 5px;
  }
}

/*para pantallas medianas*/
@media (min-width: 768px) and (max-width: 992px) {
  .cabecera {
    height: 220px;
    padding-left: 60px;
    padding-bottom: 60px;
    background-position: center;
  }

  .cabecera h1 {
    font-size: 36px;
  }

  .flavor-item {
    width: 150px;
  }

  .flavor-item img {
    width: 100px;
    height: 100px;
  }

  .flavor-item p {
    font-size: 20px;
  }

  .subnav-inner {
    max-width: 100%;
    justify-content: center;
  }

  .flavor-item {
    padding: 5px;
  }

  .subnav-wrapper .flavor-item {
    margin-left: 10px;
    margin-right: 20px;
  }

  .subnav-wrapper img {
    width: 140px;
    height: 120px;
    padding: 10px;
    justify-content: center !important;
    margin-left: 0;
    margin-right: 0;
  }

  .subnav-wrapper p {
    display: block;
  }

  .subnav-inner {
    max-width: 100%;
    justify-content: center;
  }

  .ice-cream-img {
    height: 170px;
    width: auto;
    object-fit: contain;
  }

  .ice-cream-item {
    margin-bottom: 3rem;
  }

  .content {
    justify-content: center !important;
  }

  .ice-cream-name {
    font-size: 22px;
  }

  .ice-cream-desc {
    font-size: 16px;
  }

}