/* ── Slides: lógica de posicionamiento y transición ── */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide.active {
  transform: translateX(0);
  z-index: 1;
}

.carousel-slide.slide-out {
  transform: translateX(-100%);
  z-index: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ── Altura responsive de la sección ── */
@media (max-width: 768px) {
  .section-carrusel {
    height: 230px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-carrusel{
    height: 230px;
  }
  .carousel-content h1 {
    font-size: 2.5rem;
  }

  .carousel-content p {
    font-size: 1.125rem;
  }

  .carousel-nav {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .carousel-nav-left {
    left: 1rem;
  }

  .carousel-nav-right {
    right: 1rem;
  }

  .scroll-indicator {
    bottom: 5rem;
  }
}

/* Botones de carrusel */
.slide-btn {
    position: relative;
    /*position: absolute;*/
    bottom: 120px;
    width: 27rem;
    height: 6rem;
    left: 5%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fabe01;
    color: var(--main-color);
    font-weight: 700;
    font-size: 2.5rem;
    padding: 0px 47px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}

.slide-btn:hover {
    background: #ffd633;
    transform: translateX(-50%) scale(1.05);
}

/* Anillos que se expanden cada 2s */
.slide-btn::before,
.slide-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #f5c400;
    opacity: 0.6;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

.slide-btn::after {
    animation-delay: 0.6s;
    opacity: 0.3;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
.btn-carrer {
    left: 48.5%;
    padding: 0px 35px;
    bottom: 250px;
}

@media (min-width: 1680px) {
    .slide-btn {
        bottom: 165px;
    }
    .btn-carrer {
        bottom: 350px;
    }
}

section.relative.w-full.section-carrusel.overflow-hidden div.scroll-indicator span {
    color: var(--main-color);
}