.fondo-gen{
  background-color: #333333;
  padding: 35px 50px;
}

.centrado{
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.texto-general{
  width: 320px;
  color: #FFFFFF;
  flex-shrink: 0;
}


.flechas {
  margin-top: 20px;
  display: flex !important;
  gap: 20px;
  align-items: center;
}

/*contador de muestra*/
.contador {
  color: #8C8C8C;
  font-size: 14px;
  display: inline-block;
}

.flechas button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
  pointer-events: auto; /* Asegurar que los clics funcionen */
}

.flechas button:disabled,
.flechas button.disabled {
  cursor: not-allowed;
  opacity: 0.3;
  pointer-events: none; /* Deshabilitar completamente cuando esté disabled */
}

.flechas button:disabled img,
.flechas button.disabled img {
  filter: grayscale(100%) brightness(0.3);
}

.flechas img {
  width: 12px;
  height: 21px;
  filter: grayscale(100%) brightness(0.5);
  transition: filter 0.3s ease;
}

.flechas button:not(:disabled):hover img,
.flechas button:not(.disabled):hover img {
  filter: invert(47%) sepia(92%) saturate(500%) hue-rotate(360deg);
}


.tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-grow: 1;
  transition: all 0.3s ease;
}

.evento-card {
  min-width: 300px;
  max-width: 300px;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none; /* Ocultar por defecto para evitar parpadeo */
  text-decoration: none;
}

/* Los eventos se mostrarán cuando JavaScript los active */
.evento-card.show {
  display: block;
}

/* Animación para eventos ocultos */
.evento-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

.evento-img {
  width: 300px;
  height: 170px !important;
  object-fit: cover;
  display: block;
}

.evento-info {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  align-items: flex-start;
}

/* cuadrito amarilla */
.evento-fecha {
  background: #DFA93B;
  width: 55px;
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  flex-direction: column; /* ← APILA VERTICAL */
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.evento-fecha .dia {
  font-size: 35px;
  font-weight: 700;
  display: block;
}

.evento-fecha .mes {
  font-size: 12px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

.evento-texto{
  display: flex;
  flex-direction: column;
  text-align: left;
}

.evento-titulo {
    color: #F7AD10;
    font-size: 20px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 0.9;
}


.evento-lugar-hora {
  font-size: 12px;
  color: #FFFFFF;
}

.evento-descripcion {
  font-size: 15px;
  color: #FFFFFF;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .centrado {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 25px;
  }

  .texto-general {
    width: 100%;
    max-width: 500px;
  }

  .tarjetas {
    justify-content: center;
  }
}


@media (max-width: 1024px) {
  
  .flechas{
    justify-content: center;
  }
}


@media (max-width: 768px) {
  
.flechas {
  justify-content: center; /* centra las flechas horizontalmente */
}

.tarjetas {
  gap: 25px; /* más separación en celular */
}
  
.fondo-gen {
  padding-left: 30px;
  padding-right: 30px;
}
  
/* Tarjetas más pequeñas para móviles */
.evento-card {
  min-width: 100%;
  max-width: 100%;
}

.evento-img {
  width: 100%;
  height: auto !important;
  }

.evento-fecha {
  width: 45px;
  padding: 6px 0;
}

.evento-fecha .dia {
  font-size: 28px;
}

.evento-fecha .mes {
  font-size: 10px;
}

.evento-titulo {
  font-size: 18px;
  }

.evento-descripcion {
  font-size: 14px;
}

.evento-info {
  gap: 8px;
}