/*
 * Feature 022, T5 — upcoming events: home cards + footer compact list.
 * Every color, size and weight comes from tokens.css custom properties —
 * no raw hex here. The state pill itself is styled by status-pill.css
 * (shared visual system, plan amendment D-B).
 */

/* ── Cards (home section) ────────────────────────────────────────────── */

.ugel-proximos-eventos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ugel-evento-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--ugel-white);
  border: 1px solid var(--ugel-border);
  border-radius: var(--ugel-r12);
  box-shadow: var(--ugel-shadow-s);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ugel-evento-card:hover {
  box-shadow: var(--ugel-shadow-m);
  transform: translateY(-2px);
}

/* Date block: the day is the protagonist, the month labels it. */
.ugel-evento-card__fecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 3.5rem;
  padding: 0.5rem 0.6rem;
  background: var(--ugel-sand);
  border-radius: var(--ugel-r12);
  line-height: 1.1;
}

.ugel-evento-card__dia {
  font-size: var(--ugel-fs-2xl);
  font-weight: var(--ugel-fw-bold);
  color: var(--ugel-blue);
}

.ugel-evento-card__mes {
  font-size: var(--ugel-fs-xs);
  font-weight: var(--ugel-fw-semibold);
  letter-spacing: 0.08em;
  color: var(--ugel-muted);
}

.ugel-evento-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ugel-evento-card__labels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.ugel-evento-card__tipo {
  font-size: var(--ugel-fs-xs);
  font-weight: var(--ugel-fw-semibold);
  color: var(--ugel-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ugel-evento-card__title {
  margin: 0;
  font-size: var(--ugel-fs-md);
  line-height: 1.35;
}

.ugel-evento-card__title a {
  color: var(--ugel-ink);
  text-decoration: none;
}

.ugel-evento-card__title a:hover,
.ugel-evento-card__title a:focus-visible {
  color: var(--ugel-blue);
  text-decoration: underline;
}

.ugel-evento-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: var(--ugel-fs-sm);
  color: var(--ugel-muted);
}

/* ── Footer compact list ─────────────────────────────────────────────── */

.ugel-proximos-eventos-footer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ugel-proximos-eventos-footer__item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.ugel-proximos-eventos-footer__fecha {
  flex-shrink: 0;
  font-size: var(--ugel-fs-xs);
  font-variant-numeric: tabular-nums;
  /* No opacity here: the block lives in the DARK theme footer, and dimming
     the inherited light text dropped it below WCAG AA (axe, T7 live run —
     serious color-contrast on all 3 audited pages). It inherits the
     footer's own passing color instead. */
}

.ugel-proximos-eventos-footer__link {
  font-size: var(--ugel-fs-sm);
  text-decoration: none;
}

.ugel-proximos-eventos-footer__link:hover,
.ugel-proximos-eventos-footer__link:focus-visible {
  text-decoration: underline;
}

/* ── Single's data sheet (evento-ficha.php) ──────────────────────────── */

.ugel-evento-ficha {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--ugel-sand);
  border-radius: var(--ugel-r12);
}

.ugel-evento-ficha__estado {
  margin: 0 0 0.75rem;
}

.ugel-evento-ficha__datos {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.ugel-evento-ficha__fila {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.ugel-evento-ficha__fila dt {
  flex-shrink: 0;
  min-width: 4rem;
  font-size: var(--ugel-fs-xs);
  font-weight: var(--ugel-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ugel-muted);
}

.ugel-evento-ficha__fila dd {
  margin: 0;
  font-size: var(--ugel-fs-md);
  color: var(--ugel-ink);
}
