/* CONTENEDOR TARJETA */
.time-marker-container {
  display: block;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* FILAS */
.time-marker {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.time-marker + .time-marker {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #b3b0ca;
}

.time-marker.left {
  justify-content: flex-start;
}

.time-marker.right {
  justify-content: flex-end;
}

/* NUBE */
.marker-badge {
  position: relative;
  background-color: var(--badge-color);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.85rem;
}

/* ───────── FLECHA START (ABAJO) ───────── */
.time-marker.left .marker-badge::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 18px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: var(--badge-color) transparent transparent transparent;
}

/* ───────── FLECHA END (ARRIBA) ───────── */
.time-marker.right .marker-badge::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--badge-color) transparent;
}

/* TEXTO FECHA */
.marker-datetime {
  margin-left: 10px;
  font-size: 0.85rem;
  color: #374151;
  white-space: nowrap;
}

/* END INVERTIDO */
.time-marker.right .marker-datetime {
  margin-left: 0;
  margin-right: 10px;
  order: -1;
}
