/* CONTENEDOR */
.historias2-swiper {
  padding: 25px 10px 40px;
}

/* CARD */
.historias2-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 430px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.historias2-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* IMAGEN */
.historias2-card-img {
  overflow: hidden;
}

.historias2-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.historias2-card:hover .historias2-card-img img {
  transform: scale(1.05);
}

/* CUERPO */
.historias2-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.historias2-card-body h3 {
  color: #003344;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 10px 0 6px;
  line-height: 1.3;
}

.historias2-card-body p {
  color: #333;
  font-size: 13.5px;
  line-height: 1.4;
  margin: 0 0 15px;
}

/* BOTÓN */
.historias2-btn {
  color: #fff;
  padding: 7px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  align-self: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.historias2-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-2px);
}

/* FLECHAS */
.historias2-prev,
.historias2-next {
  color: #5fa16b !important;
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.historias2-prev:hover,
.historias2-next:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.historias2-prev::after,
.historias2-next::after {
  font-size: 18px;
}

/* PAGINACIÓN */
.historias2-pagination .swiper-pagination-bullet {
  background: #5fa16b !important;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.historias2-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .historias2-card-body h3 {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .historias2-card-body p {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .historias2-card {
    min-height: 390px;
  }
}

@media (max-width: 480px) {
  .historias2-card-body h3 {
    font-size: 14px;
  }
  .historias2-card-body p {
    font-size: 12.5px;
  }
}
