/* Estilos generales aplicables a todos los tamaños */
.recipes-widget {
  margin: 20px;
  margin-top: 8%;
}

.recipes-widget .featured-recipe {
  margin: 0 auto 20px;
  width: 80%;
  height: 25vw;
  min-height: fit-content;
}

.recipes-widget .featured-recipe-content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.recipes-widget .featured-recipe-content .bg-image {
  background-image: url(./images/bg-image.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  height: 42vw;
  width: 42vw;
  top: -9vw;
  left: -6vw;
  z-index: 0;
  position: absolute;
}

.recipes-widget .featured-recipe-image {
  width: 60%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px !important;
  position: relative;
  z-index: 1;
}

.recipes-widget .featured-recipe-text {
  width: 40%;
  padding: 1rem;
}

.recipes-widget .featured-recipe-text h3 {
  margin-top: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 44.2px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 800;
}

.recipes-widget .featured-recipe-text p {
  margin: 10px 0;
  font-size: 18px;
  font-weight: 350;
  line-height: 25px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
  color: var(--ast-global-color-2);
}

.recipes-widget .featured-recipe-text .view-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 45px;
  background: #ce1141;
  color: #fff;
  text-decoration: none !important;
  border-radius: 6px;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: 800;
}

.recipes-widget .featured-recipe-text .view-button::before {
  content: url("./images/+white.svg");
  display: inline-block;
  margin-right: 5px;
}

.recipes-widget .recipes-carousel-container {
  margin-top: 80px;
  margin-bottom: 20px;
  position: relative;
}

.recipes-widget .recipes-carousel-container .swiper-horizontal {
  padding: 0 5%;
  .swiper-wrapper {
    min-height: 295px;
    height: 18vw;
    @media (max-width: 768px) {
      height: 100vw;
    }
  }
}

.recipes-widget .swiper-slide {
  text-align: center;
  padding: 35px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*
.recipes-widget .swiper-slide-prev, .recipes-widget .swiper-slide-next{
  visibility: hidden;
}
  */

.recipes-widget .carousel-item-content {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  height: 80%;
}

.recipes-widget .carousel-item-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 16px 0 0 16px;
}

.recipes-widget .carousel-item-image-icon {
  position: absolute;
  left: -5%;
  top: 3%;
  z-index: -1;
  height: 60% !important;
}

.recipes-widget .carousel-item-image-main-icon {
  position: absolute;
  left: 2%;
  top: 7%;
  z-index: -1;
  height: 50% !important;
}

.recipes-widget .carousel-item-text {
  width: 60%;
  text-align: left;
  padding: 10px;
  padding-right: 8%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recipes-widget .carousel-item-text p {
  margin: 5px 0;
}

.recipes-widget .carousel-item-text p.recipe-name {
  font-size: 1.1vw;
  color: #ce1141;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 800;
}

.recipes-widget .carousel-item-text p.recipe-description {
  font-size: 14px;
  color: #808080;
  font-weight: 350;
  line-height: 16.8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipes-widget .carousel-item-text .view-more-button {
  display: inline-block;
  padding: 20px;
  background: transparent;
  color: #ce1141;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-image: url("./images/+.svg");
  background-repeat: no-repeat;
  background-position: center;
  width: 13px;
  height: 13px;
}

.recipes-widget .view-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 278px;
  height: 45px;
  padding: 0 13.5px;
  gap: 0;
  color: #ce1141;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #ce1141;
  border-radius: 6px;
  margin: 20px auto;
  text-align: center;
  opacity: 1;
  text-transform: uppercase;
  font-weight: 800;
}

.recipes-widget .view-all-button::before {
  content: url("./images/+white.svg");
  display: inline-block;
  margin-right: 5px;
}

.recipes-widget .view-all-button-container {
  width: 100%;
  display: flex;
  position: relative;
  z-index: 2;
}

.recipes-widget .recipes-carousel-container .swiper-button-prev::after {
  content: url("./images/prev.svg");
}

.recipes-widget .recipes-carousel-container .swiper-button-next::after {
  content: url("./images/next.svg");
}

.recipes-widget .recipes-carousel-container .swiper-button-prev,
.recipes-widget .recipes-carousel-container .swiper-button-next {
  top: 40%;

  @media (max-width: 768px) {
    top: 50%;
  }
}

.recipes-widget .recipes-carousel-container .swiper-button-next {
  @media (min-width: 768px) {
    right: var(--swiper-navigation-sides-offset, 0px);
  }
}

.recipes-widget .recipes-carousel-container .swiper-button-prev {
  @media (min-width: 768px) {
    left: var(--swiper-navigation-sides-offset, 0px);
  }
}

/* Animaciones para el cambio de receta destacada */
.recipes-widget .fade-out {
  opacity: 1;
  animation: fadeOut 0.3s forwards;
}

.recipes-widget .fade-in {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Estilos responsivos para Desktop */
@media (min-width: 1025px) {
  .recipes-widget .featured-recipe-content {
    display: flex;
    flex-direction: row;
    gap: 8%;
  }

  .recipes-widget .carousel-item-content {
    display: flex;
    flex-direction: row;
    min-height: 147px;
  }
}



/* Estilos para Móviles (hasta 767px) */
@media (max-width: 767px) {
  .recipes-widget {
    margin-right: 0;
    margin-left: 0;
  }

  .recipes-widget .swiper-slide {
    padding: 35px;
  }

  .recipes-widget .featured-recipe {
    width: 100%;
  }

  .recipes-carousel-container .swiper-button-next {
    top: 50%;
  }

  .recipes-widget .recipes-carousel-container .swiper-button-prev {
    top: 50%;
  }

  .recipes-widget .featured-recipe-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .recipes-widget .featured-recipe-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .recipes-widget .featured-recipe-text {
    width: 100%;
  }

  .recipes-widget .carousel-item-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .recipes-widget .carousel-item-image {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    height: 60%;
  }

  .recipes-widget .carousel-item-text {
    width: 100%;
    height: 100%;
  }

  .recipes-widget .carousel-item-text p:first-child {
    font-size: 4vw;
  }

  .recipes-widget .view-more-button {
    /*
    position: static;
    margin-top: 10px;*/
  }

  .recipes-widget .carousel-item-image-main-icon {
    display: none;
  }

  .recipes-widget .recipes-carousel-container {
    margin-top: 0;
  }
}