.event {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  border-radius: 4px;
  border: 0;
  padding: 1px 4px 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  background-color: var(--event-color);
  color: #fff;
  transition: filter 0.1s ease;
  margin-bottom: 1px;
  min-height: 1.4rem;
}

.event:hover {
  filter: brightness(0.88);
}

/* ── Pulse al confirmar asistencia / crear evento ────────────────────────── */
@keyframes eventPulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  35%  { transform: scale(1.04); box-shadow: 0 10px 18px rgba(0,0,0,0.16); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}

.event--pulse {
  animation: eventPulse 0.55s ease both;
}

.event__color { display: none; }

.event__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.event__attendance {
  font-size: 0.6rem;
  opacity: 0.9;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Eventos confirmados: verde clarito con texto verde oscuro */


.event--multiday {
  border-radius: 0 3px 3px 0;
  overflow: visible;
  white-space: nowrap;
}

.event--dynamic {
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.4);
  overflow: visible;
  white-space: normal;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 4px;
}

.event--dynamic .event__title {
  display: -webkit-box;
  -webkit-line-clamp: var(--event-title-max-lines);
  line-clamp: var(--event-title-max-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event__time { display: none; }
.event--dynamic .event__time {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* +N más */
.event-list__more {
  font-size: 0.72rem;
  font-weight: 500;
  color: #5f6368;
  padding: 1px 6px;
  cursor: pointer;
  border-radius: 3px;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  list-style: none;
}

.event-list__more:hover {
  background: #f1f3f4;
  color: #3c4043;
}

/* Owner icon */
.event-owner-icon {
  display: inline-flex;
  align-items: center;
  padding: 4px 5px;
  margin: -4px -5px;
  cursor: default;
}

/* Global tooltip */
#global-tooltip {
  position: fixed;
  background: rgba(32,33,36,0.82);
  color: white;
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 99999;
  transform: translateX(-50%);
}
#global-tooltip.visible { opacity: 1; }
