/* ===============================
   SWIPER ESPECÍFICO
=============================== */

/* Tarjetas en el Swiper */
.card.custom-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Permite que el contenido crezca hacia abajo */
  align-items: center;
  width: 100%;
  max-width: 400px;
  height: auto; /* Deja que crezca según el contenido */
  min-height: 300px; /* Asegura una altura mínima */
  margin: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  /* Quita overflow: hidden si está forzando recorte */
  overflow: visible; /* o quita esta propiedad si prefieres */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.custom-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Ajuste de imágenes dentro del Swiper */
.card.custom-card .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.card.custom-card .card-body {
  flex: 1;
  padding: 15px;
  overflow-y: auto; /* Añade scroll si el contenido es largo */
  text-align: justify;
}

.card.custom-card .card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #005b9c;
  text-align: center;
  margin-bottom: 10px;
}

.card.custom-card .card-text {
  font-size: 1rem;
  color: #333;
}

/* ===============================
   SWIPER MEDIA QUERIES
=============================== */

@media (min-width: 992px) {
  .card.custom-card {
    max-width: 500px;
    height: 350px;
  }
  .card.custom-card .card-img-top {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .card.custom-card {
    max-width: 100%;
    height: auto;
  }
  .card.custom-card .card-img-top {
    height: 150px;
  }
}

/* Ajustes para el contenedor Swiper */
.swiper {
  width: 100%;
  height: auto;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}