/* CONTENEDOR PRINCIPAL */
.cartas-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

/* TÍTULO Y SUBTÍTULO */
.gallery-title {
  font-family: 'Cinzel', serif;
  line-height: 1.15;
  font-size: clamp(30px, 8.5vw, 48px);
  color: #f5df25;
  margin-bottom: 10px;
}

.gallery-subtitle {
  font-size: 20px;
  font-size: clamp(16px, 4.6vw, 20px);
  color: #fff;
  margin-bottom: 40px;
  display: block;
}

/* CONTENEDOR DEL CARRUSEL */
.cartas-swiper {
  position: relative;
  padding-bottom: 70px;
  padding-left: 20px;
  padding-right: 20px;
  overflow: hidden; /* necesario para que Swiper mantenga la cuadrícula */
}

/* SLIDES */
.swiper-slide {
  transition: transform 0.35s;
}

/* CARTAS */
.carta-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 3px solid #f5df25;
  border-radius: 10px;
  position: relative;
  cursor: pointer;

  /* efecto hover seguro */
  transition: transform 0.3s, box-shadow 0.3s;
}

.carta-thumb:hover {
  transform: scale(1.05); /* se ve elevada sin mover hacia arriba */
  box-shadow: 0 15px 25px rgba(245, 223, 37, 0.5); /* efecto flotante */
  z-index: 10; /* para que quede encima de otras cartas */
}

/* ICONO LUPA */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 10px;
}

.carta-thumb:hover .overlay {
  opacity: 1;
}

.overlay i {
  color: #f5df25;
  font-size: 2rem;
}

/* NOMBRE DE LA CARTA */
.carta-info {
  margin-top: 12px;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  color: #fff;
  background: rgba(180, 180, 180, 0.25);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 223, 37, 0.4);
  transition: 0.3s;
}

.swiper-slide:hover .carta-info {
  background: rgba(245, 223, 37, 0.15);
  color: #f5df25;
}

/* FLECHAS */
.swiper-button-prev,
.swiper-button-next {
  color: #D4AF37;
  font-size: 32px;
  transition: 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #f5df25;
}

/* PAGINACIÓN */
.cartas-swiper .swiper-pagination {
  position: static !important;
  margin-top: 30px;
}

/* PUNTOS */
.swiper-pagination-bullet {
  background: #777 !important;
  opacity: 1;
  width: 9px;
  height: 9px;
  margin: 0 6px !important;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  background: #f5df25 !important;
  transform: scale(1.25);
}

/* ANIMACIÓN AL ABRIR CARTA */
.fancybox__content img {
  animation: zoomCarta 0.35s ease;
}

@keyframes zoomCarta {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== RESPONSIVE (añadido) ===== */
.cartas-page { padding-bottom: 130px; }               /* hueco para el pie fijo */
@media (max-width: 600px) {
  .cartas-page { padding: 30px 12px 130px; }
  .cartas-swiper { padding-left: 8px; padding-right: 8px; }
  .swiper-button-prev, .swiper-button-next { transform: scale(.75); }
  .carta-info { font-size: 14px; }
}
