/* ============================================================================
   eventos-mios.css — «Mis eventos» (views/partials/eventos-mios.ejs y
   views/pages/eventos/mis-eventos.ejs), 4-nov-2026. Todo en UN recuadro
   centrado y no más ancho que una columna de lectura; dentro, una fila por
   evento. Sin tarjetas dentro de tarjetas. Tokens de la carcasa (--sn-*)
   con respaldo, porque va en el perfil y en Eventos.
   ========================================================================== */

/* El recuadro: centrado, de ancho contenido. */
.em-caja {
  display: grid; gap: 32px;
  max-width: 760px; margin: 0 auto; box-sizing: border-box;
  padding: 28px 28px 32px;
  background: var(--sn-surface, rgba(255, 255, 255, .03));
  border: 1px solid var(--sn-line, rgba(148, 163, 184, .2));
  border-radius: 18px;
}
/* En la pestaña del perfil, el mismo ancho (la tarjeta ya hace de recuadro). */
.mis-eventos > .mp-card { max-width: 760px; margin-left: auto; margin-right: auto; box-sizing: border-box; }

.em { display: grid; gap: 32px; }
.em-grupo { min-width: 0; }
.em-titulo { margin: 0 0 12px; text-align: center; font-size: .8125rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sn-muted, var(--sn-text-muted, #94a3b8)); }

.em-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sn-line, rgba(148, 163, 184, .2)); }
.em-fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--sn-line, rgba(148, 163, 184, .2)); }
.em-fila:last-child { border-bottom: 0; }
.em-quien { min-width: 0; flex: 1 1 220px; }
.em-nombre { margin: 0; font-weight: 600; color: var(--sn-text, inherit); overflow-wrap: anywhere; }
.em-nombre a { color: inherit; text-decoration: none; }
.em-nombre a:hover { text-decoration: underline; text-underline-offset: 3px; }
.em-meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: .875rem; color: var(--sn-muted, var(--sn-text-muted, #94a3b8)); }
.em-meta > * + *::before { content: "·"; margin: 0 8px; }

.em-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.em-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid var(--sn-line, rgba(148, 163, 184, .3)); color: var(--sn-text, inherit); text-decoration: none; font-size: .9375rem; font-weight: 600; }
.em-btn:hover { border-color: var(--sn-accent, #3b9ee8); }
.em-btn:focus-visible { outline: 2px solid var(--sn-accent, #3b9ee8); outline-offset: 2px; }
.em-btn--primario { border-color: var(--sn-accent, #3b9ee8); color: var(--sn-accent, #3b9ee8); }
.em-btn svg { flex: none; }

/* Vacío: centrado y en una línea, dentro del recuadro. */
.em-vacio-caja { display: grid; justify-items: center; gap: 8px; padding: 8px 0 4px; text-align: center; }
.em-vacio-t { margin: 0; font-weight: 600; color: var(--sn-text, inherit); }
.em-vacio { margin: 0; text-align: center; color: var(--sn-muted, var(--sn-text-muted, #94a3b8)); }
.em-vacio-caja .em-btn { margin-top: 8px; }

.em-recuerdo { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--sn-line, rgba(148, 163, 184, .2)); color: var(--sn-text, inherit); text-decoration: none; font-size: .9375rem; }
.em-recuerdo svg { flex: none; color: var(--sn-accent, #3b9ee8); }

.em-pie { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 24px 0 0; }

@media (max-width: 560px) {
  .em-caja { padding: 20px 16px 24px; border-radius: 14px; }
  .em-acciones { width: 100%; }
  .em-btn { flex: 1 1 auto; justify-content: center; }
}
