#hero {
  width: 100%;
  /* height: auto; */
  /* background: url(../img/3hero-bg.jpg) top center; */
  background-size: cover;
  overflow: hidden;
  position: relative;
  
}

.carousel-caption {

  position: absolute; 
  top: 50%; 

  left: 0;
  right: 0;
  transform: translateY(-50%); 

  margin: 1.25rem 10rem;
  text-align: center; 
  color: #fff; 
}


#hero .carousel-item {
  width: 100%;
  /* height: 100vh; */
  /* height: auto; */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-position: center center;
}

#hero .carousel-item::before {
  content: "";
   background-color: rgba(0, 0, 0, 0.5); 
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}

#hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  padding-bottom: 220px;
}

#hero .carousel-content {
  text-align: center;
}

#hero h2 {
  /* color: #2e2e2e; */
  margin-bottom: 10px;
  font-size: 48px;
  font-weight: 700;
}

#hero h2 span {
  /* color: #f0eae9; */
  color:#ffffff;
  text-shadow: 1px 1px 4px rgb(0, 0, 0);
}

#hero p {
  width: 80%;
  -webkit-animation-delay: 0.4s;
  animation-delay: 0.4s;
  margin: 0 auto 30px auto;
  color: arken(#545454, 15);
  text-shadow: 1px 1px 1px rgb(0, 0, 0);
}

#hero img {
  width: 100%; /* Ocupa todo el ancho disponible */
  height: auto; /* Mantenimiento de la relación de aspecto */
}

#hero .carousel-inner{
  width: 100%;
}

#hero .carousel-inner .carousel-item {
  transition-property: opacity;
  background-position: center top;
}

#hero .carousel-inner .carousel-item,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  opacity: 0;
}

#hero .carousel-inner .active,
#hero .carousel-inner .carousel-item-next.carousel-item-start,
#hero .carousel-inner .carousel-item-prev.carousel-item-end {
  opacity: 1;
  transition: 0.5s;
}

#hero .carousel-inner .carousel-item-next,
#hero .carousel-inner .carousel-item-prev,
#hero .carousel-inner .active.carousel-item-start,
#hero .carousel-inner .active.carousel-item-end {
  left: 0;
  transform: translate3d(0, 0, 0);
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
  width: 20%;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  background: none;
  font-size: 48px;
  line-height: 1;
  width: 1%;
  height: 1%;
  color: #ffffff;
}

#hero .carousel-indicators li {
  cursor: pointer;
  background: #a0230d;
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  margin-bottom: 180px;
  opacity: 0.2;
}

#hero .carousel-indicators li.active {
  opacity: 1;
}

#hero .play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(#f82249 50%, rgba(101, 111, 150, 0.15) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

#hero .play-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

#hero .play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  -webkit-animation-delay: 0s;
  animation-delay: 0s;
  -webkit-animation: pulsate-btn 2s;
  animation: pulsate-btn 2s;
  -webkit-animation-direction: forwards;
  animation-direction: forwards;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-timing-function: steps;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 2px solid rgba(163, 163, 163, 0.4);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

#hero .play-btn:hover::after {
  border-left: 15px solid #f82249;
  transform: scale(20);
}

#hero .play-btn:hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  -webkit-animation: none;
  animation: none;
  border-radius: 0;
}

#hero .about-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  color: #fff;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  border: 2px solid #f45774;
  background: rgb(239, 84, 84,0.4);
  text-transform: uppercase;
  font-weight: 500;
}

#hero .about-btn:hover {
  background: #f82249;
  color: #ffffff;
}




/* ------------------------------ */
/* ------------------- */

@media (min-width: 768px) and (max-width: 990px) {
  #hero .carousel-caption {
    margin: 1.25rem auto; /* Centrar horizontalmente */
    max-width: 80%; /* Limitar el ancho */
  }

  #hero h2 {
    font-size: 36px; /* Reducir el tamaño del texto */
  }
}



