/* GALERÍA MODERNA */
.gallery-section {
  padding: 60px 10%;
  text-align: center;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.12);
}

/* SECCIÓN CARRUSEL */
.carousel-section {
  text-align: center;
  padding: 80px 10%;
}

.carousel-title {
  font-size: 2.4rem;
  color: var(--pink);
  margin-bottom: 12px;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000;
}

.carousel-description {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
  color: #d0d0d0;
  line-height: 1.6;
}

 /* CAROUSEL */
.carousel {
  position: relative;
  max-width: 700px;
  height: 400px;
  margin: 60px auto;
  overflow: hidden;
  border-radius: 20px;
  
}

.carousel-track {
  display: flex;
  width: 100%;
}


.carousel-item {
 flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BOTONES */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  font-size: 36px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}


/* Animación de entrada */
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
