
.grid_cards_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

/* ====================================
   CARD CONTAINER STYLES
   ==================================== */

.card_container {
  display: flex;
  min-height: 420px;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  box-sizing: border-box;
  flex: 0 0 100%;
  max-width: 100%;
}

.slider-item .card_container {
    height: fit-content;
}

/* Responsive grid classes */
@media (min-width: 576px) {
  .card_container {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .card_container {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 1200px) {
  .card_container {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
  }
}

@media (min-width: 1600px) {
  .card_container {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* ====================================
   CARD BASE STYLES
   ==================================== */

.card {
  width: 100%;
  height: 100%;
  border: none;
  box-shadow: 5px 5px 8px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.4);
  /* Escala al hacer hover */
}

.card-img-top {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* ====================================
   CARD BODY STYLES
   ==================================== */

.card-body {
  padding: 1rem;
}

#servientradas-container .event .card .card-body {
    -ms-flex: 1 1 auto; 
    flex: 1 1 auto;
    padding: 1rem;
    /* min-height: 282px; */
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-start;
    position: relative;
}

.slider-item .card-body {
    min-height: 250px;
}

/* ====================================
   CARD FOOTER STYLES
   ==================================== */

#servientradas-container .event .card .card-footer {
    height: 95px;
}

.event-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.4;
  min-height: auto;
  max-height: none;
}

.card-features {
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ====================================
   CARD IMAGE STYLES
   ==================================== */

#servientradas-container .event .card img {
    animation: reveal both;
    animation-timeline: view();
    animation-range: entry 20% cover 30%;
}

/* ====================================
   RESPONSIVE DESIGN - Card styles
   ==================================== */

@media (max-width: 768px) {
  .card-body {
    height: inherit;
    /* Altura específica para tabletas */
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .card-body {
    padding: 1rem;
  }
}

@media (max-width: 475px) {
    /* Resalta visualmente el video activo en móvil */
    .card_container .card {
        transition: box-shadow 0.3s ease;
    }
}
