/* Modal overlay */
.eventia-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Ocultar por defecto */
.hidden {
  display: none;
}

/* Contenido del modal */
.eventia-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

/* Botón de cerrar */
.eventia-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

/* Estilo del contenido */
#eventia-modal-body p {
  margin: 10px 0;
  color: #222;
}
/* Fin estilos modal */
  
  
 #eventia-data {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
} 
.eventia-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid #bbb;

  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.eventia-item:hover {
  transform: scale(1.02);
}

/* NUEVO: contenedor para parte superior (imagen + nombre) */
.eventia-top {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Ya tenías esto, se mantiene */
.eventia-logo-wrapper {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.eventia-logo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eventia-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Se le puede dar altura mínima si quieres uniformar más */
.eventia-name {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
  min-height: 40px; /* Ajusta para que todas las tarjetas reserven espacio */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Ya estaba bien */
.eventia-button {
  margin-top: auto;
  padding: 10px 37px;
  background-color: #1b2745;
  color: #ffffff;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.eventia-button:hover {
  background-color: #31e6ed;
  color: #1b2745;
}

  #eventia-pagination {
  margin-top: 20px;
  text-align: center;
}

#eventia-pagination {
  display: flex;
  flex-wrap: wrap; /* que los botones se puedan ir a otra línea */
  justify-content: center; /* centrar los botones en cada línea */
  gap: 8px 10px; /* espacio vertical y horizontal entre botones */
  margin-top: 20px;
}

.eventia-page-button {
  margin: 0; /* removemos margen para usar gap */
  padding: 8px 12px;
  background-color: #1b2745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0; /* para que no se achiquen mucho */
}

.eventia-page-button:hover {
  background-color: #31e6ed;
  color: #1b2745;
}

#eventia-search-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

#eventia-search {
  width: 100%;
  max-width: 420px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: box-shadow .2s ease;
}

#eventia-search:focus {
  box-shadow: 0 0 0 3px rgba(49, 230, 237, 0.4);
}