/* ================================
   OWL CAROUSEL HERO - LANDING PAGE
   ================================ */

.hero-carousel {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-top: -10px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.hero-carousel .owl-carousel {
  width: 100%;
  display: block;
  line-height: 0;
}

.hero-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.hero-carousel .item {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.hero-carousel .item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.hero-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: bottom;
}

/* Textos sobre el carousel */
.hero-carousel .carousel-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, 10%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 1000px;
  opacity: 0;
  transition: none;
}

.hero-carousel .owl-item.active .carousel-caption {
  animation: slideUpFadeIn 1.5s ease-in-out forwards;
  animation-delay: 0.6s;
}

.hero-carousel .carousel-caption h2 {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
  line-height: 1.2;
}

@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 5%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Controles de navegación */
.hero-carousel .owl-nav {
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  display: block !important;
  margin: 0 !important;
  pointer-events: none !important;
  z-index: 100 !important;
}

.hero-carousel .owl-nav button {
  position: absolute !important;
  top: 0 !important;
  pointer-events: all !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  outline: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-carousel .owl-nav button.owl-prev {
  left: 20px !important;
}

.hero-carousel .owl-nav button.owl-next {
  right: 20px !important;
}

.hero-carousel .owl-nav button:hover {
  background-color: #86A329 !important;
  border-color: #86A329 !important;
  color: #ffffff !important;
  transform: scale(1.15) !important;
}

.hero-carousel .owl-nav button.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.hero-carousel .owl-nav button i {
  color: #ffffff !important;
  font-size: 24px !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Dots (indicadores) */
.hero-carousel .owl-dots {
  position: absolute !important;
  bottom: 20px !important;
  width: 100% !important;
  text-align: center !important;
  z-index: 10 !important;
  margin: 0 !important;
}

.hero-carousel .owl-dot span {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 5px !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  border: 2px solid transparent !important;
}

.hero-carousel .owl-dot:hover span {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.hero-carousel .owl-dot.active span {
  background-color: #86A329 !important;
  border-color: #ffffff !important;
  transform: scale(1.2) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-carousel .item {
    height: 60vh;
  }
  
  .hero-carousel .carousel-caption h2 {
    font-size: 2rem;
  }
  
  .hero-carousel .owl-nav button {
    width: 40px !important;
    height: 40px !important;
  }
  
  .hero-carousel .owl-nav button.owl-prev {
    left: 15px !important;
  }
  
  .hero-carousel .owl-nav button.owl-next {
    right: 15px !important;
  }
  
  .hero-carousel .owl-nav button i {
    font-size: 20px !important;
  }
  
  .hero-carousel .owl-dots {
    bottom: 10px !important;
  }
  
  .hero-carousel .owl-dot span {
    width: 10px !important;
    height: 10px !important;
    margin: 0 3px !important;
  }
}

@media (max-width: 480px) {
  .hero-carousel .item {
    height: 50vh;
  }
  
  .hero-carousel .item img {
    object-fit: cover;
    object-position: center center;
  }
  
  .hero-carousel .carousel-caption {
    width: 95%;
  }
  
  .hero-carousel .carousel-caption h2 {
    font-size: 1.5rem;
  }
  
  .hero-carousel .owl-nav button {
    width: 35px !important;
    height: 35px !important;
  }
  
  .hero-carousel .owl-nav button.owl-prev {
    left: 10px !important;
  }
  
  .hero-carousel .owl-nav button.owl-next {
    right: 10px !important;
  }
  
  .hero-carousel .owl-nav button i {
    font-size: 18px !important;
  }
}
