.resenas {
  padding-top: var(--header-height);
}

.resenas__header {
  background: url("../images/resenas/banner-resenas-mobile.webp") no-repeat
    center center;
  background-size: cover;
  height: 270px;
  position: relative;
}

.resenas__title {
  position: absolute;
  bottom: 10%;
  left: 5%;
  color: var(--secondary-color);
  font-size: clamp(32px, 4vw, 52px);
}

.resenas__container-content {
  display: flex;
  justify-content: center;
}

.resenas__content {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: calc((413px * 3) + 4rem);
}

.resenas__item {
  /* box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px,
    rgba(0, 0, 0, 0.06) 0px 0px 0px 1px; */
  max-width: 413px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.resenas__image-container {
  flex: 1;
  display: flex;
  position: relative;
}
.resenas__image-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.resenas__image {
  width: 100%;
  height: auto;
  display: block;
  flex: 1;
  max-height: 309px;
}

.resenas__subtitle {
  font-size: 20px;
  flex: 1;
  font-weight: 500;
}

.resenas__details {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popup__content {
  width: 90vw;
  max-width: 1200px;
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  /* overflow: hidden; */
}

.popup__close {
  position: absolute;
  top: -40px;
  right: 0px;
  font-size: 24px;
  cursor: pointer;
  color: #000;
  z-index: 1001;
}

.popup__video-container.is-youtube {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Proporción 16:9 */
}

.popup__video-container.is-youtube .popup__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* Para TikTok: altura automática según contenido */
.popup__video-container.is-tiktok {
  width: 100%;
  padding-top: 0;
  position: static; /* No absoluto */
  display: flex;
  justify-content: center;
}
.tiktok-embed {
  max-height: 80vh;
  overflow-y: scroll !important;
  scrollbar-width: none;
}
/* SELECTED FILTRO */
.select__container {
  max-width: 280px;
}
.select__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 12px 20px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}
.select__options {
  margin-top: 0.5rem;
  max-height: 218px;
  overflow-y: auto;
  display: none;
  position: absolute;
  top: auto;
  left: auto;
  width: 100%;
  background: #fff;
  border: 1px solid var(--primary-color);
  z-index: 1;
  border-radius: 4px;
  max-width: 280px;
  /* z-index: 1000; */
}

.select__option {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  background-color: #fff;
  transition: all 0.3s ease;
}
.select__header,
.select__option {
  font-size: clamp(14px, 4vw, 18px);
}

.select__option.selected {
  border-left: 3px solid #d40021;
}

.select__option:hover {
  background-color: #e0e0e0;
}

/* Mostrar opciones cuando el select está activo */
.select__container.open .select__options {
  display: block;
}

.select__container .select__header-arrow {
  transition: transform 0.3s ease;
  /* Añade una animación suave para la rotación */
}

.select__container.open .select__header-arrow {
  transform: rotate(180deg);
}
.select {
  padding: 2rem 1rem 0rem 1rem;
  max-width: 1279px;
  margin: 0 auto;
}
@media (min-width: 450px) and (max-width: 1455px) {
  .select {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  .select__header {
    min-width: 280px;
  }
}

@media (max-width: 1300px) {
  .resenas__content {
    max-width: calc((413px * 2) + 3rem);
  }
}

@media (min-width: 1050px) {
  .resenas__header {
    background: url("../images/resenas/banner-resenas-desktop.webp") no-repeat
      center center;
    height: 580px;
    background-size: cover;
  }
  .resenas__image-container img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .resenas__content {
    padding: 4rem 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
  .select {
    padding: 5rem 0rem 0rem 0rem;
  }
}
