.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 3;
  max-width: 1200px;
  padding: 2rem;
  width: 100%;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav-left {
  left: 2rem;
}

.carousel-nav-right {
  right: 2rem;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  width: 2.5rem;
  border-radius: 1rem;
}

.carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: bounce 2s infinite;
}

.scroll-indicator-line {
  width: 2px;
  height: 3rem;
  background: linear-gradient(to bottom, transparent, white);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--main-color);
  background: white;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* 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: 25rem !important;
    height: 6rem;
    left: 8.4rem;
    transform: translateX(-50%);
    z-index: 10;
    background: #fabe01;
    color: var(--main-color);
    font-weight: 700;
    font-size: 2.5rem;
    padding: 0rem 3rem;
    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.15);
        opacity: 0;
    }
}
.btn-carrer {
    left: 61rem;
    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);
}

