.carousel {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

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

.overlay-home {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .5); 
    pointer-events: none; 
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto;
    gap: 20px;
    align-items: start;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    align-items: stretch;
  }

  .content-item {
    display: contents;
    height: 100%;
    max-height: 50px;
  }

  .content-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1%;
  }

  .content-item h2, .content-item p {
    margin: 0;
    text-align: justify;
  }

  @media (max-width: 768px) {
    .content-section {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
    }

    .content-item img {
      display: none;
    }
  }

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

#scrollButton {
  position: fixed;
  bottom: 20px;
  left: 49%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background: none;
  color: #fff;
  border: none;
  z-index: 2;
  cursor: pointer;
  animation: jump 1s infinite; /* Efecto de salto continuo */
  font-size: 20px;
}

#scrollButton.hidden {
  display: none; /* Oculta el botón */
}

@media screen and (max-width: 620px){

  #scrollButton {
    left: 45%;
  }

}

.download-button {
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  border: none; 
  transition: background-color 0.3s;
  background-color: #4CAF50;
  color: white;
}

.download-button:hover { background-color: #45a049; }

.button-container {
  text-align: center; 
  margin: 30px;
}