/* Aplicando estilos completamente rediseñados y responsive para hero carousel moderno */

/* Hero Carousel Section */
.hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#heroCarousel {
  position: relative;
  width: 100%;
  height: clamp(600px, 85vh, 950px); /* Altura aumentada */
  min-height: 600px;
  max-height: 950px;
}

/* Carousel Images */
.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
  position: relative;
}

.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Overlay azul más claro y transparente */
.carousel-image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(0, 68, 143, 0.55) 0%, 
    rgba(51, 136, 255, 0.45) 50%, 
    rgba(0, 68, 143, 0.35) 100%);
  z-index: 1;
}

/* Efectos de luz más sutiles */
.carousel-image-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(255, 215, 0, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(51, 136, 255, 0.15) 0%, transparent 60%);
  z-index: 1;
}

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

/* Fade effect mejorado - sin destellos */
.carousel-fade .carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
  z-index: 0;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  opacity: 1;
  z-index: 1;
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
  z-index: 0;
}

/* Asegurar que no haya saltos */
.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  height: 100%;
  margin-right: -100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* Hero Overlay Content */
.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-text-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem); /* Tamaño restaurado */
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.highlight-gold {
  color: #ffd700;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.4);
}

.highlight-gold::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleX(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero-main-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem); /* Tamaño restaurado */
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 650px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Hero Buttons */
.hero-main-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #002a5b;
  border: none;
}

.btn-hero-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-hero-primary:hover::before {
  left: 0;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
  color: #001a3d;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 1.2rem 2rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-badge i {
  font-size: 2.5rem;
  color: #ffd700;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.hero-badge div {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.hero-badge strong {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-badge span {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 70px;
  height: 70px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 11;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-control-icon i {
  font-size: 1.8rem;
  color: #ffffff;
}

.carousel-control-prev:hover .carousel-control-icon,
.carousel-control-next:hover .carousel-control-icon {
  background: rgba(255, 215, 0, 0.9);
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.carousel-control-prev:hover .carousel-control-icon i,
.carousel-control-next:hover .carousel-control-icon i {
  color: #002a5b;
}

/* Custom Indicators */
.carousel-indicators-custom {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 11;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-indicators-custom button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.carousel-indicators-custom button:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-indicators-custom button.active {
  background: #ffd700;
  width: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Media queries mejoradas para responsive design completo */

/* Pantallas grandes de escritorio */
@media (min-width: 1600px) {
  #heroCarousel {
    height: clamp(650px, 80vh, 1000px);
  }
  
  .hero-text-content {
    max-width: 1400px;
  }
}

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
  #heroCarousel {
    height: clamp(550px, 75vh, 850px);
  }
  
  .hero-text-content {
    max-width: 95%;
    padding: 0 30px;
  }
}

@media (max-width: 992px) {
  #heroCarousel {
    height: clamp(500px, 70vh, 750px);
    min-height: 500px;
  }

  .hero-overlay-content {
    padding: 70px 0 50px;
  }

  .hero-main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .hero-badge {
    padding: 1rem 1.5rem;
  }

  .hero-badge i {
    font-size: 2rem;
  }

  .hero-badge strong {
    font-size: 1.3rem;
  }
}

/* Móviles */
@media (max-width: 768px) {
  #heroCarousel {
    height: clamp(450px, 75vh, 650px);
    min-height: 450px;
  }

  .hero-overlay-content {
    padding: 80px 0 50px;
  }

  .hero-text-content {
    padding: 0 20px;
  }

  .hero-main-buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }

  .carousel-control-icon {
    width: 50px;
    height: 50px;
  }

  .carousel-control-icon i {
    font-size: 1.5rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 55px;
    height: 55px;
  }

  .carousel-indicators-custom {
    bottom: 30px;
    padding: 10px 16px;
    gap: 10px;
  }

  .carousel-indicators-custom button {
    width: 8px;
    height: 8px;
  }

  .carousel-indicators-custom button.active {
    width: 25px;
  }
}

/* Móviles pequeños */
@media (max-width: 576px) {
  #heroCarousel {
    height: clamp(400px, 80vh, 550px);
    min-height: 400px;
  }

  .hero-main-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-main-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-badge {
    padding: 0.9rem 1.2rem;
    gap: 1rem;
  }

  .hero-badge i {
    font-size: 1.8rem;
  }

  .hero-badge strong {
    font-size: 1.2rem;
  }

  .hero-badge span {
    font-size: 0.85rem;
  }
}

/* Alturas muy pequeñas */
@media (max-height: 700px) {
  #heroCarousel {
    height: clamp(450px, 85vh, 600px);
    min-height: 450px;
  }

  .hero-overlay-content {
    padding: 50px 0 40px;
  }

  .hero-main-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-main-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-main-buttons {
    margin-bottom: 2rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Ajuste para que las imágenes se vean completas */
.carousel-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05); /* Ligero zoom para evitar bordes vacíos */
  transition: transform 10s ease;
}

.carousel-item.active img {
  transform: scale(1);
}