.hero-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://wallpapers.com/images/high/blue-geometric-kiyhavrstg1buil4.webp");
  background-size: cover;
  background-position: center;
}

/* Estilos personalizados */
.slide .item {
  border: 6px solid rgb(156, 163, 175, 0.7);
  box-sizing: border-box;
  opacity: 0.91;
  background-color: white;
  background-size: 270%;
  background-position: bottom right;
  border-radius: 60px;
}

.thumbnail-title {
  bottom: 0;
  left: 0;
  width: 00%;
  background: rgba(55, 65, 81, 0.4);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 55px;
  height: 100%;
  width: 100%;
  z-index: 1;
  text-align: center;
  font-weight: bold;
}

.slide .item:not(:nth-child(1)):not(:nth-child(2)):hover {
  transform: translateY(-130px); /* Lo eleva 10 píxeles */
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

/* Ocultamos el título del cuadro pequeño CUANDO es el cuadro grande y activo */
.slide .item:nth-child(2) .thumbnail-title {
  display: none;
}

/* Nos aseguramos de que el contenido detallado SÓLO se vea en el cuadro grande */
.slide .item:not(:nth-child(2)) .content {
  display: none;
}

/*Configuracion de el fondo detras de las diapositivas flotantes*/
.slide .item:nth-child(1),
.slide .item:nth-child(2) {
  top: 0;
  left: 0;
  transform: translate(0, 0);
  background-size: cover;
  background-position: left;
  border-radius: 50px;
  width: 100%;
  height: 73%;
  border: none;
  opacity: 1;
  background-size: cover;
}

.slide .item:nth-child(3) {
  left: calc(50% + 220px);
  width: 10%;
  height:35%;
  top: 13rem;
  
} /* +100px */
.slide .item:nth-child(4) {
  left: calc(50% + 338px + 100px);
  width: 10%;
  height:35%;
  top: 13rem;
} /* +100px */
.slide .item:nth-child(5) {
  left: calc(50% + 550px + 100px);
  width: 10%;
  height:35%;
  top: 13rem;
} /* +100px */
.slide .item:nth-child(n + 6) {
  left: calc(50% + 660px + 100px); /* +100px */
  opacity: 0;
  display: none;
}

/* --- ESTA PARTE ES CRUCIAL PARA MOSTRAR EL TEXTO --- */

/* Hace visible el contenedor del texto en el slide activo */
.slide .item:nth-child(2) .content {
  display: block;
}

/* Prepara los elementos del texto para la animación */
.content .name,
.content .des,
.content a {
  /* Asegúrate de incluir la etiqueta 'a' del botón */
  opacity: 0;
  animation: animate 1s ease-in-out forwards;
}

.content .des {
  animation-delay: 0.3s;
}
.content a {
  animation-delay: 0.6s;
} /* Y animar el botón también */

/* Animación de entrada del texto */
@keyframes animate {
  from {
    opacity: 0;
    transform: translateY(100px);
    filter: blur(33px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
/* Responsive del carrusel para pantallas de hasta 1790px */
@media (max-width: 1700px) {
  .slide .item:nth-child(3) {
    left: calc(50% + 210px);
    width: 10rem;
    height: 35%;
    top: 13rem;
  }

  .slide .item:nth-child(4) {
    left: calc(50% + 380px);
    width: 10rem;
    height: 35%;
    top: 13rem;
  }

  .slide .item:nth-child(5) {
    left: calc(50% + 550px);
    width: 10rem;
    height: 35%;
    top: 13rem;
  }

  .slide .item:nth-child(n + 6) {
    left: calc(50% + 580px);
    opacity: 0;
    display: none;
  }
}

/* Responsive del carrusel para pantallas de hasta 1300px */
@media (max-width: 1430px) {
  .slide .item:nth-child(3) {
    left: calc(50% + 210px);
    width: 10rem;
    height: 35%;
    top: 13rem;
    display: none;
  }

  .slide .item:nth-child(4) {
    left: calc(50% + 380px);
    width: 10rem;
    height: 35%;
    top: 13rem;
    display: none;
  }

  .slide .item:nth-child(5) {
    left: calc(50% + 550px);
    width: 10rem;
    height: 35%;
    top: 13rem;
    display: none;
  }

  .slide .item:nth-child(n + 6) {
    left: calc(50% + 580px);
    opacity: 0;
    display: none;
  }
}

