/* Estilos para la sección Galería */
#galeria {
  background-color: #f8f8f8;
  padding: 4rem 2rem;
  color: black;
}

#galeria .section-title {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

#galeria .section-title h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#galeria .section-title p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

#galeria .title-line {
  width: 80px;
  height: 3px;
  background-color: red;
  margin: 0 auto;
}

/* Galería de tarjetas */
.flip-gallery-container {
  width: 100%;
  padding-top: 0rem;
}

.flip-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  padding: 1.5rem;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  justify-content: flex-start;
  scroll-padding-left: 1rem;
  transition: scroll-left 0.5s ease-in-out;
}

.flip-gallery::-webkit-scrollbar {
  display: none;
}

.flip-card {
  flex: 0 0 85%;
  height: clamp(300px, 40vw, 373px);
  scroll-snap-align: center;
  margin: 0;
  perspective: 1000px;
  min-width: 280px;
  cursor: pointer;
  will-change: transform;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.flip-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.flip-card:first-child {
  margin-left: auto;
}

.flip-card:last-child {
  margin-right: auto;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.03);
}

.flip-card-back {
  background: linear-gradient(
    135deg,
    rgba(212, 10, 10, 0.9),
    rgba(138, 7, 7, 0.9)
  );
  color: white;
  transform: rotateY(180deg);
  padding: 20px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 1.5rem 0;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(204, 204, 204, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot:hover {
  transform: scale(1.2);
  background: rgba(212, 10, 10, 0.5);
}

.carousel-dot.active {
  background: #d40a0a;
  transform: scale(1.2);
}

@media (min-width: 768px) {
  .flip-card {
    flex: 0 0 calc(50% - 15px);
    min-width: 350px;
  }
}

@media (min-width: 1024px) {
  .flip-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 300px;
  }

  .carousel-dots {
    padding: 2rem 0;
  }

  .carousel-dot {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 768px) {
  #galeria .section-title h2 {
    font-size: 2rem;
    text-align: center;
    line-height: 1.2;
  }

  #galeria .section-title p {
    font-size: 1rem;
    text-align: center;
  }

  #galeria .title-line {
    width: 60px;
    height: 3px;
    margin-top: 0.5rem;
  }
}
@media (max-width: 768px) {
  .boleto-section {
    margin-top: 3rem;
  }
}

@media (min-width: 769px) {
  .boleto-section {
    margin-top: 6rem;
  }
}
