/*Carrusel Custom INI*/
.carousel-custom {
  opacity: 0;
}

.carousel-custom.ready {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.carousel-custom {
  --gap: 24px;
  --card-width: 300px;
  --arrow-size: 48px;
  padding: 0 0;
  position: relative
}

.carousel-custom .carousel-viewport {
  overflow: hidden;
}

.carousel-custom .carousel-track{
    display:flex;
}

/* FIXED — nunca usa transform → nunca debe tener transición ni will-change transform */
.carousel-custom[data-variant="fixed"] .carousel-track {
  transition: none !important;
  will-change: auto !important;
}

/* ADAPTATIVE — usa translateX → aquí sí debe haber transición */
.carousel-custom[data-variant="adaptive"] .carousel-track {
  transition: transform .4s ease;
  will-change: transform;
}

.carousel-custom .carousel-track>* {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.carousel-custom .carousel-track>* img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.carousel-custom .progress-container {
  margin-top: unset;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.carousel-custom .carousel-indicators-custom {
  display: flex;
  position: unset;
  right: unset;
  left: unset;
  z-index: unset;
  justify-content: center;
  gap: 0.5rem;
}

.carousel-custom .carousel-indicators-custom span {
  width: 1.5rem;
  height: 2px;
  background: #d9d9d9;
  transition: none;
  cursor: pointer;
}

.carousel-custom .carousel-indicators-custom span.active {
  background: #6d6d73;
  transition: none;
  transform: scale(1.1);
}

.carousel-custom .destacado .image-destacado,
.carousel-custom .destacado .detalle-video {
  text-align: center;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.carousel-custom h3 {
  margin: 0 0 12px 0;
  font-size: 1.375rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.carousel-custom .carousel-track>* {
  margin: 0;
}

.carousel-custom .carousel-track>* .destacado,
.carousel-custom .carousel-track>* .detalle-destacado {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.carousel-custom .carousel-track>* .destacado {
  border: 0 !important;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  display: block;
}

.carousel-custom .carousel-track>* .detalle-destacado {
  border: 0 !important;
  border-top: 1px solid #cfcfcf;
  border-radius: 0 0 .75rem .75rem;
  padding: 1.5rem !important;
  box-sizing: border-box;
  background: transparent;
}

.carousel-custom .carousel-track>* img,
.carousel-custom .carousel-track>* .destacado img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-top-left-radius: .75rem;
  border-top-right-radius: .75rem;
}

.carousel-custom .destacado .image-destacado figure {
  height: 256px;
}

.carousel-custom .destacado img {
  height: 100% !important;
}

.carousel-custom .progress-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.carousel-custom .progress {
  flex: 1;
  height: 2px;
  background: #d9d9d9;
  border-radius: 5px;
  position: relative;
  cursor: pointer;
}

.carousel-custom .progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50px;
  background: #6d6d73;
  border-radius: 5px;
  cursor: pointer;
}

.carousel-custom .arrow {
  width: var(--arrow-size);
  height: var(--arrow-size);
  border-radius: 50%;
  border: 1px solid transparent;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border .3s ease-in;
  border: 1px solid #d3d4d3;
}

.carousel-custom .arrow:hover {
  border-color: #6d6d73;
}


.carousel-custom .carousel-item-custom {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

@media (max-width:768px) {
  .carousel-custom {
    --arrow-size: 38px;
  }

  .carousel-custom[data-variant="fixed"] .carousel-track {
    width: max-content;
  }
  
  .carousel-custom[data-variant="adaptive"] .carousel-viewport {
    overflow: unset;
    margin: 0 1rem;
  }
  
  .carousel-custom .carousel-track {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .carousel-custom .arrow {
    width: var(--arrow-size);
    height: var(--arrow-size);
  }

  .carousel-custom .progress-container {
    gap: 1rem;
    margin: 1rem 0 0 0;
    padding: 0 1rem;
  }

  .carousel-custom .carousel-indicators-custom {
    gap: 0.2rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  .carousel-custom .carousel-indicators-custom span {
    width: 1rem;
    height: 2px;
  }

  .carousel-custom .arrow img {
    width: 12px;
    height: 12px
  }

  /* Highlight variant adjustments for mobile */
  .carousel-custom.carousel-highlight {
    padding: 0;
  }

  .carousel-custom.carousel-highlight .carousel-viewport {
    overflow: unset;
    margin: 0 1rem;
  }

  .carousel-custom.carousel-highlight .progress-container {
    padding: 0 1rem;
    justify-content: space-between;
    gap: 1rem;
  }

  .carousel-custom.carousel-highlight .arrow {
    position: relative;
    top: auto;
    transform: none;
    left: auto;
    right: auto;
    background-color: #ffd102;
    border: none;
    width: 38px;
    height: 38px;
  }

  .carousel-custom.carousel-highlight .arrow:hover {
    background-color: #3a3c3f;
  }

  .carousel-custom.carousel-highlight .carousel-indicators-custom span {
    width: 16px !important;
    height: 16px !important;
  }
}

/* ============================================
   HIGHLIGHT VARIANT STYLES
   ============================================ */

/* Circular indicators for highlight variant (all devices) */
.carousel-custom.carousel-highlight .carousel-indicators-custom {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.carousel-custom.carousel-highlight .carousel-indicators-custom span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgb(152, 152, 154);
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.carousel-custom.carousel-highlight .carousel-indicators-custom span.active {
  background: #ffd102;
  transform: scale(1.2);
}

/* Desktop styles for highlight variant */
@media (min-width: 769px) {
  /* Container adjustments for highlight variant */
  .carousel-custom.carousel-highlight {
    position: relative;
    padding: 0 4rem;
  
  }

  /* Arrows positioned on the sides */
  .carousel-custom.carousel-highlight .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #ffd102;
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  

  .carousel-custom.carousel-highlight .arrow:hover {
    background-color: #3a3c3f;
    border-color: #3a3c3f;
  }

  .carousel-custom.carousel-highlight .arrow.prev {
    left: 0;
  }

  .carousel-custom.carousel-highlight .arrow.next {
    right: 0;
  }

  /* Progress container centered below carousel */
  .carousel-custom.carousel-highlight .progress-container {
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
  }

  /* Hide arrows from progress container in highlight variant */
  .carousel-custom.carousel-highlight .progress-container .arrow {
    position: absolute;
  }
}

/*Carousel Custom FIN*/